Support » Fixing WordPress » Suddenly all my Adsense ads are missing!

  • Resolved kayten1

    (@kayten1)


    Hi, I hope someone can help me out.

    I have Adsense ads on my site (real-memory-improvement.com). My site has just been updated to WordPress 4.2.3 and suddenly every ad on my site is missing.

    In trying to sort it out I see that I have a plugin called Google Adsense Lite, and when I click on it this comes up:
    ———————————————————————

    Go Back to Non-AJAX Version
    Problems with the fancy AJAX interface?
    You can always go back to the non-AJAX version if you are not happy with this slick new admin page, or if the plugin doesn’t work as expected (ads not appearing on home/front page/posts, or any other kind of strange behavior). The AJAX version stores its options completely independent of the non-AJAX version. Your non-AJAX options are intact and untouched. Here are the steps to revert to the non-AJAX version:
    Deactivate and delete this plugin.

    Download the non-AJAX version of the plugin.
    Upload and activate the downloaded non-AJAX version.
    Find and click on the the Google AdSense Lite menu item under your Settings menu, and you should see the non-AJAX version.

    Please remember never to update the plugin if you are using the non-AJAX version, or it will get overwritten by the AJAX version. It’s easy to recover though – just follow the above instructions again.

    This plugin needs direct access to its files so that they can be loaded in an iFrame. Looks like you have some security setting denying the required access. If you have an .htaccess file in your wp-content or wp-content/pluginsfolder, please remove it or modify it to allow access to the php files in /home4/k10amz/public_html/www.real-memory-improvement.com/wp-content/plugins/google-adsense-lite/.
    If the plugin still cannot load the admin page after forcing it, please deactivate and delete it. It is not compatible with your blog setup.

    You can try forcing the admin page again, which will kill this message and try to load the admin page.

    If you still have errors on the admin page or if you get a blank admin page, you really have to consider one of non-AJAX the options listed above.
    ———————————————————————

    I don’t know anything about .htaccess and I don’t want to start trying to mess with files I don’t understand.

    Can anyone tell me what’s going on?

    Maybe I should just disable the plugin?

    And just for my information, what’s it for? I must have had a reason to install it but I can’t even remember doing it.

    If anyone can help me out, I appreciate it. Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)
  • In last update there was many security changes. One function that response for output code security is configured to remove all not allowed properties.

    As temporary fix you can try to edit file wp-includes/kses.php and in line 61 (or anywhere in this array) add

    'iframe' => array("src" => true),

    This will enable iframe src attribute support for whole wordpress

    Thread Starter kayten1

    (@kayten1)

    Thank you, mgwizdala, for responding.

    I tried your suggestion, but I’m not skilled in this department.

    I added the line:

    ‘iframe’ => array(“src” => true),

    exactly as it appeared in your message, to the end of the file you specified, saved it, then tried to see what effect it had.

    Whichever page I clicked on, I got a blank page with just this message:

    Parse error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) in /home4/k10amz/public_html/www.real-memory-improvement.com/wp-includes/kses.php on line 1737

    I went back, deleted the ‘double arrow’ and tried again. Same result.

    I deleted the line, saved the file, and now I’m back where I was before.

    Like I said, I don’t want to mess with these files, I don’t understand them. I know some HTML and CSS, but not php, javascript, or the other things needed to really get to grips with the workings of a WordPress site.

    I just want to have my ads show up as normal. Anyone any ideas how this can be achieved?

    Thanks.

    In file kses.php in line 60 you can see:

    $allowedposttags = array(
    		'address' => array(),

    You should change that to ie:

    $allowedposttags = array(
                    'iframe' => array("src" => true),
    		'address' => array(),

    Like i said in previous post it will enable iframes to have src attribute, what probably is required by adwords.

    Thread Starter kayten1

    (@kayten1)

    Hi again.

    I (very carefully and very timidly) added the middle line between the other two, saved the file, then tested it.

    No change.

    I’m going to delete that line since I don’t really know what I’m doing. I could damage my site messing with files I don’t understand.

    Okay, I deleted it. First page I checked, the sidebar was missing, I thought I’d caused chaos. Other pages, it’s okay. Don’t know what happened to that page.

    I’m not fiddling with this file again, or anything I don’t understand, it’s too dangerous.

    I have a client with Google ads in her sidebars on 2 sites, and since the update last night they are all messed up? I can’t be the only person with this issue. Any help is appreciated, thanks

    Thread Starter kayten1

    (@kayten1)

    Is there any way you can opt out of an upgrade or roll things back to the way they were? I don’t expect so, but if this is the result of upgrades you can keep ’em, they’re just another way for your site to get screwed up.

    If there’s ANYBODY who can help sort this problem out (Adsense ads missing completely), I’d be very grateful to hear from you, and I’m sure a lot of other people would be too.

    I am having exactly the same issue. Updated WordPress yesterday, have no ads at all. They appear in preview, but not when the page is live. This is incredibly frustrating and it’s clearly linked to the security update yesterday.

    I am using Salient theme from Themeforest. So far I have.

    Deactivated all plug ins, not worked,
    Deactivated the entire theme, not worked.
    Deleted the entire theme and reinstalled from Theme Forest, ads appeared, thought the problem was fixed.
    5 minutes later no ads again.

    My site is my business, my Adsense keeps a roof over my head. I do not know what else to try and would really appreciate some help here. I don’t use any Adnense plug ins, just raw code.

    Hi All, here’s the solution:

    1. Download WordPress 4.2.2 and upload to your server, overwriting the 4.2.3 folders/files
    2. Check Adsense units are working fine again
    3. Immediately install “Easy Update Manager” plugin or similar and disable minor WordPress updates (this step is vital otherwise your site will simply auto-update again).

    The issue I have here is that the update was a critical security update, and I’m concerned about leaving my site vulnerable.

    I just pasted the ad code in the footer widget to test it and all ads now appear on site. This makes absolutely no sense, but it works.

    Thread Starter kayten1

    (@kayten1)

    Okay, I’ve downloaded Wp 4.2.2, now, excuse me for being dumb in this area, but what exactly do I do next?

    In other words, how do I achieve this magical “overwriting the 4.2.3 folders/files” of which you speak?

    Sorry, I know this must be frustrating for you, dealing with someone who knows so little about these things …

    Thread Starter kayten1

    (@kayten1)

    I need a bit of help and advice.

    Due to the latest update all my ads disappeared. I asked for help on this forum and someone was kind enough to advise me (branj). I took his advice and rolled back to the previous version. The ads are showing up now, so that’s a result.

    Part of his advice was to install Easy Update Manager (plugin) and disable automatic updates. I want to do that but … there’s a problem. As soon as I log in I get this dialog:
    ……………………………………………………………….
    WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.
    The update process may take a little while, so please be patient.
    Update WordPress Database
    ……………………………………………………………….

    The last bit (“Update WordPress Database”) is in the form of a button, so it won’t do anything till I press it. But also I can’t do anything else … if I click on the back button to get out of the situation, I go right back to signing in. In other words, I can’t do anything on the site till I press the button.

    So press it, you’re probably saying. The only reason I don’t want to is that I don’t know what it will do. For all I know it will revert me to the update I’ve just rolled back from.

    What should I do? What will updating the database result in?

    Anyone know enough to help out? I’d appreciate it, a lot.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    kayten1, let’s continue over at https://wordpress.org/support/topic/rolled-back-from-the-update-not-sure-whether-to-update-the-database

    branj, please think twice before you advise that someone put their site in jeopardy by downgrading to a version that now has a publicly known security vulnerability. There are better ways to fix this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Suddenly all my Adsense ads are missing!’ is closed to new replies.