Forum

Thread tagged as: Problem, Addons, Gallery

Gallery App refuses image upload

Using Gallery app, I have set up 2 albums. When I attempt to upload an image, it appears to work but nothing is in the album. The perch/resources folder has permissions 777. Inspecting the database table perch2_gallery_albums shows my 2 albums, but perch2_gallery_images is empty.

I have been using FancyBox, but not with Gallery - could there be a clash?

Diagnostics report
PERCH INFORMATION

Perch: 2.8.7
Production mode: Production (100)
Installed apps: content (2.8.7), assets (2.8.7), categories (2.8.7), perch_gallery (2.8.6), perch_upgrade (1.3), perch_comments (1.0), perch_backup
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_comments, perch2_comments_votes, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users, perch_contentItems, perch_settings, perch_users
Users: 18
App runtimes:
<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_comments/runtime.php');
?>
Editor plug-ins: redactor, ckeditor, markitup
H1: 52ebc55ec1aa14e54ee55bfad1ef8c36
L1: a2821027491ba7050d50c8aaf4a62212
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
hideBranding: 0
content_collapseList: 1
lang: en-gb
latest_version: 2.8.15
headerLinkColour: #000000
linkColour: #333333
perch_pages_folders: ../Groups
editorMayDeleteRegions: 0
perch_pages_editorMayDeletePages: 0
latestUpdate: 1.8.3
perch_backup_mysqldump_path:
perch_backup_admin_only: 0
headerScheme: light
perch_upgrade_v1_prefix: perch_
dashboard: 1
content_hideNonEditableRegions: 1
update_2.1.3: done
update_2.3.4: done
on_sale_version: 2.8.31
perch_comments_akismet_key:
update_2.4.3: done
perch_gallery_update: 2.8.5
content_frontend_edit: 0
update_2.8.7: done
hide_pwd_reset: 0
siteURL: /
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: georgec47
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: newslu3a_perch
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: george@highpike.org.uk
PERCH_EMAIL_FROM_NAME: George Coulthard
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/perch
PERCH_CORE: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/perch/core
PERCH_RESFILEPATH: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_DEBUG: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.6.24
Zend: 2.6.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.50-cll-lve
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, exif, mcrypt, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysql, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, imagick, json, mhash, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 16M
PHP max form post size: 16M
PHP memory limit: 128M
Total max uploadable file size: 16M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
UNIQUE_ID: V8QY5VBSccMAADm6jl0AAAAY
GEOIP_ADDR: 92.19.84.24
GEOIP_CONTINENT_CODE: EU
GEOIP_COUNTRY_CODE: GB
GEOIP_COUNTRY_NAME: United Kingdom
AWSTATS_LOGFILE: /var/www/vhosts/southlakesu3a.org.uk/statistics/logs/southlakesu3a.org.uk-access_log
AWSTATS_DOMAIN: southlakesu3a.org.uk
AWSTATS_ALIAS: southlakesu3a.org.uk REGEX[southlakesu3a\.org\.uk$]
AWSTATS_DATA_DIR: /var/www/vhosts/southlakesu3a.org.uk/statistics/awstats
HTTP_HOST: www.southlakesu3a.org.uk
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Vivaldi/1.2.490.43
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://www.southlakesu3a.org.uk/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: __utma=38956449.1412548593.1459948928.1472156440.1472416922.74; __utmc=38956449; __utmz=38956449.1459948928.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=gohb1n15r0ac0mlj05imchoie1
HTTP_GEOIP_ADDR: 92.19.84.24
HTTP_GEOIP_CONTINENT_CODE: EU
HTTP_GEOIP_COUNTRY_CODE: GB
HTTP_GEOIP_COUNTRY_NAME: United Kingdom
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE: <address>Apache Server at www.southlakesu3a.org.uk Port 80</address>
SERVER_SOFTWARE: Apache
SERVER_NAME: www.southlakesu3a.org.uk
SERVER_ADDR: 80.82.113.195
SERVER_PORT: 80
REMOTE_ADDR: 92.19.84.24
DOCUMENT_ROOT: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/
SERVER_ADMIN: root@localhost
SCRIPT_FILENAME: /var/www/vhosts/southlakesu3a.org.uk/httpdocs/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 51026
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1472469221.711
REQUEST_TIME: 1472469221
Peter Bunney

Peter Bunney 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The first thing to do is make sure that Perch and your apps are up to date and then see if you have the same issue.

Uodated Perch to 2.8.31. Gallery was already at latest version 2.8.6

Fault remains.

SUMMARY INFORMATION

Perch: 2.8.31, PHP: 5.6.24, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_gallery (2.8.6), perch_upgrade (1.3), perch_comments (1.0), perch_backup
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_comments/runtime.php'); ?>
PERCH_LOGINPATH: /perch
Rachel Andrew

Rachel Andrew 394 points
Perch Support

There is information regarding image uploads here: https://docs.grabaperch.com/help/#uploadassets

If none of these are the case we would need to see your template.

Loading a 2MB file to Assets works ok. Using Gallery App, I can generate an album, but cannot add an image to it. No templates are involved at this stage.

It seems to be the combination of Gallery and a remote server. If I use FancyBox instead of Gallery or run either on my home server, all is ok.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Templates are always involved - Perch uses your master template to control the input.

If everything's working locally but not remotely, then it's sounds very much like a server configuration issue - that's where I'd look in the first instance.