We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem

images disappearing

I have a page where I upload copy and images as a projects page - its on a live dev.addresss

I went to upload new pics (still in assets) and it make all the images disappear

template code:


<div class="project-header project-header-m"> <div class="project-title-d project-title-m"> <p><perch:content id="type" type="text" label="Type of project" textile="true" /></p> </div> <div class="project-location-d project-location-m"> <p><perch:content id="location" type="text" label="Location of project" textile="true" /></p> </div> <perch:content id="slug" for="project_name_location" type="slug" suppress="true" /> <div class="project-describe-d project-describe-m"> <p><perch:content id="describe" type="textarea" label="Describe project" textile="true" editor="markitup" /></p> </div> <section id="griff-project-content" style="display:none"> <h3><perch:content id="project_name_location" type="text" label="Project Type, Location" required="true" help="Example: New Build, Lincoln (seen on list page, repeat as above)" title="true" suppress="true"/></h3> <perch:repeater id="images" label="Images" max="10"> <perch:before> <ul> </perch:before> <div class="project-pic-d project-pic-t project-pic-m"> <li> <img src="<perch:content type="image" id="image" label="Image" width="980" height="600" crop="true"/>" class="fullimg" alt="<perch:content type="text" id="alt" label="Description" />" </li> </div> <perch:after> </ul> </perch:after> </perch:repeater> </section><!-- /project-content -->
Daniel Hurley

Daniel Hurley 0 points

  • 1 year ago

Hi Daniel

It might be a missing end tag on your images, so

<img src="<perch:content type="image" id="image" label="Image" width="980" height="600" crop="true"/>" class="fullimg" alt="<perch:content type="text" id="alt" label="Description" />" />

If this doesn't help, I would post your diagnostics and wait for the Perch support

Regards Wayne

Thanks very much Wayne - that didn't work

there are more templates that make this area work, maybe I should be posting them here:

<section id="griff-project-content"> 

<perch:content id="slug" for="project_name_location" type="slug" suppress="true" />

<perch:repeater id="images" label="Images" max="10">

    <perch:before>
    <ul>
    </perch:before>

   <div class="project-pic-d project-pic-t project-pic-m">

    <li>
        <img src="<perch:content type="image" id="image" label="Image" width="980" height="600" crop="true"/>" class="fullimg" alt="<perch:content type="text" id="alt" label="Description" />
    </li>

    </div>

    <perch:after>
    </ul>
    </perch:after>
        </perch:repeater>

</section><!-- /project-content --> 
<perch:before>  
<section class="slider">  

</perch:before>  
<div>  <a href="/projects.html?s=<perch:content id="slug" type="slug" />"><perch:repeater id="images" label="Images" max="1"><img src="<perch:content type="image" id="image" label="Image" scope-parent="true" width="980" height="600" crop="true"/>" class="d-all t-all m-all" alt="<perch:content type="text" id="alt" label="Description" />
</perch:repeater></a>  

</div>  

<perch:after>  

</section><!-- /slider -->  </perch:after>

I'd like to post my dev.address but worry it will be in the public domain for search engines find

Drew McLellan

Drew McLellan 2638 points
Perch Support

The diagnostics will do for now.

HEALTH CHECK

PHP 5.5.26 is up to date MySQL 5.5.42 is up to date Image processing available SUMMARY INFORMATION

Perch: 2.8.29, PHP: 5.5.26, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Darwin, apache2handler Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29) App runtimes: <?php $apps_list = array( 'content', 'categories', ); PERCH_LOGINPATH: /perch PERCH_PATH: /Users/danielhurley/Dropbox/Daniel Hurley Team Folder/WIP/01478 GBL Griff Build Website 2012/working files/sitebuild/perch PERCH_CORE: /Users/danielhurley/Dropbox/Daniel Hurley Team Folder/WIP/01478 GBL Griff Build Website 2012/working files/sitebuild/perch/core PERCH_RESFILEPATH: /Users/danielhurley/Dropbox/Daniel Hurley Team Folder/WIP/01478 GBL Griff Build Website 2012/working files/sitebuild/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes HTTP_HOST: griffbuild:8889 DOCUMENT_ROOT: /Users/danielhurley/Dropbox/Daniel Hurley Team Folder/WIP/01478 GBL Griff Build Website 2012/working files/sitebuild REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

In the first instance I'd recommend updating to the last version of Perch 2. You can download it from your account.

Thanks Drew - should i not just go to perch 3?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, if that's an option for you.

I now have perch 3 running locally - images load from the assets until saved, when saved they disappear in the same way, their listing appear with no images in and no image is loaded on the site

If I go to a project page which I created previously with text entries and images, then press save after not making any changes, the images disappear

looking again I am able to upload old image assets (not recently uploaded images) So I'm looking into what might be wrong with the recent images, the way they were uploaded or size maybe

I think I have resolved this. Thanks for the help.