• My website was updated to 4.2.3 last night and all of the sudden, my 728×90 Google Adsense ad is completely missing. I had a box area with my Google Ad and an image for my “Text Alerts”. The Text alerts graphic is still there, but pushed up BIG time (it’s supposed to be a lot lower), and the Google Image is not there at all. The Google Adsense banner is supposed to below my logo and that area is supposed to be lower. Here’s an image for you to see what I am talking about: https://i.imgur.com/IsNPH8g.png

    How can I fix this? Thank you!

Viewing 15 replies - 1 through 15 (of 33 total)
  • Having the same issues…amongst other issues with my theme. Really loving the new automated updated…very helpful to wake up to this stuff.

    Thread Starter JJPrince89

    (@jjprince89)

    Thanks for the reply. I agree, I kinda wish I didn’t have the auto update. I usually don’t have a problem but this time I did. I am trying to find a solution to this, and my designer is out of town right now.. bad timing. I don’t know what to do to fix it. If anyone knows, I would very much appreciate a reply. Thank you!

    This is probably due to updates in 4.2.3 to wp-includes/shortcodes.php which change the way shortcodes are processed. You can either revert to your backup or, as a temporary workaround, replace that file with the version from 4.2.2

    To turn off automatic core updates, add this line to wp-config.php:

    define( ‘WP_AUTO_UPDATE_CORE’, false );

    If you do that, after testing in your development environment that updates work with your suite of plugins and theme, be certain to keep on top of updates in your production environment.

    Reverting just the shotcodes.php file doesn’t make it work. I’m reverting to a backup, disabling automatic updates e waiting until some other idea emerge.

    I just noticed I’m having the same problem with google adsense ads that were placed within the blog post. The sidebar ads are fine, I’m just missing all adds within the post. I also noticed that the ads do show up on my I-phone and I-pad, but they are vertical instead of horizontal and they overlay the text.

    Thread Starter JJPrince89

    (@jjprince89)

    I haven’t found a fix yet either. My side bar ads are just fine, just the header ad is still not showing up. So frustrating! I hope to find a fix soon

    In my case, some of may pages are not showing ads in the sidebar. In some pages, it works. Same behavior: there is a space for it, but no ad. I’m using a text widget.
    Ads in content and blog posts are showing. Everything worked before update.

    Thread Starter JJPrince89

    (@jjprince89)

    UPDATE: I fixed my issue. All I did was reinsert my Adsense code and it appears to be working just fine. I didn’t change the code at all, I just deleted it and readded it and it’s fine. Woo!

    I had adsense code in too many pages to change all the code, what I did was removing the added tags in the database:

    Remove the first part:
    UPDATE wp_posts SET post_content = REPLACE( post_content, ‘// <![CDATA[‘, ” )

    Remove the second part:
    UPDATE wp_posts SET post_content = REPLACE( post_content, ‘// ]]>’, ” )

    Thanks for the suggestion djurre, I removed the ‘// <![CDATA[‘ and ‘// ]]>’ code within just one blog post and that worked for that post. When I put your code suggestion in the style.css file the whole page layout changed – since it changed the ads that I have on the on the sidebars which use that same CDATA code. Is there any place to put this code where it will just effect the ads within the blog post?
    Thanks

    AboutOrlando,
    You don’t need to put this in your style.css, but you need to run this in your database (ie phpmyadmin)

    thanks, I’ll give that a try

    “I had adsense code in too many pages to change all the code, what I did was removing the added tags in the database”

    I’m sitting here deleting the adsense code and then reinserting it, but I have a lot of pages.

    Can you tell me exactly where “in the database” is as I don’t have much experience in changing code?

    Thank you

    I tried removing the code djurre said. I didn’t work for me.

    Still the ads show as a blank space within the content of my post. They work fine for the header though.

    Just re-inserting the code didn’t work either.

    One funny thing I notice now is that, when you insert the code again and click to preview the changes, the ads come up as they should. But when you click to update the post they don’t show anymore.

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Missing Google Adsense Ad with 4.2.3’ is closed to new replies.