Forum
Perch Gallery no images
Hi, I cannot get the gallery app to output images on the client's server. It works locally. I have the following image list template:
<perch:before>
<h2><perch:gallery id="albumTitle" /></h2>
<p><perch:gallery id="description" html="true" /></p>
<ol>
</perch:before>
<li class="fancybox">
<a href="<perch:gallery id="main" />" class="gallery" title="<perch:gallery id="imageAlt" />" rel="album<perch:gallery id="albumID" />">
<img src="<perch:gallery id="small" />" width="<perch:gallery id="small-w" />" height="<perch:gallery id="small-h" />" alt="<perch:gallery id="imageAlt" />" />
<h5><perch:gallery id="imageAlt" type="textarea" maxlength="5" /></h5>
</a>
</li>
<perch:after>
</ol>
</perch:after>
Other image processing is working. Is this a server issue?
Diagnostics
Perch: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_forms (1.8.3), perch_gallery (2.8.6), perch_backup (1.2)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (155), perch2_content_items (57), perch2_content_regions (19), perch2_forms (1), perch2_forms_responses (1), perch2_gallery_albums (1), perch2_gallery_image_versions (15), perch2_gallery_images (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (3), perch2_pages (20), perch2_resource_log (73), perch2_resource_tags (0), perch2_resources (12), perch2_resources_to_tags (0), perch2_settings (12), perch2_user_passwords (1), perch2_user_privileges (33), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_gallery',
'perch_forms',
);
Editor plug-ins: markitup, redactor
H1: ceaf9664687b613cc76ede29c7406762
L1: 9915554332bcefccb5424c7b637b720b
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.31: done
latest_version: 2.8.15
on_sale_version: 2.8.31
perch_gallery_update: 2.8.5
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: droitw_db_user
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: perch_
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: james@beyondvisual.co.uk
PERCH_EMAIL_FROM_NAME: James Curran
PERCH_LOGINPATH: /cms
PERCH_PATH: /var/www/vhosts/historicdroitwich.org.uk/httpdocs/cms
PERCH_CORE: /var/www/vhosts/historicdroitwich.org.uk/httpdocs/cms/core
PERCH_RESFILEPATH: /var/www/vhosts/historicdroitwich.org.uk/httpdocs/cms/resources
PERCH_RESPATH: /cms/resources
PERCH_HTML5: 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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/vhosts/historicdroitwich.org.uk/httpdocs/cms/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_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS
PHP: 5.3.3
Zend: 2.3.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.0.95
MySQL server: 5.0.95-log
Free disk space: 311.08 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, session, iconv, Reflection, standard, shmop, SPL, SimpleXML, sockets, exif, tokenizer, xml, apache2handler, curl, dom, fileinfo, gd, imap, json, mbstring, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, SQLite, wddx, xmlreader, xmlwriter, xsl, zip, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 128M
PHP max form post size: 50M
PHP memory limit: 512M
Total max uploadable file size: 50M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
UNIQUE_ID: wCcbP9WlRikAAGM5DnAAAAAB
PP_CUSTOM_PHP_INI: /var/www/vhosts/system/historicdroitwich.org.uk/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX: module
HTTP_HOST: historicdroitwich.org.uk
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://historicdroitwich.org.uk/cms/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: cmsa=1; PHPSESSID=s5h7kmlbsolvgrhdhcnjrdtq35
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE: <address>Apache Server at historicdroitwich.org.uk Port 80</address>
SERVER_SOFTWARE: Apache
SERVER_NAME: historicdroitwich.org.uk
SERVER_ADDR: 213.165.70.41
SERVER_PORT: 80
REMOTE_ADDR: 82.69.41.174
DOCUMENT_ROOT: /var/www/vhosts/historicdroitwich.org.uk/httpdocs
SERVER_ADMIN: webdev@designjazz.com
SCRIPT_FILENAME: /var/www/vhosts/historicdroitwich.org.uk/httpdocs/cms/core/settings/diagnostics/index.php
REMOTE_PORT: 62636
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME: 1472635840
If it's working locally but not on the server, it sounds like a server issue.
What symptoms are you seeing?
I'm getting the imageAlt in alt and h5, but nothing in href or src.
Are these new images or ones transferred from the dev environment?
Are they on the server?
Yes they're on the server. I've tried creating new galleries and using differing images.
What's different about the two environments?
Just php version as far as I can tell. This is local.
Are you getting any errors logged?
No errors.
Ok - what else can you tell me that might help?
I've overwritten the files in the gallery app folder and it's working now.
Thanks for help Drew.