Forum

Thread tagged as: Problem, Events, Redactor

Images in content being deleted

I've noticed that an image posted through the event app (with a regular image field type) and an image added in a perch content region using redactor editor and are in published content can be automatically removed.

It appears isolated to one image that is named food-energy-water-conference-thumb.jpg

In the event app code looks like

<img src="/perch/resources/images/food-energy-water-conference-thumb.jpg" alt="Towards Food, Energy and Water Security in California">

In the redactor content region the html looks like this

<img src="https://www.environment.ucla.edu/perch/resources/images/food-energy-water-conference-thumb.jpg" alt="Towards Food, Energy and Water Security in California">

I have backups through dropbox and can re add them and then a day or two later the image gets deleted again. It isn't all assets in active content getting deleted and appears so far related to events and one particular perch content region.

I've rename the images in both places so they are unique to see if perhaps the file name is the culprit.

Here is my base diagnostic report. The error was occurring with ver 2.8.13 and I just updated a moment ago so perhaps its fixed now.

SUMMARY INFORMATION

Perch Runway: 2.8.14, PHP: 5.4.42, MySQL: 5.1.59, with PDO
Server OS: Linux, apache2handler
Installed apps: content (2.8.14), assets (2.8.14), categories (2.8.14), collection_4 (2.8.14), perch_events (1.9.2), collection_1 (2.8.14), collection_6 (2.8.14), collection_5 (2.8.14), perch_podcasts (1.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', 'perch_podcasts', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/domains/ioes/html/perch
PERCH_CORE: /var/www/domains/ioes/html/perch/core
PERCH_RESFILEPATH: /var/www/domains/ioes/html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 250M, Max POST 250M, Memory: 256M, Total max file upload: 250M
Resource folder writeable: Yes
HTTP_HOST: www.environment.ucla.edu
DOCUMENT_ROOT: /var/www/domains/ioes/html
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Scott Gruber

Scott Gruber 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What steps do you follow to restore the image?

In the event app image field type I would go to the data entry form, remove the broken image, save event, then upload image again. No name change.

In redactor, I would delete image and then upload it again. No name change.

So it's like redactor or something didn't know the image name existed already and didn't add a -1 to file name like I've seen before.

Today I uploaded two images each with a unique file name. And will see what happens tomorrow.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok thanks, keep us updated.

What would be the least amount of permissions that can be set on /perch/resources folder that would let files be viewable by users, and enable dropbox support. I want to use PERCH_CHMOD_FILES to change files after they are uploaded.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's not so much down to Perch as it is to the server's groups and users configuration.