Support » Plugin: Advanced Ads – Ad Manager & AdSense » Please account for HTTPS when including advertisement.js

  • We have to patch your plugin each time you make an update because we get an insecure content error. admin/assets/js/advertisement.js is always loaded over http instead of detecting whether the site is using https.

    In advanced-ads/classes/frontend_checks.php around line 558 we add a test for HTTPS so the script can be loaded securely if necessary. We would appreciate something like that added to future versions of the plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas M


    Hi Flipeleven,

    thanks for reaching out.

    I checked the code you are referring to and found that it does not explicitly use a protocol. Instead, it used the constant ADVADS_BASE_URL which is used in a lot of other places in the code. If there was a general problem with it then you would see a lot more warnings, especially in the admin panel.

    Since I cannot reproduce an issue on any of my sites that use HTTPS, I believe there might be some configuration gone wrong on your server.

    You could look through the code to see where else ADVADS_BASE_URL is used and then find these URLs in the generated HTML. A couple of images on the ad edit page or on the placement page in the backend use it, so you could check if they use HTTPS or HTTP. If that works and the ADVADS_BASE_URL only breaks in the mentioned position then I would suspect the issue with wrong HTTPS settings in your site’s frontend.


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.