• Resolved Daniel Susanu

    (@gladiaron)


    Hi Guys I’ve just installed your plugin on a new site and it is not showing because of the below error. Have you come across it? Could you please let me know what might be wrong?

    complianz.min.js?ver=6.1.5:1 Uncaught TypeError: Cannot read properties of null (reading ‘classList’)
    at HTMLLinkElement.link.onload (complianz.min.js?ver=6.1.5:1:20434)

    Kind Regards,
    Daniel

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @gladiaron,

    Can you share your domain so we can take a look?

    Thread Starter Daniel Susanu

    (@gladiaron)

    Hi @rogierlankhorst thanks for the quick reply.
    The domain is https://theimarket.gr/ .
    My understanding is that cmplz-cookiebanner-container is not inserted into the page.

    Kind Regards,

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @gladiaron,

    It looks like the CSS file for the banner isn’t able to load due to a “403 Forbidden” error, which is likely due to insufficient folder permissions for the /uploads/ directory (or possibly, a security plugin/server setting that prevents this).

    Could you set the folder permissions of the /uploads/ directory to 755 by following the steps in this article? https://complianz.io/folder-permissions/

    Kind regards,
    Jarno

    Thread Starter Daniel Susanu

    (@gladiaron)

    Hi @jarnovos, I’ve had a look at the folder permission and is definetly set to 755. When viewing the network tab I can’t see a downloaded file with 403 status. Could you please let me know how you found that out?

    I can see that cookieblocker.min.css, banner-1-optin.css and complianz.min.js are loaded, but the actual html elements for the cookie are not in the page.

    Let me know what you think.

    Kind Regards,
    Daniel

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @gladiaron,

    You’re correct, the CSS files are reachable and are being loaded. I think I got this mixed up with a different thread (similar issue).

    Just to check, I assume you had already tried clearing cache in your caching plugin & CloudFlare?

    To further narrow down the potential causes, could you try ruling out a plugin/theme conflict?

    You could do this by activating the Site Health & Troubleshooting plugin, navigating to Plugins > Installed Plugins and clicking “Troubleshoot” under Complianz, to display a version of the site with only Complianz activated. If the banner appears when doing so, you’ll know that it is related to another active plugin.

    If you additionally switch to a default theme (such as Twenty-Twenty One) temporarily, we can also rule out whether the theme might be related.

    Kind regards,
    Jarno

    Thread Starter Daniel Susanu

    (@gladiaron)

    Hi @jarnovos, I’ve managed to fix the issue.
    There was a conflict with the plugin Head & Footer Code. Once I’ve disabled it the cookie banner was showing fine.

    Note: The cookie banner is missing a background overlay when you position it in the center of the screen. What is the best way of adding the background overlay?

    Kind Regards,
    Daniel

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

The topic ‘Banner not showing’ is closed to new replies.