Forum

Thread tagged as: Error

PHP errors when trying to add custom logo to Perch admin panel

When uploading a custom admin panel logo, the following error displays at the top of the page after hitting save. The logo is saved and displays normally however.

Warning: exif_read_data(phparfXdH): File not supported in /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php on line 532

Warning: Cannot modify header information - headers already sent by (output started at /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php:532) in /home/REMOVED/public_html/perch/core/lib/PerchUtil.class.php on line 1383

Warning: Cannot modify header information - headers already sent by (output started at /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php:532) in /home/REMOVED/public_html/perch/core/lib/PerchUtil.class.php on line 1384

Warning: Cannot modify header information - headers already sent by (output started at /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php:532) in /home/REMOVED/public_html/perch/core/lib/PerchUtil.class.php on line 1385

Warning: Cannot modify header information - headers already sent by (output started at /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php:532) in /home/REMOVED/public_html/perch/core/lib/PerchUtil.class.php on line 1391

Warning: Cannot modify header information - headers already sent by (output started at /home/REMOVED/public_html/perch/core/lib/PerchImage.class.php:532) in /home/REMOVED/public_html/perch/core/inc/top.php on line 17

Diagnostics Summary:

Perch: 3.0.1, PHP: 5.4.45, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.1), assets (3.0.1), categories (3.0.1), dh_ga (1), perch_forms (1.9), perch_members (1.6)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_members', 'dh_ga', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/REMOVED/public_html/perch
PERCH_CORE: /home/REMOVED/public_html/perch/core
PERCH_RESFILEPATH: /home/REMOVED/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 256M, Max POST 256M, Memory: 256M, Total max file upload: 256M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/REMOVED/public_html
HTTP_HOST: www.REMOVED.co.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Haydn Ward

Haydn Ward 4 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What sort of file is it?

Just a PNG.

Drew McLellan

Drew McLellan 2638 points
Perch Support

We'll take a look into it - that should work!

Abby Larsen

Abby Larsen 0 points
Registered Developer

I have the same error (just different paths) in a fresh install of Runway 3.0.1. Uploading a custom logo (png) in "General Settings." The image does upload and remain after saving, but the error is disconcerting.

We've been getting the same collection of errors when trying to upload PDFs into Assets directly on our staging server. It's happened for both me and the client.

Warning: exif_read_data(phpoDVXOP): File not supported in [path to Perch]/core/lib/PerchImage.class.php on line 532

Warning: Cannot modify header information - headers already sent by (output started at [path to Perch]/core/lib/PerchImage.class.php:532) in [path to Perch]/core/lib/PerchImage.class.php on line 1383

Warning: Cannot modify header information [etc]

Etc = Same error blocks as in Haydn Ward's post; same line numbers.

We do not get these errors when uploading PDFs through a templated file-upload field that has an assigned bucket. It only happens when uploading directly into Assets.

Dunno if it matters, but we're using ImageMagick instead of GD because we want thumbnails of PDFs.

Additional info: for us, this happens when uploading both PDFs and PNGs directly into Assets. It does not appear to happen for JPGs! And, as reported, PNGs do actually upload into Assets, despite the error messages. PDFs are more problematic because it takes a good 20-30 seconds for ImageMagick to generate the thumbnail; I'm guessing the client interrupts the process as soon as the errors appear.

I'm getting the same when I try to upload png images.

Warning: exif_read_data(phpoDVXOP): File not supported in [path to Perch]/core/lib/PerchImage.class.php on line 532
Drew McLellan

Drew McLellan 2638 points
Perch Support

We've put some extra checking for this in 3.0.2.