Every now and then I see a line in watchdogs like this one:
Type No entry
Message admin/reports/system_status/99999999999
Severity Warning
Hostname 91.212.186.35
Maybe $items['admin/reports/system_status'] should read: $items['admin/reports/system_status/%']
Comments
Comment #1
promesIn my issue I put a wrong maybe conclusion. The token is given to the function.
I investigated the source and found the reason. In function system_status_access_callback($token = FALSE) the first test results always in FALSE.
The content of the variable: system_status_token is unequal to the passed $token.
Both other variables are not defined in table variable.
Comment #2
sam hermans commentedHi,
Could you provide me with the site id you are having these issues with ? For your convenience i have created a debug url that show's the corresponding ID's.
https://www.drupalstatus.org/account/whoami
Comment #3
promesHi Sam,
One of the sites with this message has ID 9947.
Good luck.
Comment #4
sam hermans commentedHmm, i just did a manual fetch of http://yoururl/admin/reports/system_status/
and this seems to work fine.
Since the ip reported in watchdog is the actual ip of the fetcher that generate the reports i assume that the error is here on my end.
Just to be sure, how often did this appear ? You site is scanned every hour or so.
I added an additional check so it should not happen anymore.
Comment #5
sam hermans commentedComment #6
promesI removed the first if statement in function system_status_access_callback() (see #1) in all D7 sites to get rid of the messages last november. So I don't know at the moment how often I get the error.
I replaced in all D7 sites the module file with the original. When I get the messages again I will report back.
What do you mean with: "I added an additional check so it should not happen anymore."? In the host modules? The is no dev with this change...
Comment #7
promesComment #8
sam hermans commentedWell, i do not agree that the issue is related to the if statement, i think the issue came from the fetcher on my side(where i made a code change).
1) If the system_status_need_protect_token == 1 -> REJECT
OR
2) if system_status_service_allow_drupalstatus is TRUE AND the $token does not match system_status_token REJECT.
The system_status_need_protect_token is something from one of the very first releases, and should/will be removed in future updates. On new/recent installations it should allways return 0 and return FALSE.
If it's really true that the content of system_status_token is unequal to the passed $token you should try to re-add your site... but it doesnt seem to be that way. (i have nr66210K6 in my database as your token)
Comment #9
sam hermans commentedPS: The code is for if someone should want to uncomment everything in system_status.admin.inc so they can use the module with their own backends.
Comment #10
sam hermans commented