Forum

Thread tagged as: Problem

Add Asset button missing

I've done a new install of Perch 2.5.3 and I'm not seeing the Add Asset button in the Assets panel. I see Use Selected but no Add Asset button. I see the button on the Assets page but not in the panel.

Assets (images) can be uploaded from the Assets page and these then appear in the Assets panel for selection. But, no Add Asset button in the panel.

I don't see any error with

define('PERCH_DEBUG', true);

and my Diagnostics report appears to be OK.

Not really sure why the button is missing.

Clive Walker

Clive Walker 22 points

  • 7 years ago

Was just about to open a new thread on the same subject! Exactly the same thing's happening to me with a site I've just upgraded.

here's the template code I'm using:

<img src="<perch:content type="image" id="image" label="Image" width="310" density="2" quality="40" />" alt="<perch:content type="text" id="alt" label="Image description" required="true" help="e.g. Children in the playground" title="true" />" width="310" />

Here's a screenshot: https://www.dropbox.com/s/0m5goi9rqz6dusm/Screen%20Shot%202014-07-15%20at%2011.38.17%20am.png

Strangely, I upgraded a site I put live last week to 2.5.3 to see if it did the same thing locally. The template code there looks like this:

<h3>
  <perch:content id="heading" type="text" label="Heading" html="false" required="true" title="true" />
</h3>

<perch:content id="text" type="textarea" size="s" label="Text" markdown="true" />

<perch:if exists="download">
  <a href="<perch:content divider-before="Download (optional)" id="download" type="file" label="Download" />" class="file"><perch:content type="text" id="desc" label="Title" /></a>
</perch:if>

<perch:if exists="image">
  <img src="<perch:content divider-before="Image (optional)" type="image" id="image" label="Image" width="635" height="430" crop="true" quality="40" density="2" bucket="pages" />" alt="<perch:content type="text" id="alt" label="Description" help="e.g. Photo of MD John Smith with his best wig on" />" width="635" height="430" />
</perch:if>

<a href="#top" class="back_to_top">Back to top</a>

And the Add Assets button is there. I copied the site where it wasn't working and it worked! So I then took just the image code (that's in the perch:if tags) and it didn't work. Very strange…

I've downgraded the new site to 2.5.2, as I had a copy in my trash from last week, and it works again.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm working on it.

Great– thanks :)

I'm still having an issue with this. Well, not me: my clients are. The fix in 2.5.4 worked for me but it's still breaking on the client's end. I got them to clear cookies in case it was something to do with their cache, but no luck. I then asked them to log in outside of the network they were on with a different machine but still no button.

It's working fine for me. I've even tried it on 3G on my phone and (although the interface is a bit broken at mobile) the '+ Add Asset' button appears ok. Bit of a weird one…

They're getting really frustrated and I'm getting a bit embarrassed. Am I able to downgrade to 2.4.9 without any consequences?

Perch: 2.5.4, PHP: 5.4.29, MySQL: 5.5.38, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.5.4), assets (2.5.4), perch_blog (4.1), perch_events (1.9), perch_gallery (2.8.5), perch_backup (1.2) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_events/runtime.php'); ?> PERCH_LOGINPATH: /cms PERCH_PATH: /var/www/vhosts/skeltonnewbyhall.n-yorks.sch.uk/httpdocs/cms PERCH_CORE: /var/www/vhosts/skeltonnewbyhall.n-yorks.sch.uk/httpdocs/cms/core PERCH_RESFILEPATH: /var/www/vhosts/skeltonnewbyhall.n-yorks.sch.uk/httpdocs/cms/resources Image manipulation: GD PHP limits: Max upload 128M, Max POST 8M, Memory: 128M, Total max file upload: 8M Resource folder writeable: Yes SCRIPT_NAME: /cms/core/settings/diagnostics/index.php REQUEST_URI: /cms/core/settings/diagnostics/ DOCUMENT_ROOT: /var/www/vhosts/skeltonnewbyhall.n-yorks.sch.uk/httpdocs HTTP_HOST: www.skeltonnewbyhall.n-yorks.sch.uk

Have you tried allowing your client admin rights?