• Resolved coolph

    (@coolph)


    Excellent plugin. I’m using it since past 2 years or so but I’m seeing some issue now. Even with one blocked user, it doesn’t display advertisement to any user. I think this happened after recent upgrade my server to use newer versions of Apache & PHP. Could you please check the compatibility. Thanks.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author iSaumya

    (@isaumya)

    Please share your site url where at least one user is blocked. What you are saying is not supposed to happen even if you upgraded your system. Are you using any caching system, if so try disabling the cache system and check.

    Thread Starter coolph

    (@coolph)

    I have removed all the shortcodes for now since advertisements were not being displayed. I was blocking the user for 24 hours on single ad-click.

    I did monitor the impressions of different codes in my adsense account. The one which was using your shortcode were not reflecting in my account. Everything started working when I cleared the blocked users and again the issue started happening on the first ad click.

    I don’t use any cache plugin, neither did I made any other changes recently.

    Plugin Author iSaumya

    (@isaumya)

    Hi,
    without the site URL and more inside data, it’s hard to see what’s happening as it’s not happening to anyone else.

    Thread Starter coolph

    (@coolph)

    Okay. I have reactivated your plugin and added shortcode to one specific page.

    https://www.techiedelight.com/list-of-problems/ (Below Subscribe to post button, two 250x300px ads are displayed.. second one uses your shortcode with data-ad-slot=”6371855059″)

    Initially, this ad didn’t get loaded to me since plugin has a blocked user with IP 162.144.26.58, but on clearing the IP, the ad loaded fine.

    Hope this helps.

    Plugin Author iSaumya

    (@isaumya)

    Can you show me how you have implemented the code and if there is any caching system enabled in your system?

    Thread Starter coolph

    (@coolph)

    Hi, I have added shortcodes like this in functions.php file –

    add_shortcode( 'M1', function() {
    	if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors
    		$adCode = '<div class="aicp"><!-- Don\'t forget to add this div with aicp class -->
    		<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    		<!-- M1 -->
    		<ins class="adsbygoogle"
    			 style="display:inline-block;width:300px;height:250px"
    			 data-ad-client="ca-pub-XXXX"
    			 data-ad-slot="6371855059"></ins>
    		<script>
    		(adsbygoogle = window.adsbygoogle || []).push({});
    		</script>
    		</div><!-- end of the aicp div -->';
    		return $adCode;
    	}
    } );

    Also not sure how is this possible, but it’s logging same IP every time. I’m seeing the click from IP 162.144.26.58 (the same one as I mentioned before) at 2019-04-14 11:58:29.

    There is no caching apart from cloudfare caching of website’s static content (JS, CSS, etc)

    • This reply was modified 5 years, 7 months ago by coolph.
    • This reply was modified 5 years, 7 months ago by coolph.
    Plugin Author iSaumya

    (@isaumya)

    Can you please disable cloudflare caching? Better to pause cloudflare and they retry. By pausing your DNS will still be served by cloudflare.
    Let me know what happens after that.

    Thread Starter coolph

    (@coolph)

    I will disable the cloudflare cache for sometime. Let me know when you will be online.

    Plugin Author iSaumya

    (@isaumya)

    Ok try that and let me know.

    Thread Starter coolph

    (@coolph)

    Done. Please try and let me know.
    I have also cleared that blocked IP.

    Plugin Author iSaumya

    (@isaumya)

    This is super weird. You cleared the blocked Ip but still, it’s showing 1 ads. Some sorts of caching at play here.

    Plugin Author iSaumya

    (@isaumya)

    This is what I see: https://i.imgur.com/Yn0tggO.png
    Which is basically <!-- end of the aicp div --> part of the ad code. The very end part. But before that nothing is coming. But the adCode is returning properly it just don’t have the full stuff in it.

    Thread Starter coolph

    (@coolph)

    Not sure, the second ad is loading fine for me. Try reloading the page. Sometimes it doesn’t comes on first go.

    Plugin Author iSaumya

    (@isaumya)

    OK. Can you check now?

    Thread Starter coolph

    (@coolph)

    Not coming now. Seeing an entry from 162.144.26.58 at 2019-04-14 20:27:15

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Not working anymore’ is closed to new replies.