Forum

Thread tagged as: Problem

Assets disappearing after upload

Hi there, This is third site I'm setting up on my domain, so I don't understand why the issue or what I've done differently. Basically, when I try and upload an image asset, it uploads, the little thumbnail shows up for a brief moment, and then the asset disappears. I can see the file has been added via FTP, however I can't view it in the Perch CMS, so I can't use any of the images.

Please help?

Diagnostics report HEALTH CHECK

Perch is up to date PHP 5.5.32 is up to date MySQL 5.5.52-cll is up to date Image processing available SUMMARY INFORMATION

Perch: 2.8.32, PHP: 5.5.32, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32) App runtimes: <?php $apps_list = array( 'content', 'categories', ); PERCH_LOGINPATH: /projects/turicum/perch PERCH_PATH: /home/nataliar/public_html/creative-animal.com/projects/turicum/perch PERCH_CORE: /home/nataliar/public_html/creative-animal.com/projects/turicum/perch/core PERCH_RESFILEPATH: /home/nataliar/public_html/creative-animal.com/projects/turicum/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 200M, Max POST 200M, Memory: 256M, Total max file upload: 200M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes DOCUMENT_ROOT: /home/nataliar/public_html/creative-animal.com HTTP_HOST: www.creative-animal.com REQUEST_URI: /projects/turicum/perch/core/settings/diagnostics/ SCRIPT_NAME: /projects/turicum/perch/core/settings/diagnostics/index.php

Natalia Robba

Natalia Robba 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That sounds like you're getting a preview in your browser before upload, rather than the file being removed.

It sounds like the file is being uploaded, so is the issue that a thumbnail isn't generated?

Drew McLellan said:

That sounds like you're getting a preview in your browser before upload, rather than the file being removed.

It sounds like the file is being uploaded, so is the issue that a thumbnail isn't generated?

Hi Drew, that could whats happening yea, either way, my assets window stays totally blank =( any ideas what this could be?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Have you followed the troubleshooting steps here? https://docs.grabaperch.com/perch/help/#my-assets-are-not-uploading

Rachel Andrew said:

Have you followed the troubleshooting steps here? https://docs.grabaperch.com/perch/help/#my-assets-are-not-uploading

Hi Rachel thanks for the suggestion. I have yes, gone back to basics and kept the template to a very simple <perch:content id="logo" type="image" label="Trial Image" /> just to get things working, tried with a very small image, same thing. It appears to upload, show a little thumbnail for a second, and then it disappears and I'm left with nothing in the Assets, how bizarre.

Just found this error

VM779:1 POST https://www.creative-animal.com/projects/turicum/perch/core/apps/assets/upload/ 500 (Internal Server Error)

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you check your server's error log, it should have the detail of the error message.

Drew McLellan said:

If you check your server's error log, it should have the detail of the error message.

Thanks Drew, I took a look and this is all there is :

[Thu Oct 27 16:08:58.134199 2016] [:error] [pid 570468] [client 185.104.223.15:51717] SoftException in Application.cpp:261: File "/home/nataliar/public_html/creative-animal.com/projects/turicum/perch/core/apps/assets/upload/index.php" is writeable by group, referer: https://www.creative-animal.com/projects/turicum/perch/core/apps/content/edit/?id=11

[Thu Oct 27 16:08:28.957321 2016] [:error] [pid 565748] [client 185.104.223.15:51708] SoftException in Application.cpp:261: File "/home/nataliar/public_html/creative-animal.com/projects/turicum/perch/core/apps/assets/upload/index.php" is writeable by group, referer: https://www.creative-animal.com/projects/turicum/perch/core/apps/content/edit/?id=11

[Thu Oct 27 16:08:06.276847 2016] [autoindex:error] [pid 565874] [client 68.180.230.253:44550] AH01276: Cannot serve directory /home/nataliar/public_html/creative-animal.com/projects/turicum/perch/resources/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive

Does this help?

I've checked up on those issues and amended the .htaccess and permissions on the upload direction and index.php file. Now although I get a PHP error in the browser console, no errors show up on my servers error log :S

Drew McLellan

Drew McLellan 2638 points
Perch Support

What error are you getting now?

The errors above look like file system permission problems rather than anything you'd address from the web server config.

Drew McLellan said:

What error are you getting now?

The errors above look like file system permission problems rather than anything you'd address from the web server config.

That's the problem, now there are no errors at all in the error logs, despite still receiving the following error in browser console :

https://www.creative-animal.com/projects/turicum/perch/core/apps/assets/upload/ 500 (Internal Server Error)

Nothing in the error logs after I corrected the permissions issues, so I've no idea what to do now =( the same issue is still present

Drew McLellan

Drew McLellan 2638 points
Perch Support

You might need to contact your host to find out why the error isn't being logged.

https://docs.grabaperch.com/perch/building/troubleshooting/why-am-i-getting-a-blank-page/