You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the following entries show up in my debug log:
[13-May-2024 08:59:01 UTC] PHP Warning: Trying to access array offset on null in wp-content/plugins/google-listings-and-ads/src/MerchantCenter/MerchantCenterService.php on line 436
Tracing back the code, this happens when the CampaignSetup notifications do their checks (run once a day). If we don't have the statistics cached then it will schedule to have them populated and will return the statistics as null. Meaning we can't check right away if there is at least one active product. I haven't checked the details fully but it looks like has_account_issues might also be affected.
Steps to reproduce:
Enable debug logging to see PHP warnings
Clear statistics cache
Trigger the scheduled action to run notification
Confirm that the PHP warning is generated when trying to check if a notification should be triggered
Expected behavior:
Statistics to be available, or for it to only run the checks after statistics become available.
The text was updated successfully, but these errors were encountered:
Describe the bug:
I'm seeing the following entries show up in my debug log:
Tracing back the code, this happens when the CampaignSetup notifications do their checks (run once a day). If we don't have the statistics cached then it will schedule to have them populated and will return the statistics as null. Meaning we can't check right away if there is at least one active product. I haven't checked the details fully but it looks like
has_account_issues
might also be affected.Steps to reproduce:
Expected behavior:
Statistics to be available, or for it to only run the checks after statistics become available.
The text was updated successfully, but these errors were encountered: