• Resolved pushmind

    (@pushmind)


    Hi,
    I made the update for this plugin and all by Back Office is blocked with this message:

    Warning: DateTime::diff() expects parameter 1 to be DateTimeInterface, bool given in /homepages/18/d239262307/htdocs/wp-content/plugins/master-addons/inc/admin/promotions.php on line 398

    Fatal error: Uncaught Error: Call to a member function format() on bool in /homepages/18/d239262307/htdocs/wp-content/plugins/master-addons/inc/admin/promotions.php:326 Stack trace: #0 /homepages/18/d239262307/htdocs/wp-content/plugins/master-addons/inc/admin/promotions.php(399): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_get_total_interval(false, 'days') #1 /homepages/18/d239262307/htdocs/wp-content/plugins/master-addons/inc/admin/promotions.php(406): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_days_differences() #2 /homepages/18/d239262307/htdocs/wp-includes/class-wp-hook.php(307): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_review_notice_generator('') #3 /homepages/18/d239262307/htdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #4 /homepages/18/d239262307/htdocs/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #5 /homepages/18/d239262307/htdocs/wp-admin/admin-header.php(303): do_action('admin_notices') #6 /homepages/18/d239262307/ in /homepages/18/d239262307/htdocs/wp-content/plugins/master-addons/inc/admin/promotions.php on line 326

    When I deactivate this module, all work well.
    Can you help me?

    • This topic was modified 4 years, 3 months ago by pushmind.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Liton Arefin

    (@litonice13)

    Hello @pushmind,
    Please re-activate “Master Addons for Elementor” plugin and try again. Hope, it should be fine.
    Please let me know update.

    Thanks

    Hello,
    Same issue with Version 1.8.7
    Using on a multi-site setup

    [21-Mar-2022 05:05:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/dashboard-settings.php on line 108
    [21-Mar-2022 05:05:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/dashboard-settings.php on line 131
    [21-Mar-2022 05:05:41 UTC] PHP Warning:  DateTime::diff() expects parameter 1 to be DateTimeInterface, bool given in /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/promotions.php on line 398
    [21-Mar-2022 05:05:41 UTC] <strong>PHP Fatal error:  Uncaught Error: Call to a member function format() on bool in /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/promotions.php:326</strong><strong>
    Stack trace:
    #0 /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/promotions.php(400): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_get_total_interval()
    #1 /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/promotions.php(407): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_days_differences()
    #2 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(307): MasterAddons\Admin\Promotions\Master_Addons_Promotions->jltma_review_notice_generator()
    #3 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /opt/bitnami/wordpress/wp-includes/plugin.php(474): WP_Hook->do_action()
    #5 /opt/bitnami/wordpress/wp-admin/admin-header.php(303): do_action()
    #6 /opt/bitnami/wordpress/wp-admin/themes.php(245): require_once('/opt/bitnami/wo...')
    #7 {main}
      thrown in /bitnami/wordpress/wp-content/plugins/master-addons/inc/admin/promotions.php on line 326
    Thread Starter pushmind

    (@pushmind)

    Hello,
    Since I update to v. 1.8.7 it’s ok for me…
    But, if you want to retrieve your BO before a new update you can uncomment the line 394 in promotion.php:
    $install_date = strtotime('2021-09-3 14:39:05'); // Testing datetime

    Thanks for the quick response. That worked.
    What does BO stand for?

    Thread Starter pushmind

    (@pushmind)

    BO = Back Office : WordPress admin 😉

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

The topic ‘Update block the Back Office’ is closed to new replies.