• Resolved randallxski

    (@randallxski)


    I recently installed this plugin to try out and added, then modified one event. Nothing has been customized. The display works okay, but I can no longer administer any plugins. Instead I get this error when I go to the plugins page or try to add a plugin:

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

    This error prevents me from reinstalling the plugin or removing it from the GUI.

    What’s the easiest way to either resolve the issue or remove the plugin?

    https://www.ads-software.com/plugins/all-in-one-event-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • comment out line 160.
    The solution has been given here a number of times.

    Thread Starter randallxski

    (@randallxski)

    Okay, thanks for repeating it for me, billrodgers2013. Have you seen any indication of what causes the issue and when it will be fixed?

    I didn’t see the answer browsing through the support pages, and I haven’t found any apparent way of searching this plugin’s support topics. Have I missed some search box specific to this support area?

    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 ) ] );

    We will fix this in the next version 2.0 which is coming out soon. So you should be fine with commenting these lines.

    Hope this helps.
    Take Care

    Thread Starter randallxski

    (@randallxski)

    Thanks, Jashan. The plugin is working fine without line 160.

    Hello randallxski,

    If the issue is resolved, please mark this topic as resolved.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘broken plugin breaks admin capabilities’ is closed to new replies.