• I’m not sure when this error started occurring, but I’m not able to access any of my installed plugins from the administration area due to the all in one events plugin errors that I’ve pasted below. The calendar shows up fine on the website even when you click on an event and there is not problem adding events or changing theme options for the calendar from the WP admin.

    Warning: array_search() expects parameter 2 to be array, object given in /home/[sitefolder]/public_html/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 /home/[sitefolder]/public_html/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160

    Could you please tell me how to fix this as it’s imperative that I can access the installed plugins administration area.

    https://ww.wp.xz.cn/plugins/all-in-one-event-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 160
    unset( $plugins->active[ array_search( $basename, $plugins->active ) ] );

    This should fix the issue.
    Thanks

    Thread Starter davislj

    (@davislj)

    Yes, that did fix the issue, but won’t it break again when an update comes out? Or is this an error that will be fixed in upcoming releases?

    Hello,

    You have redesigned the entire plugin, to help solve the performance and load time issues. It will be released soon (in March Itself).
    This line of code will be taken care of in the next release.

    Hope this helps.
    Take Care

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

The topic ‘Error only in the plugin administration area’ is closed to new replies.