WordPress.org

Ready to get started?Download WordPress

Forums

Ad Injection
conflict between ad injection and supercache (17 posts)

  1. widecast
    Member
    Posted 11 months ago #

    Hello there,

    I can't think of anything I changed on my end but I noticed that the post content was not being loaded anymore when I had both the Ad Injection plugin and the Supercache plugin both enabled.

    If I disabled one of the other, the content was working again.

    I'm using the latest versions of each plugin.

    Any idea why this may be happening?

    Here is the debug information:

    <!--Ad Injection mfunc mode ad include code-->
    
    <!--
    ADINJ DEBUG
    Ad Injection in-content injections complete!
    No random ad defined in any of the ad code boxes
    Content length=1396 (words) Raw character length=12536 Paragraph count=8
    Top ad paragraph: 0
    Bottom ad paragraph: 8
    1st Injected random ads range starts at: 4, and ends at: 8
    2nd Injected random ads range starts at: 4, and ends at: 7
    potential_random_ad_paragraphs:4
    requested_num_rand_ads_to_insert:2
    Injected ads at: 4 5
    $adinj_total_top_ads_used=1
    $adinj_total_random_ads_used=2
    $adinj_total_bottom_ads_used=1
    random ads start=middleparaforward - paragraph - 1
    random ads end=anywhere - paragraph - 20 fromstart
    posttype=post ( single)
    currentdate=1366911696 (15820.7372222)
    postdate=1361536250 (15758.521412)
    injection mode=mfunc
    -->

    Dave

    http://wordpress.org/extend/plugins/ad-injection/

  2. ree7
    Member
    Posted 11 months ago #

    this happened to me too. After updating one of the plugins (can't remember which, supercache or ad injection) about 12 hours ago.
    Didn't even notice that the body posts are missing at first,
    because I set cache to disable if logged in.

  3. widecast
    Member
    Posted 11 months ago #

    OK, interesting. So it sounds like an issue other people may run into as they update these plugins.

    For now I've had to keep supercache disabled.

  4. StephenMax
    Member
    Posted 11 months ago #

    Yes me too. Disabled the cache.

  5. StephenMax
    Member
    Posted 11 months ago #

    The Supercache author has commented on the conflict and wanted the link to his site mentioned here. http://ocaoimh.ie/y/5a

  6. widecast
    Member
    Posted 11 months ago #

    To the plugin author: according to the supercache author, mfunc is considered obsolete and isn't supported anymore.

    Do you have plans to update Ad Injection to find another way around cached websites?

  7. polins
    Member
    Posted 11 months ago #

    Found exactly the same conflict with the new version of WP Super Cache (V 1.3.2). Terrible shame, since Ad Injection is such a great plugin.

  8. Michael Madison
    Member
    Posted 11 months ago #

    Same issue.

    After extensive testing, I can confirm that (unless there's a workaround that I haven't found), Ad Injection and WP Super Cache 1.3.2 don't work in harmony on my site.

    One of the plug-ins needs to be deactivated in order to see post bodies. Can anyone suggest a fix, even a temporary one?

  9. jimlynch
    Member
    Posted 11 months ago #

    I got it to work like this:

    On the Advanced tab in WP Supercache:

    1. Switch to PHP to serve cache files.

    2. Click Update Status.

    3. Switch back to mod-rewrite.

    4. Click Enable Dynamic Caching.

    5. Click Update Status.

    6. Go to Contents tab.

    7. Click the Delete Expired Button and the Delete Cache button.

    This is all happening because the WP Super Cache update turned off dynamic caching, and Ad Injection won't work.

  10. Michael Madison
    Member
    Posted 11 months ago #

    @jimlynch. Good step-by-step. I'll try it. In the meantime, I've temporarily installed W3 Total Cache. But that might create other issues.

  11. jimlynch
    Member
    Posted 11 months ago #

    Oh goodness, get rid of W3 Total Cache. I hate that extension, it screwed up my databases and left a mess behind. HostGator took care of it for me, but I would never use it again.

  12. polins
    Member
    Posted 11 months ago #

    Searching for an alternative to the Ad Injection plugin, I found "Ads by datafeedr.com" which offers a Javascript option for creating dynamic content. It is user-friendly for the non-expert.

  13. ree7
    Member
    Posted 11 months ago #

    @jimlynch that one works for me! thanks!

  14. jimlynch
    Member
    Posted 11 months ago #

    You are very welcome, ree. Glad to hear it worked for you.

  15. zepolo
    Member
    Posted 11 months ago #

    @jimlynch, thanks!
    You saved my life Lol

  16. sympmarc
    Member
    Posted 7 months ago #

    I was hopeful that @jimlynch's trick would work for me, but sadly, no. With WP Super Cache 1.3.2 and Ad Injector enabled, my posts are mangled. The symptom is that sections of the posts are removed or posts are merged.

    M.

  17. zepolo
    Member
    Posted 5 months ago #

    Becareful !
    New update with supercache: 1.4

    "Replace legacy mfunc/mnclude/dynamic-cached-content functionality with a "wpsc_cachedata" cacheaction filter".

    Now we can't use this and resolve bug. Supercache can't work with ad injection

Reply

You must log in to post.

About this Plugin

About this Topic