getSearchResults gets data but fails serializing

2 views
Skip to first unread message

clonica

unread,
Oct 22, 2009, 10:53:08 AM10/22/09
to Fotolia API
Hello,

I've implemented the business api with php and can't get it to work on
our production server (linux, apache, php5).
The same code works on other servers without a problem. Here's the
link to a test page:

http://arpe.es/php-kit/getSearchResults.php?words=beach&language_id=2

It gives a lot of warnings like this:
Warning: array_key_exists() [function.array-key-exists]: The second
argument should be either an array or an object in /home/clientes/
arpe.es/www/php-kit/xml-rpc.php on line 96


I suspect it might be a server configuration error but I don't know
what to check. Could someone please give me a hint about what the
error could be?

Olivier Sirven

unread,
Oct 22, 2009, 11:09:47 AM10/22/09
to Fotol...@googlegroups.com
Hello,

From what I see you're using the PHP4 version of the API Kit which is
not supported anymore by Fotolia. Moreover, it can cause issues when
used with PHP5, I think that's the case here.
I encourage you to use the php5 version of the kit.

Regards,

Olivier

clonica

unread,
Oct 22, 2009, 11:17:22 AM10/22/09
to Fotolia API
Thanks a lot, Olivier, I'll try to use the newest version of the api
kit.

On Oct 22, 5:09 pm, Olivier Sirven <oliv...@fotolia.com> wrote:
> Hello,
>
> From what I see you're using the PHP4 version of the API Kit which is
> not supported anymore by Fotolia. Moreover, it can cause issues when
> used with PHP5, I think that's the case here.
> I encourage you to use the php5 version of the kit.
>
> Regards,
>
> Olivier
>
Reply all
Reply to author
Forward
0 new messages