Support » Plugin: Timely All-in-One Events Calendar » error: array_search() expects parameter 2 to be array

  • Resolved Frederik

    (@hallpick)


    Hi all

    When I want to install a new plugin on /wp-admin/update.php?action=install-plugin&plugin=facebook-auto-publish&_wpnonce=c0e2b1a590

    I get this error:
    Warning: array_search() expects parameter 2 to be array, object given in /customers/7/1/e/openantwerpen.be/httpd.www/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160 Fatal error: Cannot use object of type stdClass as array in /customers/7/1/e/openantwerpen.be/httpd.www/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160

    What to do?

    Thank you
    Fred

    https://wordpress.org/plugins/all-in-one-event-calendar/

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

    (@jashan)

    Hello,

    To fix this, please FTP your site, and go to Wp-content -> plugins -> All in one calendar -> all-in-one-calendar.php and delete the following code at line 128
    unset( $plugins->active[ array_search( $basename, $plugins->active ) ] );

    This should fix the issue.
    Thanks

    Thread Starter Frederik

    (@hallpick)

    thank you very much, Jashan, this removed the error. Caveat for other users: The code was not on line 128.

    Great …..its working
    GOD BLESS YOU MAN

    Note: Code is line 128 in 1.11.x-pro, and line 160 in 1.10.x-standard

    Thank you! This solved my problem as well!! **tips hat!**

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error: array_search() expects parameter 2 to be array’ is closed to new replies.