Repeated images in serendipity_event_usergallery

Found a bug? Tell us!!
Post Reply
rgmiller1974
Posts: 3
Joined: Thu Oct 03, 2013 5:24 am

Repeated images in serendipity_event_usergallery

Post by rgmiller1974 »

Hello everyone,

I recently upgraded from serendipity 1.6.2 / serendipity_event_usergallery 2.42 to 1.7.3 & 2.56 and I've noticed a problem with the gallery image display. Specifically, when I display URL's like: <base_url>/index.php?serendipity[subpage]=gallery&serendipity[image]=1136, I actually see two copies of what I'll call the main part of the web page. The top banner and side bar render correctly, but the image, the "Gallery Display" title and all the links are all duplicated.

I'm not much of a web developer, but I took a quick look at the source code for the page and saw that both the popImage function and "serendipity_Entry_Date serendipity_event_usergallery_image_display" class were defined twice. That is, the code went:

Code: Select all

    <script language="Javascript" type="text/javascript">
<!--
function popImage(file_name,file_title,file_width,file_height) {
  ...snip...
}
//-->
</script>
<div class="serendipity_Entry_Date serendipity_event_usergallery_image_display">
     ...snip...
</div>
<script language="Javascript" type="text/javascript">
<!--
function popImage(file_name,file_title,file_width,file_height) {
  ...snip...
}
//-->
</script>
<div class="serendipity_Entry_Date serendipity_event_usergallery_image_display">
  ...snip...
</div>
Example of what I'm talking about is here:
http://www.penguinstation.net/serendipi ... ge%5D=1136

Has anyone seen this before or have any ideas how to fix it?

Thanks,
-Ross

PS: I originally upgraded to Serendipity 1.7.3 while leaving the usergallery plugin at 2.42, but that didn't work work at all. (The image didn't display and the links were all broken). I attributed that to the change to stricter PHP that was mentioned in the upgrade notes and on this forum, though.

PPS: I have all this reproduced on my local Fedora workstation, so if someone wants me to tweak some PHP settings or capture some debug info, I can do that easily. Just tell me what to look for.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Repeated images in serendipity_event_usergallery

Post by Timbalu »

Are you sure you now haven't got 2 references of that plugin installed?
(See Plugin list and/or *_config database table.)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
rgmiller1974
Posts: 3
Joined: Thu Oct 03, 2013 5:24 am

Re: Repeated images in serendipity_event_usergallery

Post by rgmiller1974 »

Timbalu wrote:Are you sure you now haven't got 2 references of that plugin installed?
(See Plugin list and/or *_config database table.)
Ahah! That was the problem. Not sure where the second reference came from, but removing it fixed everything. Thanks, Ian.

-Ross
Post Reply