Forum

Thread tagged as: Problem, Gallery, Redactor

Upload problems

Hi,

This is the first time I'm experiencing this problem:

First of all, on my local server and the online demo server, everything works perfectly. On the final production server, uploading and editing photos in the Gallery application does not work, ie that the uploader is not displayed (ditto for the edit page for an existing image) . For that site, I developed two applications similar to the Gallery application (interactive images and memory game), these two applications have the same failure on the production server.

The problem also concerns the upload through input type textareas using Redactor editor, upload files and images does not work on the final server while there is no problem on the development server. The strangest thing is that the CKEditor editor works in any cases.

I made many tests and I think I can state that the problem is not due to files/folders permissions or general configuration. However, I am not qualified enough to identify possible subtle server issues. The production server (HostPapa) executes PHP 5.5.34 and MySQL 5.6.29 version. My local version (which is OK): PHP 5.6.10 and MySQL 5.5.42

Would you have an idea about the origin of this problem?

Thanks in advance.

Kind regards,

H. MERTENS

SUMMARY INFORMATION

Perch: 2.8.29, PHP: 5.5.34, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_gallery (2.8.6), asveyou_imagesinteractives (2.8.6), asveyou_memorygame (2.8.6) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/asveyou_memorygame/runtime.php'); include(PERCH_PATH.'/addons/apps/asveyou_imagesinteractives/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); ?> PERCH_LOGINPATH: PERCH_PATH: PERCH_CORE: PERCH_RESFILEPATH: Image manipulation: GD PHP limits: Max upload 64M, Max POST 64M, Memory: 128M, Total max file upload: 64M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes DOCUMENT_ROOT:

Hugues Mertens

Hugues Mertens 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What can you tell me about the failure? Have you logged any errors?

No errors logged, when I click Add images in the gallery app, a blank page is resulting from the called URL: addons/apps/perch_gallery/images/upload/?album_id=1 The viewed HTML Source from the loader is completely blank, but if I put some test code in the PHP source, it echoed, so I assume it's not a PHP issue. Regarding to the redactor Issue, the uploader's throbber turns, but no file is transfered.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Bu the same is working for you locally?

Yes, it works locally and it also works on my online showcase server. The only place where it doesn't works is my client server.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are there any significant differences?

No difference in the front presentation, files and database have been transfered from the showcase site. The perch interface works exactly the same except the upload problem in Gallery app and Redactor. I also noticed uploading does not work either with Markitup and in the asset app though in this case, the asset upload page shows and performs the uploader.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I'm not really sure what to suggest.

Host issue, probably…

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you can find any more information to go on, let me know.

Okay, a long step by step trial and error process gave me the solution or a solution should I say. It was due to the Suhosin settings in the php.ini. I'm no specialist, so don't ask me what I've done, but all the apps seem to work, at last. Except my own version of Redactor, the newest version available from your site works well, but seems a little trickier to customize.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Interesting. Do you know which settings you changed?

I've turned off suhosin.executor.include.max_traversal

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's really helpful - thank you.