Forum
Photos disappears
Hi,
When i upload a photo to Perch it shows the photo in the CMS and on the website. But when i go in to the same page and save the page agian the photo disappears – any ideas what happens?
Perch: 2.7.2, PHP: 5.3.29, MySQL: 5.1.73, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.7.2), assets (2.7.2), categories (2.7.2), perch_blog (4.5.4)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog' );
PERCH_LOGINPATH: /admin
PERCH_PATH: /var/www/vhosts/rswatches.dk/httpdocs/admin
PERCH_CORE: /var/www/vhosts/rswatches.dk/httpdocs/admin/core
PERCH_RESFILEPATH: /var/www/vhosts/rswatches.dk/httpdocs/admin/resources
Image manipulation: GD
PHP limits: Max upload 200M, Max POST 200M, Memory: 256M, Total max file upload: 200M
Resource folder writeable: Yes
HTTP_HOST: rswatches.dk
DOCUMENT_ROOT: /var/www/vhosts/rswatches.dk/httpdocs
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Could you try with the latest version?
Hi.
I have now updated. Same problem.
Cheers, Simon
Hi agian,
The template tag i use is:
If that have something to say
I get this error from the log:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/vhosts/rswatches.dk/httpdocs/admin/core/lib/PerchUtil. class.php on line 532, referer: https://rswatches.dk/admin/core/apps/content/page/?id=10
Does it mean anything ?
Yes, you need to allocate more memory to PHP, or upload smaller images.
I have enough memory, but it seems like a problem serializing the JSON data. I have seen 6MB JSON blobs in the database, which I manually deleted to get things going again. However, it the image still dissapears from the repeater when I upload > save and reload the page. Using just a normal image without repeater, works fine.
This is very strange.
How many items do you have in the repeater?