• sdk

    (@sdk)


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

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

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

    This should fix the issue.
    Thanks

    Thread Starter sdk

    (@sdk)

    thx, i commented that line out and now the errors are gone, but it seems that AIOEC is really slowing down my site – when i deactivate the plugin everything is fine, as soon as i reactivate it’s sluggish again with the occasional Internal Server Error… any thoughts?

    Jashan

    (@jashan)

    Hello,

    Please set ai1ec_debug to false on wp-content -> plugins ->All in one calendar -> constant.php

    Our next version will fix the issues regarding heavy load times.

    Take CAre

    Thread Starter sdk

    (@sdk)

    got it, thx for the quick reply. i really love AIOEC, it’s the best out of them all.

    TheViv

    (@octotoot)

    how do you set ai1ec_debug to false on wp-content -> plugins ->All in one calendar -> constant.php?

    Please walk me through these steps.

    Thanks.

    Jashan

    (@jashan)

    Hello,

    To resolve load time issues with 1.10.11, please FTP your site.
    Go to WP-content -> plugins -> all in one calendar -> constant.php and change

    define( ‘AI1EC_DEBUG’, true );
    to
    define( ‘AI1EC_DEBUG’, false );

    Take care

    friedVol

    (@friedvol)

    Thank you, Jashan! Thank you GR8FL for asking for the step-by-step!

    I also was getting sdk’s Warning and Fatal error messages. I had tried commenting out Line 160 per another thread’s solution to these messages, but that made matters worse. I was doubtful that deleting Line 160 would accomplish anything.

    What does worse mean? After commenting out Line 160, the page loading time increased from 1 minute 25 seconds to 4 minutes 10 seconds. No matter what I clicked on in the dashboard, I got Apache server crash messages instead of Warning and Fatal Error messages.

    Before commenting out Line 160, my site’s pages, including the Calendar page, hadn’t been affected by the Warning and Fatal Error messages. After commenting out, all site pages gave a version of 404 Page Not Found.

    I was ready to throw my laptop out the window and and have nothing to do with time.ly ever again.

    Problem was, I really liked the calendar features.

    I was leery of deleting Line 160, but figured if I could speed up the page loading time, I’d be less frustrated. I’d try the “using FTP, rename the all-in-one-calendar folder (or maybe the php file, I forget which) and then go to the dashboard and click on this plugin to reset it” suggestion mentioned in another thread on fixing these Warnings and Fatal Error messages.

    So I followed Jashan’s steps. The ‘AI1EC_DEBUG’ line is almost at the bottom of the constants.php file. I set it to false.

    The Apache crashing and Warnings and Fatal Error messages stopped instantly! My site pages returned! My page loadings dropped to 5 seconds!

    All is good with the world!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Errors when viewing plugins page’ is closed to new replies.