• Resolved phitechconsulting

    (@phitechconsulting)


    There’s a PHP fatal error on the ‘edit page’ screen where I expect a dropdown to show me a list of pages the popup can be shown on. The scenario looks to me like a PHP compatibility issue. Has the plugin been tested on PHP7.4?

    I am working with:
    Nginx
    PHP7.4
    Wordpress 5.8.2
    WooCommerce 5.9.0
    Splash Popup for WooCommerce (BeRocket): 3.5.7.2

    Here’s a stack-trace:
    `2021-12-09T12:56:50+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home/…./public/wp-content/plugins/splash-popup-for-woocommerce/templates/pages.php:33
    Stack trace:
    #0 /home/…./public/wp-includes/template.php(772): require()
    #1 /home/…./public/wp-content/plugins/splash-popup-for-woocommerce/berocket/framework.php(935): load_template()
    #2 /home/…./public/wp-content/plugins/splash-popup-for-woocommerce/addons/deprecated_old_popup/popup.php(72): BeRocket_Framework->br_get_template_part()
    #3 /home/…./public/wp-admin/includes/template.php(1395): BeRocket_splash_popup_deprecated->meta_box_settings()
    #4 /home/…./public/wp-admin/edit-form-advanced.php(688): do_meta_boxes()
    #5 /home/…./public/wp-admin/post.php(206): require(‘…’)
    #6 {main}
    thrown in /home/…./public/wp-content/plugins/splash-popup-for-woocommerce/templates/pages.php op de lijn 33`

    Here’s a screenshot that should give you an idea of what I’m seeing:
    https://phitech.consulting/wooc_splash_popup_error.jpg

    Please let me know what else you need for further debugging.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter phitechconsulting

    (@phitechconsulting)

    Just tested it on an older copy of this website, on another server, but also on PHP7.4: On the copied webbsite it does work. Therefore it does not seem to be a PHP-compatibility issue, like I first thought.

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    It seems you have “Old popup” addon enabled in plugins settings, but it is deprecated and can cause some issue.

    Please disable it and setup popups in new way.

    Regards,
    Oleg

    Thread Starter phitechconsulting

    (@phitechconsulting)

    Hi Oleg, thanks, that solved it. I don’t know why I had ‘Old popup’ enabled, it was a fresh install. However, it works now. Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP fatal error, compatibility PHP7.4?’ is closed to new replies.