• Resolved bastianonm

    (@bastianonm)


    Hello, I have a multisite with you plugin installed. It is running on php 7.4.
    When A mobile enter the website there is a very annoing debug messages on the top of the website:
    cookielawinfo-checkbox-necessary cookielawinfo-checkbox-functional cookielawinfo-checkbox-performance cookielawinfo-checkbox-analytics cookielawinfo-checkbox-advertisement cookielawinfo-checkbox-others

    How can I disable this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @bastianonm,

    Greetings from Webtoffee!

    We couldn’t see such an error on the front end. Could you please send us a screenshot from the error page so that we can better understand the issue?

    Thread Starter bastianonm

    (@bastianonm)

    Here the screenshot, you can see on the top and on the bottom of the image some text that is not coming from the page itself

    https://securcube.net/wp-content/uploads/screencapture-securcube-net-2022-07-05-08_09_09.png

    Plugin Author WebToffee

    (@webtoffee)

    Hi @bastianonm,

    This error is not seen in mobile devices as we checked. We tested in an Apple device and Android device but couldn’t replicate it. We are sharing the screenshot for your reference. Please see the Site header and site footer.

    We request you to check your browser cache. Please clear it and check again. If the issue is still there, turn off any ad blockers that may be present on your browser. Ad blockers can block our plugin scripts and it may cause this error

    Thread Starter bastianonm

    (@bastianonm)

    Please click “accept all” on the cookies bar and check again..

    Thread Starter bastianonm

    (@bastianonm)

    ok I disabled some code and the issue disappeared.

    The content of $data[‘head_scripts’] was:

    cookielawinfo-checkbox-necessary
    cookielawinfo-checkbox-functional
    cookielawinfo-checkbox-performance
    cookielawinfo-checkbox-analytics
    cookielawinfo-checkbox-advertisement
    cookielawinfo-checkbox-others

    and it was written in the head node.

    public function wt_cli_print_scripts( $head = false ) {
    
    	$the_options               = Cookie_Law_Info::get_settings();
    	$advanced_script_rendering = Cookie_Law_Info::wt_cli_is_js_blocking_active();
    
    	if ( $the_options['is_on'] == true && ! is_admin() ) {
    		$cookie_categories = apply_filters( 'wt_cli_cookie_categories', array() );
    
    		if ( ! empty( $cookie_categories ) ) {
    			foreach ( $cookie_categories as $slug => $data ) {
    				if ( isset( $data['status'] ) && $data['status'] === true ) {
    					if ( $head === false ) {
    						$scripts = $data['body_scripts'];
    					} else {
    						//$scripts = $data['head_scripts'];
    					}
    					if ( ! empty( $scripts ) ) {
    						$this->process_scripts( $scripts, $slug, $advanced_script_rendering, $head );
    					}
    				}
    			}
    		}
    	}
    }
    • This reply was modified 2 years, 5 months ago by bastianonm.
    • This reply was modified 2 years, 5 months ago by bastianonm.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘debug messages on the top of the website’ is closed to new replies.