Forum

Thread tagged as: Problem, Configuration, Gallery

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

James Curran

James Curran 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

<li class="fancybox">
            <a href="" class="gallery cboxElement" title="file1-1" rel="album6">
                <img src="" width="" height="" alt="file1-1">
                <h5>file1-1</h5>
            </a>
        </li>
Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's different about the two environments?

Just php version as far as I can tell. This is local.

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 (136), perch2_content_items (55), perch2_content_regions (19), perch2_gallery_albums (2), perch2_gallery_image_versions (155), perch2_gallery_images (31), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (4), perch2_pages (21), perch2_resource_log (104), perch2_resource_tags (0), perch2_resources (18), perch2_resources_to_tags (0), perch2_settings (11), perch2_user_passwords (0), perch2_user_privileges (30), perch2_user_role_privileges (37), 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: c6376400ea24bf2a78c435d2ddc6637a
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: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: droitwich
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: /Users/jamescurran/Sites/historic-droitwich/cms
PERCH_CORE: /Users/jamescurran/Sites/historic-droitwich/cms/core
PERCH_RESFILEPATH: /Users/jamescurran/Sites/historic-droitwich/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: /Users/jamescurran/Sites/historic-droitwich/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.6.8
Zend: 2.6.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $
MySQL server: 5.6.24
Free disk space: 78.34 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, sockets, exif, sybase_ct, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, apache2handler, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 128M
PHP max form post size: 128M
PHP memory limit: 128M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
UNIQUE_ID: V8b6eMCoAU4AADa3lIMAAAAE
HTTP_HOST: droitwich.local
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://droitwich.local/cms/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: cmsa=1; PHPSESSID=83k0j97hvg2v1s81rcs6dbrot0
PATH: /usr/bin:/bin:/usr/sbin:/sbin
DYLD_LIBRARY_PATH: /Applications/XAMPP/xamppfiles/lib
SERVER_SOFTWARE: Apache/2.4.12 (Unix) OpenSSL/1.0.1m PHP/5.6.8 mod_perl/2.0.8-dev Perl/v5.16.3
SERVER_NAME: droitwich.local
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: /Users/jamescurran/Sites/historic-droitwich
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /Users/jamescurran/Sites/historic-droitwich
SERVER_ADMIN: admin@localhost
SCRIPT_FILENAME: /Users/jamescurran/Sites/historic-droitwich/cms/core/settings/diagnostics/index.php
REMOTE_PORT: 63217
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_FLOAT: 1472658040.093
REQUEST_TIME: 1472658040
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you getting any errors logged?

No errors.

Drew McLellan

Drew McLellan 2638 points
Perch Support

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.