Page 1 of 1

usergallery-plugin makes trouble - Warning: array_merge()

Posted: Sun Aug 30, 2009 5:50 pm
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

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

Posted: Mon Aug 31, 2009 11:26 am
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']);

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

Posted: Mon Aug 31, 2009 1:57 pm
by stm999999999
works fine - thanks.

And, out of curiosity, what was the problem?

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

Posted: Mon Aug 31, 2009 2:44 pm
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