• Resolved somePaulo

    (@finomeno)


    Hi!
    First of all, thanks for the great plugin.

    I was investigating the reason why no social sharing plugins are able to display their buttons on a WP site I manage, and ran into an issue with AA.
    When I disabled the plugin, the site stopped rendering from the first (and only) instance of in-theme ad injection code, right below the ite header (through header.php in a twentysixteen child theme).
    When I commented out the html line inserting the ad, like so
    <!-- <?php the_ad_placement('under-header'); ?> -->
    there was no change.
    When I comented out the php itself, like so
    <?php // the_ad_placement('under-header'); ?>
    the site rendered only the main content, but not the sidebar, nor the footer.
    I re-enabled the plugin, disabled ads in the settings, and removed the sidebar widget. After disabling the plugin again, there was no change – only the main content renders.
    Removing the line of code from the child template altogether didn’t help either.
    Since it’s a production site, I re-enabled everything as it was, but you can still have a look at it, if it helps – https://translancer.net

    Any ideas why disabling the plugin would break the site?
    And where to look for the next breaking point that stops the sidebar and footer from rendering?

    https://www.ads-software.com/plugins/advanced-ads/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi finomeno,

    I am sorry that disabling Advanced Ads broke your site.

    Having the PHP function without using function_exists is the only reason I am currently aware of that can break the site on deactivation. Even using the widget should not cause an error.

    If possible, please try if disabling the plugin logs an error in the debug.log. Please see https://wpadvancedads.com/finding-errors-with-wp_debug/ for more information.

    Thanks
    Thomas

    Thread Starter somePaulo

    (@finomeno)

    Hi Thomas,

    Thank you for the suggestion.
    Unfortunately, debug.log was not created.
    Server logs show no error records either.
    Mystery…

    Which php function are you referring to?

    Will try to recreate the website on another server, if I have the time, to check things out.

    Plugin Author Thomas Maier

    (@webzunft)

    Hi finomeno,

    if you have a test site where I can see this and maybe run my own tests then I would really appreciate it. I can not reproduce anything on my own sites.

    On https://wpadvancedads.com/codex/theme-functions/ you see how I am suggesting to use function_exists in themes. This does not break even when the plugin is removed.

    Thanks
    Thomas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disabling plugin breaks site’ is closed to new replies.