usergallery-plugin makes trouble - Warning: array_merge()

Found a bug? Tell us!!
Post Reply
stm999999999
Regular
Posts: 1517
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

usergallery-plugin makes trouble - Warning: array_merge()

Post by stm999999999 » Sun Aug 30, 2009 5:50 pm

hi,

abrupt I get an error in my gallery:

Code: Select all

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /html/cms-s9y/s9y/plugins/serendipity_event_usergallery/serendipity_event_usergallery.php on line 1081

Warning: Invalid argument supplied for foreach() in /html/cms-s9y/s9y/plugins/serendipity_event_usergallery/serendipity_event_usergallery.php on line 1090

Warning: Invalid argument supplied for foreach() in /html/cms-s9y/s9y/plugins/serendipity_event_usergallery/serendipity_event_usergallery.php on line 1090

Warning: Invalid argument supplied for foreach() in /html/cms-s9y/s9y/plugins/serendipity_event_usergallery/serendipity_event_usergallery.php on line 10


I did not change the plugin in the last time (IIRC) and:

This is no standalone installation, it is a shared installion. But: only two of my blogs there have this problem, the third not!?

[Update]

I get the error not for every image!

good: [url]http://www.sankt-joseph-siemensstadt.de/gallery.html?serendipity[image]=167[/url]
bad: [url]http://www.sankt-joseph-siemensstadt.de/gallery.html?serendipity[image]=440[/url]
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: usergallery-plugin makes trouble - Warning: array_merge()

Post by garvinhicking » Mon Aug 31, 2009 11:26 am

Hi!

Can you try to change that line into:

Code: Select all

$extended_data = array_merge($extended_data['base_property'],(array)$extended_data['base_metadata']);
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

stm999999999
Regular
Posts: 1517
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: usergallery-plugin makes trouble - Warning: array_merge()

Post by stm999999999 » Mon Aug 31, 2009 1:57 pm

works fine - thanks.

And, out of curiosity, what was the problem?
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: usergallery-plugin makes trouble - Warning: array_merge()

Post by garvinhicking » Mon Aug 31, 2009 2:44 pm

Hi!

To me it seems as if for specific images no core metadata was found, and thus couldn't be combined with "additional" metadata...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply