Forum

Thread tagged as: Problem, Gallery

Gallery save incorrect content after 2.7 upgrade

After upgrading to Perch 2.7, the gallery app seems to save wrong content in albumDynamicFields. Because of this the overview image doesn't show correctly anymore. If i remove the incorrect content directly from the database the image appears again.

It used to save this to the albumDynamicFields field :

{"artist":"Artist Name","credit":"Credit Name"}

After the 2.7 update it save this:

{"albumSlug":null,"overview":null,"overview-w":null,"overview-h":null,"artist":"Artist Name","credit":"Credit Name"}

Our album.html template looks like this:

<div class="serie">
<a href="serie/<perch:gallery id="albumSlug" />" title="<perch:gallery id="albumTitle" type="text" label="Titel" size="l" />">
 <div class="image"><img src="<perch:gallery id="overview" type="hidden" />" width="<perch:gallery id="overview-w" type="hidden" />" height="<perch:gallery id="overview-h"  type="hidden" />" alt="<perch:gallery id="artist" type="text" label="Artiest" required="true" /> and <perch:gallery id="credit" type="text" label="Fotograaf" /> "/></div>
 </a>
</div>
Benjamin Verkleij

Benjamin Verkleij 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version of Gallery are you running?

Sorry, forgot to mention: Installed apps: content (2.7), assets (2.7), categories (2.7), perch_gallery (2.8.5)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, I'm looking into it.

Any updates on this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I've not been able to reproduce it yet.

A little more information would be appreciated, are you still looking or is this all you can do about it?

This site ran fine for almost 2 years, has published about 200 galleries updates them daily. Now our client has to email us every single time he updates or adds a gallery so we can fix it directly in the database.

This is getting annoying for both the client and for us very fast.

If you need any information or want take a look yourself on the site, we'll be happy to supply login details.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Your Diagnostics Report would be helpful as I don't see it has been supplied yet - and any other information you can give us about your setup. We've not had the issue reported by anyone else as yet and we need to be able to reproduce problems to be able to fix them.

Here's my diagnostics report. The setup hasn't really changed, there's only 2 things changed, we've updated to php 5.5 recently (from 5.4) and updated Perch from 2.6.* to 2.7 that's it...

It's a very simple site with only a very small number of pages, the site is primarily leaning on gallery.

If you need any specific info, please ask, but other then that I have no idea what's causing this, and why it didn't happen prior to 2.7.

Perch: 2.7.2, PHP: 5.5.18, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (2.7.2), assets (2.7.2), categories (2.7.2), perch_gallery (2.8.5)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); ?>
PERCH_LOGINPATH: /****
PERCH_PATH: /home/****/public_html/****
PERCH_CORE: /home/****/public_html/****/core
PERCH_RESFILEPATH: /home/****/public_html/images/uploads
Image manipulation: GD Imagick
PHP limits: Max upload 20M, Max POST 8M, Memory: 256M, Total max file upload: 8M
Resource folder writeable: Yes
HTTP_HOST: ****.com
DOCUMENT_ROOT: /home/****/public_html
REQUEST_URI: /****/core/settings/diagnostics/
SCRIPT_NAME: /****/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your image.html template?

Here's my image.html template:

<perch:gallery id="image" type="image" key="main"  width="960" height="650" />
<perch:gallery id="image" type="image" key="overview" width="300"/>
<perch:gallery id="image" type="image" key="small" width="100" height="100" crop="true" />
<perch:gallery id="image" type="image" key="thumb" width="30" height="30" crop="true" />
<perch:gallery id="image" type="image" key="cover" width="290"/>
Drew McLellan

Drew McLellan 2638 points
Perch Support

And it's particularly the overview image you're having trouble with?

The overview image is used by the album.html template, and saving a gallery causes the wrong information being saved, including the overview-h and overview-w keys with values as null, but it also saves the albumSlug key with a value of null, so i didn't know if the issue is particular to the overview image.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, thanks for the info. We're digging into it.

Any news on this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, we're working on an update at the moment.

Great, looking forward to the update.

Hi Drew,

Any timeframe on this update, we're still having the same issue with 2.7.4 and it's getting quite annoying?

Drew McLellan

Drew McLellan 2638 points
Perch Support

No timeframe on this - I'm aware of it and it's logged and being looked into.

Hi Drew,

It's been over 2 months now, when can we expect an update on this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'll see if I can take a look at it next week. There's only one of me, so I have to prioritise my time on the issues that affect the most people, not just individual cases.