• Hello,

    are there any known issues with Popups plugin and PHP 7.1? I get this error message on front-end: “Warning: Cannot assign an empty string to a string offset in ***/wp-includes/class.wp-scripts.php on line 447”

    I recently updated to WordPress 4.7 and PHP 7.1. To find the reason I deactivated all plugins. While re-activating them one by one I found out that the failure only happens if Popups is activated even if the error refers to a WordPress core file.

    Thank you in advance.

    • This topic was modified 7 years, 11 months ago by mathiaspriebe.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian

    (@timersys)

    I can’t tell because I tried up to 7.0.1. But if you get the backtrace of that warning it should tell where there error is coming from..

    I have the same issue on my local machine running PHP 7.1.1 and WP 4.7.2. Here is the stack trace:
    WP_Scripts->localize()
    wp-includes/functions.wp-scripts.php:192
    wp_localize_script()
    wp-content/plugins/popups/public/class-social-popup.php:482
    SocialPopup->enqueue_social_shortcodes()
    wp-content/plugins/popups/public/class-social-popup.php:439
    SocialPopup->enqueue_scripts()
    wp-includes/class-wp-hook.php:298
    do_action(‘wp_enqueue_scripts’)
    wp-includes/script-loader.php:1221
    wp_enqueue_scripts()
    wp-includes/class-wp-hook.php:298
    do_action(‘wp_head’)
    wp-includes/general-template.php:2574
    wp_head()
    wp-content/themes/lazycatstore/header.php:17
    load_template(‘~/wp-content/themes/lazycatstore/header.php’)
    wp-includes/template.php:643
    locate_template()
    wp-includes/general-template.php:45
    get_header()
    wp-content/themes/lazycatstore/home.php:15

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP issue’ is closed to new replies.