• Resolved doffine

    (@doffine)


    Hello @sygnoossupport,

    first thank you for your great plugin. I just want to point your attention to a PHP notice at least being present in PHP 7.4 that I think you will want to fix. I found it with Duplicator Pro making a script file test while deploying a WordPress with your plugin installed.

    The E_NOTICE “Trying to access array offset on value of type null” comes up in your file popup-builder/com/classes/popups/SGPopup.php in lines 159 and 164.

    Here is one (line 159) of the two traces where the same happens…

    E_NOTICE Trying to access array offset on value of type null
    	FILE: /[SERVER-PATH]/wp-content/plugins/popup-builder/com/classes/popups/SGPopup.php[159]
    	--- TRACE ---
    	CLASS___: sgpb\SGPopup->getPopupAllEventsFILE: /[SERVER-PATH]/wp-content/plugins/popup-builder/com/classes/ScriptsLoader.php[93]
    	CLASS___: sgpb\ScriptsLoader->loadToFooterFILE: /[SERVER-PATH]/wp-content/plugins/popup-builder/com/classes/Actions.php[534]
    	CLASS___: sgpb\Actions->popupShortcode  FILE: /[SERVER-PATH]/wp-includes/shortcodes.php[343]
    	FUNCTION: do_shortcode_tag              FILE: [-1]
    	FUNCTION: preg_replace_callback         FILE: /[SERVER-PATH]/wp-includes/shortcodes.php[218]
    	FUNCTION: do_shortcode                  FILE: /[SERVER-PATH]/wp-includes/class-wp-hook.php[289]
    	CLASS___: WP_Hook->apply_filters        FILE: /[SERVER-PATH]/wp-includes/plugin.php[206]
    	FUNCTION: apply_filters                 FILE: /[SERVER-PATH]/wp-includes/widgets/class-wp-widget-custom-html.php[147]
    	CLASS___: WP_Widget_Custom_HTML->widget FILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/inc/renderer.php[550]
    	CLASS___: SiteOrigin_Panels_Renderer->the_widgetFILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/inc/renderer.php[862]
    	CLASS___: SiteOrigin_Panels_Renderer->render_widgetFILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/inc/renderer.php[830]
    	CLASS___: SiteOrigin_Panels_Renderer->render_cellFILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/inc/renderer.php[756]
    	CLASS___: SiteOrigin_Panels_Renderer->render_rowFILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/inc/renderer.php[336]
    	CLASS___: SiteOrigin_Panels_Renderer->renderFILE: /[SERVER-PATH]/wp-content/plugins/siteorigin-panels/siteorigin-panels.php[337]
    	CLASS___: SiteOrigin_Panels->generate_post_contentFILE: /[SERVER-PATH]/wp-includes/class-wp-hook.php[287]
    	CLASS___: WP_Hook->apply_filters        FILE: /[SERVER-PATH]/wp-includes/plugin.php[206]
    	FUNCTION: apply_filters                 FILE: /[SERVER-PATH]/wp-includes/post-template.php[253]
    	FUNCTION: the_content                   FILE: /[SERVER-PATH]/wp-content/themes/virtue_premium/templates/content-page.php[12]
    	FUNCTION: require                       FILE: /[SERVER-PATH]/wp-includes/template.php[732]
    	FUNCTION: load_template                 FILE: /[SERVER-PATH]/wp-includes/template.php[676]
    	FUNCTION: locate_template               FILE: /[SERVER-PATH]/wp-includes/general-template.php[204]
    	FUNCTION: get_template_part             FILE: /[SERVER-PATH]/wp-content/themes/virtue_premium/front-page.php[238]
    	FUNCTION: include                       FILE: /[SERVER-PATH]/wp-content/themes/virtue_premium/base.php[17]
    	FUNCTION: include                       FILE: /[SERVER-PATH]/wp-includes/template-loader.php[106]
    	FUNCTION: require_once                  FILE: /[SERVER-PATH]/wp-blog-header.php[19]
    	FUNCTION: require                       FILE: /[SERVER-PATH]/index.php[17]
    	FUNCTION: require_once                  FILE: /[SERVER-PATH]/wp-content/wp_test_script_83eb91d-04183501.php[98]

    Many greetings,
    -doffine

Viewing 1 replies (of 1 total)
  • Dear @doffine ,

    Thanks for getting in touch en reporting the issue.
    We are very thankful for that and we will make sure to include the fix in our upcoming update.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP notice in SGPopup.php’ is closed to new replies.