• I updated Contact Form plug-in, and after that my WordPress Admin panel Plug-in Page was no longer accessible, and I received the following error message

    Warning: array_search() [function.array-search]: Wrong datatype for second argument in /home/njgsbpnj/public_html/wp/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/njgsbpnj/public_html/wp/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160

    My provider deactivated Contact Form, but the problem persisted. After deactivating All-in-one-Event Calender, I can now access the page again.
    I posted this in a Contact Form forum, but go no response
    Afina

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

Viewing 2 replies - 1 through 2 (of 2 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 afinab

    (@afinab)

    Thanks for answering.
    My provider re-installed the calendar, and everything is working again, except the contact form is still disabled. I’ll check for the presence of that line, and see if I can reactivate Contact Form then
    Afina

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update to Contact Form gave Ai1EC error’ is closed to new replies.