Forum

Thread tagged as: Question, Problem, Error

Assets Deleted

Is there a known issue about images/assets being deleted when you update any given region?

It happens only with the images I have in one specific bucket. I add images, save and everything is ok, but as soon as I edit that region, they will disapear (they still in the bucket but the won't show up in the frontend). Can you help me please? This is the code I have in my template:

Forgot to mention, it only happens in the live site, I tested in the local site and all works fine.

<div id="photos">
                    <perch:before>
                        <ul id="gallery" class="imagelisting glist">
                    </perch:before>
                        <perch:repeater id="image" label="Photos" max="12">
                            <li class="item">
                                <a href="<perch:content type="image" id="image" label="Image" width="1000" bucket="directorio" />">
                                    <img src="<perch:content type="image" id="image" label="Image" width="300" height="300" crop="true" quality="75" />" alt="<perch:content id="alttxt" type="text" label="Alt text" />" width="<perch:content id="image" type="image" label="Image" output="w" />" height="<perch:content id="image" type="image" label="Image" output="h" />" />
                                </a>
                            </li>
                        </perch:repeater>
                    <perch:after>
                            <li class="gap"></li>
                            <li class="gap"></li>
                        </ul>
                    </perch:after>
                </div><!-- #photos -->
Miguel Corrales

Miguel Corrales 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report.

Wow! I see some warnings...

  • Perch is out of date. You are running Perch 2.7.2 and the latest is 2.7.10. Update instructions
  • PHP 5.3.29 is very out of date. More info
  • MySQL 5.1.72-rel14.10 is up to date
  • Image processing available
  • File upload size is low. You can only upload files up to 2M.

SUMMARY INFORMATION

  • 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.2), perch_events (1.9), perch_gallery (2.8.5)
  • App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_events', 'perch_gallery', );
  • PERCH_LOGINPATH: /backstage
  • PERCH_PATH: /nfs/c11/h01/mnt/197161/domains/escaletra.mx/html/backstage
  • PERCH_CORE: /nfs/c11/h01/mnt/197161/domains/escaletra.mx/html/backstage/core
  • PERCH_RESFILEPATH: /nfs/c11/h01/mnt/197161/domains/escaletra.mx/html/backstage/resources
  • Image manipulation: GD
  • PHP limits: Max upload 2M, Max POST 8M, Memory: 99M, Total max file upload: 2M
  • Resource folder writeable: Yes
  • HTTP_HOST: www.escaletra.mx
  • DOCUMENT_ROOT: /home/197161/domains/escaletra.mx/html
  • REQUEST_URI: /backstage/core/settings/diagnostics/
  • SCRIPT_NAME: /backstage/core/settings/diagnostics/index.php
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I imagine your issue is your upload limits on your hosting.

The maximum file upload limit is set very low, if you are uploading images then you will be hitting that and so the images won't upload.

Got it. Let me check with my hosting provider then. Thank you Rachel.