Forum

Thread tagged as: Question, Configuration, Gallery

Problems with Gallery app

I have set the gallery app up for my client and he is having the following issues of adding info to the images and them not saving (please see screen shots) ...

My client... I was trying to add a description and keywords under Apps > Gallery > Album as per below. Typing into the description and Tags boxes and pressing save didn’t work (I got the second screen shot below):

Screenshot 1 Screenshot 2

I have set this app up numerous times and never come across this and cannot see where the error is.

Denise

Denise Courtney

Denise Courtney 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

You need to find your PHP error log to see what the error is. You may need to ask the host the location.

If you need further help once you have the actual error post back - including your Diagnostic Report.

Ok. I am just locating the php log. Do I have to add some code to the config to get the diagnostics?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Your Diagnostic Report is under Settings in the Perch Admin, but we need the actual error from the error log as a priority

Php error log....

[31-Mar-2015 10:49:48] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/PerchSession.class.php on line 9
[31-Mar-2015 10:49:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/addons/apps/perch_gallery/upload.php on line 7
[31-Mar-2015 10:49:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/addons/apps/perch_gallery/upload.php on line 8
[31-Mar-2015 10:49:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/addons/apps/perch_gallery/upload.php on line 9
[31-Mar-2015 10:49:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/addons/apps/perch_gallery/upload.php on line 10
[31-Mar-2015 10:49:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/addons/apps/perch_gallery/upload.php on line 11
[31-Mar-2015 10:59:39] PHP Fatal error:  Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415

diagnostics....

PERCH INFORMATION

Perch: 2.8.4
Production mode: Production (100)
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_gallery (2.8.5), perch_shop_paypal (1.2.1), perch_members (1.1)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_members, perch2_members_forms, perch2_members_member_tags, perch2_members_sessions, perch2_members_tags, 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_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_gallery',
         'perch_members',
          'perch_shop_paypal',
    );
?>
Editor plug-ins: markitup, redactor
H1: a4be3f7af66fa657ecc75cc7a755133e
L1: 1cc924017ba982f7e3be0df70422069a
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.4.5: done
latest_version: 2.8
on_sale_version: 2.8.4
headerScheme: light
content_hideNonEditableRegions: 1
dashboard: 0
content_frontend_edit: 0
siteURL: https://www.nickoakleyphotography.com
perch_gallery_update: 2.8.5
update_2.7.7: done
perch_shop_paypal_email: nicklives@btinternet.com
perch_shop_product_url: /shop/product.php?s={productSlug}
perch_members_login_page: /members/login.php?r={returnURL}
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
hide_pwd_reset: 0
perch_shop_display_oos: 0
perch_gallery_basicUpload: 0
update_2.8.2: done
update_2.8.4: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: admin
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: nickoakley
PERCH_DB_PREFIX: perch2_
PERCH_TZ: GMT
PERCH_EMAIL_FROM: courtneydesign@aol.com
PERCH_EMAIL_FROM_NAME: Denise Courtney
PERCH_LOGINPATH: /perch
PERCH_PATH: /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch
PERCH_CORE: /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core
PERCH_RESFILEPATH: /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_CLEAN_RESOURCES: 1
PERCH_UNDO_BUFFER: 3
PERCH_EMAIL_METHOD: smtp
PERCH_EMAIL_HOST: mailtrap.io
PERCH_EMAIL_AUTH: 1
PERCH_EMAIL_PORT: 2525
PERCH_EMAIL_USERNAME: 32209a7600120c932
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/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.3.1
Zend: 2.3.0
OS: Linux
SAPI: apache
Safe mode: not detected
MySQL client: 5.0.20a
MySQL server: 5.0.20a-max
Extensions: Core, date, ereg, libxml, pcre, sqlite3, calendar, ctype, dba, dom, hash, fileinfo, filter, session, json, ldap, mbstring, SPL, PDO, pdo_sqlite, zlib, posix, Reflection, standard, SimpleXML, soap, sockets, SQLite, exif, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache, mysql, mysqli, pdo_mysql, gd, curl, mcrypt, iconv, gettext, ftp, Phar, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 12M
PHP max form post size: 8M
PHP memory limit: 16M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
DOCUMENT_ROOT: /www/vhtdocs/nickoakleyphotography.com
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: cmsa=1; PHPSESSID=cf629a6ad7f1a9b233fa4a62a664c4ba
HTTP_HOST: nickoakleyphotography.com
HTTP_REFERER: https://nickoakleyphotography.com/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9
PATH: /usr/local/bin:/sbin:/usr/bin:/usr/sbin:/bin
REDIRECT_QUERY_STRING: extended
REDIRECT_STATUS: 200
REDIRECT_UNIQUE_ID: VRqCS9RFxjQAAEz2m6I
REDIRECT_URL: /perch/core/settings/diagnostics/
REMOTE_ADDR: 92.18.22.24
REMOTE_PORT: 56074
SCRIPT_FILENAME: /www/vhtdocs/nickoakleyphotography.com/perch/core/settings/diagnostics/index.php
SERVER_ADDR: 212.69.198.52
SERVER_ADMIN: admin@activewebsite.dsvr.co.uk
SERVER_NAME: nickoakleyphotography.com
SERVER_PORT: 80
SERVER_SIGNATURE: <ADDRESS>Apache/1.3.42 Server at nickoakleyphotography.com Port 80</ADDRESS>
SERVER_SOFTWARE: Apache/1.3.42 (Unix) (Red-Hat/Linux) mod_ssl/2.8.31 OpenSSL/0.9.8n-fips FrontPage/4.0.4.3
UNIQUE_ID: VRqCS9RFxjQAAEz2m6I
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
PATH_TRANSLATED: /www/vhtdocs/nickoakleyphotography.com/perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME: 1427800651
argc: 1

Thank you for you time, Denise

Drew McLellan

Drew McLellan 2638 points
Perch Support

I looks like you've got some whitespace outside of PHP tags in your apps.php file.

this is my apps.php file. I've taken out some of whitespace but its still not working.

<?php $apps_list = array( 'content', 'categories', 'perch_gallery', 'perch_members', 'perch_shop_paypal', ); ?>

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you still getting the same error, or has the error changed?

Yes. I just get a completely blank screen, my client gets the screenshot above.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you're getting the same error, then the problem persists. Can you confirm there is nothing outside of the <?php ?> tags in your apps.php file? Not even a line break or a space?

If so, please double check your file is saved with a UTF8 encoding with no BOM.

Yes I have double checked all that.

Not sure if this helps, but I have another site on perch with a gallery that works.

I switched the to the same apps.php file as my site the doesn't work and it still worked fine.

Also I wondered if I had incorrectly added some extra fields to the gallery image.html but I tried this on the working site and the all worked and saved fine too.

I am a bit stumped, hope you can help. Denise

Drew McLellan

Drew McLellan 2638 points
Perch Support

And this is still the error you're getting?

PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/PerchSession.class.php on line 9

Unfortunately the php error logs do not make too much sense to me.

Here's all todays relevant perch bits. the teamhybrid site was the one I was using to test if that helps.

[01-Apr-2015 12:47:04] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 12:47:34] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 12:53:04] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 12:53:23] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 12:55:07] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 13:44:49] PHP Deprecated: Function eregi() is deprecated in /usr/local/home/httpd/vhtdocs/limohire/Quote/fcf2_process_form1.php on line 20 [01-Apr-2015 14:07:25] PHP Deprecated: Function eregi() is deprecated in /usr/local/home/httpd/vhtdocs/limohire/Quote/fcf2_process_form1.php on line 20 [01-Apr-2015 14:15:42] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/core/lib/PerchSession.class.php on line 9 [01-Apr-2015 14:15:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 7 [01-Apr-2015 14:15:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 8 [01-Apr-2015 14:15:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 9 [01-Apr-2015 14:15:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 10 [01-Apr-2015 14:15:42] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 11 [01-Apr-2015 14:19:49] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 14:26:28] PHP Fatal error: Call to a member function return_instance() on a non-object in /usr/local/home/httpd/vhtdocs/nickoakleyphotography.com/perch/core/lib/api/PerchAPI_Form.class.php on line 415 [01-Apr-2015 14:29:32] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/core/lib/PerchSession.class.php on line 9 [01-Apr-2015 14:29:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 7 [01-Apr-2015 14:29:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 8 [01-Apr-2015 14:29:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 9 [01-Apr-2015 14:29:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 10 [01-Apr-2015 14:29:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/config/apps.php:2) in /usr/local/home/httpd/vhtdocs/teamhybrid.co.uk/perch/addons/apps/perch_gallery/upload.php on line 11

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you sure you're running the latest versions of the apps? Most were updated for Perch 2.8 and earlier ones are not compatible.

I'll check my gallery app version. What essential folders do you need to copy over to upgrade? I don't want to loose any of the set up I have already done. Does the gallery app update from the assets panel yet? I know before you said this was coming in the next update.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It doesn't - it's basically just been patched to work with 2.8.