• Resolved Endre Solem

    (@endres)


    Hello.

    I just downloaded your plugin and activated it on my site. Now I get an error message and can’t even deactivate it ??
    The error message is:
    Fatal error: Call to undefined function deactivate_plugins() in [some-path]/wp-content/plugins/awebooking/awebooking.php on line 48

    I tried the plugin yesterday on my WP-multisite install and got the same error. I did, however, blame multisite for that. Today it’s worse as I don’t know how to deactivate it without FTP access, but that part I will figure out.

    Any suggestions to the undefined function?
    I’m using latest WP, Beaver Builder, Beaver Builder Theme and CloudFlare for ssl.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Endre Solem

    (@endres)

    I managed to update the plugin via FTP and find the reason.
    I have an old version of PHP installed on my host. This triggers the deactivate plugin functionality in your plugin, but the function is not loaded.
    After a little googleling I found this line that I added to the start of the plugin:
    require_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );

    That solved the problem and whenever I try to activate the plugin I get the correct error message.
    Now I just have to figure out how to update my PHP version ??

    Thread Starter Endre Solem

    (@endres)

    update: changed php version to 7.0 and the plugin did activate.
    The wizard did however crash.
    got this error message, but I will continue to configure the plugin manually, so this is just for you if you want to debug:

    Fatal error: Uncaught Error: Call to undefined method AweBooking\Currency\Currency_Manager::get_positions() in **somepath**/wp-content/plugins/awebooking/inc/Admin/Admin_Setup_Wizard.php:301 Stack trace:
    #0 [internal function]: AweBooking\Admin\Admin_Setup_Wizard->setup_locale(Object(AweBooking\Admin\Admin_Setup_Wizard))
    #1 **somepath**/wp-content/plugins/awebooking/inc/Admin/Admin_Setup_Wizard.php(199): call_user_func(Array, Object(AweBooking\Admin\Admin_Setup_Wizard))
    #2 **somepath**/wp-content/plugins/awebooking/inc/Admin/Admin_Setup_Wizard.php(77): AweBooking\Admin\Admin_Setup_Wizard->setup_wizard_content()
    #3 **somepath**/wp-includes/class-wp-hook.php(298): AweBooking\Admin\Admin_Setup_Wizard->setup_wizard(”)
    #4 **somepath**/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #5 **somepath**/wp-includes/plugin.php(453): WP_Hook->do in **somepath**a/wp-content/plugins/awebooking/inc/Admin/Admin_Setup_Wizard.php on line 301

    enjoy ??

    Plugin Contributor anhskohbo

    (@anhskohbo)

    Hi endres, a new version will come in next few hours will be solved that problem. Thanks for reports.

    Plugin Contributor anhskohbo

    (@anhskohbo)

    Beta 5 was released, pls upgrade in your site. Let me know if you have any issues. We will improve stability of AweBooking ASAP to official release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error after activation’ is closed to new replies.