usergallery-plugin makes trouble - Warning: array_merge()

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

usergallery-plugin makes trouble - Warning: array_merge()

Post by stm999999999 »

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: http://www.sankt-joseph-siemensstadt.de ... image]=167
bad: http://www.sankt-joseph-siemensstadt.de ... image]=440
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking »

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: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

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

Post by stm999999999 »

works fine - thanks.

And, out of curiosity, what was the problem?
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking »

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