wabetainfo
Forum Replies Created
-
Hi @wfpeter
Thanks again. Diagnostic report has been sent successfully.Hi @wfpeter
Thanks for your message. I’m using the 8.1.2 version since three weeks and I keep seeing this PHP notice multiple times every day.Hi @kushnamdev
Unfortunately, the latest updates still do not implement a fix for the issue. Additionally, I’m not even sure if it will work, as I experience the same critical error even after adding that code to the advanced-cache.php file:
if ( defined( ‘SWCFPC_SKIP’ )) {return;
}
Hi @kushnamdev
Do you have any idea how to do it? Although the code seems correct, the website crashes when I try purging the cache. Thanks.Hi @kushnamdev
Thanks for your message. I don’t understand the difference between my code and yours (mine just had a syntax error once pasted here, but it was correct in my PHP file). however, I just tested the code and the page still reports “There has been a critical error on this website.”
The log says:[08-Sep-2025 20:19:25 UTC] PHP Warning: Trying to access array offset on null in /home/website/public_html/wp-content/advanced-cache.php on line 869
[08-Sep-2025 20:19:25 UTC] PHP Warning: Trying to access array offset on null in /home/website/public_html/wp-content/advanced-cache.php on line 829
[08-Sep-2025 20:19:25 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/website/public_html/wp-content/advanced-cache.php:831
Stack trace: 0 /home/website/public_html/wp-content/advanced-cache.php(77): swcfpc_fallback_cache_is_cookie_to_exclude()Hi @deabiodun
Unfortunately I can no longer test this because, due to this issue and the problem that caused a disruption on my homepage after updating to version 4.2.0 (as reported here), I had to switch to a different cache plugin.Hi @vupdraft
Thank you for your response. Unfortunately, I had to uninstall WP-Optimize. I had been using version 4.1.1 for too long, and I was concerned that a WordPress update might break its compatibility. I usually keep all my plugins up to date for security reasons, and I could no longer leave WP-Optimize outdated. Additionally, updating to version 4.2.0 not only caused an issue with my homepage but also broke compatibility with Flying Scripts, as reported here. Unfortunately, I had no choice but to switch to a different cache plugin.
Forum: Plugins
In reply to: [Super Page Cache] PHP Warning: Trying to access array offset on nullHi @kushnamdev
I have additional information to share. The PHP file includes:do_action(“swcfpc_purge_cache”, array(
“https://example.com/url1”,
“https://example.com/url2”,
“https://example.com/url3”
));The error occurs when this action is executed. It is probably not related to the fact that it is called by a cron job, so my previous assumption was wrong. It is caused by this code. Thank you.
Forum: Plugins
In reply to: [Super Page Cache] PHP Warning: Undefined array key “HTTP_HOST”Hi,
Thanks for your message. I fixed the issue by adding this code to the wp-config file:if ( ! isset( $_SERVER[‘HTTP_HOST’] ) || empty( $_SERVER[‘HTTP_HOST’] ) ) {
$_SERVER[‘HTTP_HOST’] = ‘mywebsite.com’;
}
Since I do not have any subdomain, I could use this code without any other conflicts. Thanks again.Forum: Plugins
In reply to: [Super Page Cache] PHP Warning: Trying to access array offset on nullHi,
Thanks for your answer. The message I shared is already the full error message. There is nothing else.
WordPress version is 6.8.2. PHP version is 8.3.Hi @deabiodun
Thank you for your reply. Unfortunately, I’m unable to enable the “Contain each included file in its own block” option because it requires the Minify feature to be turned on first. However, enabling Minify causes significant layout issues on my website, so it’s not a valid solution for me. That said, I’m still able to use Flying Script with WP-Optimize (version 4.1.1) without enabling that option.
Hi @deabiodun
I’ve installed the latest 4.2.3 update and can confirm that I’m still experiencing the same issue. After more than 10 minutes, the home page returns a “Not found” error, while all other pages continue to work correctly. I’ve had to downgrade to version 4.1.1, where this issue does not occur. I’m trying to investigate on my own, and I’ll let you know if I discover anything. I also hope you can treat this issue as a top priority, as I’ve been experiencing it for two months without a solution.Hi @deabiodun
I see my previous message doesn’t contain the mention, so you probably didn’t notice my message. Could you share with me if there is any news regarding my case, please? Unfortunately, I am still encountering this issue and I have to use the 4.1.1 version. In this conversation, I shared a pastebin where you can see my plugin list.Hi @deabiodun
Sorry for the duplicate mention. It’s been two weeks since my previous message. Is there any news? Thanks for your patience.Hi @deabiodun
Is there any news regarding this issue? This stops me from updating to the newest versions.