• When I test the connection I get the following error:

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/xxx/public_html/2008/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1091

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/xxx/public_html/2008/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1104

    I have all the requirements met. Any suggestions?
    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m also getting a similar error. I’ve met all of the requirements and had this working perfectly. In the options screen I cleared the cache so the image list would refresh and since then it hasn’t worked again. I’ve even deleted and re-uploaded all of the files. Any ideas? I’d love to use this functionality still. Thanks!

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/jamesan5/public_html/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1086

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/mydirectory/public_html/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1099

    Warning: Invalid argument supplied for foreach() in /home/mydirectory/public_html/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 455

    In Options > WP-Gallery-Remote, add ‘main.php’ to the Gallery URL. E.g.:
    http://localhost/gallery/main.php

    It works for me!

    Reason:
    Simple URL such as http://localhost/gallery/ results in a redirection to main.php. URL redirections are not handled by WP-Gallery-Remote (in wp-gallery-remote.php, function do_post_request)

    Same problem for me:

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /my directory/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1086

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /my directory/wp-content/plugins/wp-gallery-remote/wp-gallery-remote.php on line 1099

    Same problem for me. I’m using Gallery2 and WordPress 2.2.1, WPGR 1.4. I’ve tested:
    http://laurecyril.homeip.net/gallery2/main.php
    http://laurecyril.homeip.net/gallery2/
    http://localhost/gallery2/main.php
    But no success.

    It’s maybe due to the fact that my server (Apache2) document root is e:\www\wordpress and I set up an alias from e:\www\gallery2 to http://localhost/gallery2/. I could try to setup the document root as e:\www and remove all aliases but I’d like to automatically redirect people to the wordpress part and I don’t know how. Any help ?

    I will answer to my own post because it might help others.
    First, I modified the settings of my apache web server so that there is no redirection when accessing to the gallery2 folder. But still it did not work.

    Then, I applied the basic rule: RTFM. So I read more carefully the manual (the readme) which clearly says in the requirement section:
    activated [Gallery-Remote module](http://codex.gallery2.org/Gallery2:Modules:remote “Gallery Remote module”)
    Only then did I realize that there is a module in Gallery2 that needed to be activated … I think I read to fast at first and made a confusion between the WordPress-Gallery-Remote Plugin of WordPress and the Gallery-Remote Module of Gallery2…
    Once activated. The connection test was successful without warning (array_search …).
    Then in writing a post I opened the WPGR window but it showed again the warning messages. I cleaned the cache and then it worked fine.

    Hope that helps,

    Cyril

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin WP-Gallery-Remote] Testing Connection Fails’ is closed to new replies.