Missing argument 6 for _adsense_process_tags(), called in . . . /adsense_injector.module on line 173 and defined in _adsense_process_tags() (line 232 of . . . /adsense.module).

These PHP warnings did not occur prior to the upgrade to 7.x-1.10

The site is running PHP 5.6.30

It appears this issue has resulted in Google SUSPENDING OUR ACCOUNT due to invalid click activity for allegedly 30 days while we fix the issue

Google crawls the page regularly and states that the code must not be modified in any way

https://support.google.com/adsense/answer/181958?hl=en&topic=1343579&par...

The problem is it appears this error makes then the googlebot believe it sees modified code

The code is running through Multisite on eight sites - all working well; however . . . .

It generates PHP errors which apparently appear as "clicks" on all the ads served

This was addressed as an issue in 2012 in https://www.drupal.org/node/1221694

I posted this weeks ago and it has not been answered

Even google is doing away with its "official" Wordpress plugin

So if these issues are not cleared up - it will be the cause of a permanent deactivation

Comments

bobburns created an issue. See original summary.

bobburns’s picture

Title: Missing argument for _adsense_process_tags() » ACCOUNT SUSPENDED - Missing argument for _adsense_process_tags()
Priority: Normal » Critical
Issue summary: View changes

  • jcnventura committed 648875f on 7.x-1.x
    Issue #2856308: revert hook_filter_info() callback modifications.
    
jcnventura’s picture

Status: Active » Fixed

I've reverted the _adsense_process_tags() parameters to the same used in the 7.x-1.9 version of the module. You should no longer get the warning. Note however that I use the latest adsense module on my own site (about 3000 users per day), and Google hasn't suspended my account.

I'm pretty sure the reason for the suspension of your account has nothing to do with this warning.

Also, the issue from 2012, has nothing to do with this case.

dalu’s picture

Likewise had no issues ~10k visitors / day

Can you explain what this does?
I thought this module constructs identical code.
Is that not the case?

jcnventura’s picture

The commit removed some parameters from the filter callback. It's used when you add [adsense:xxx] tags in the content. The adsense injector module uses that to inject ads somewhere in the content.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.