plugin cause 500 Internal Server Error
-
hey there
The plugin cause a 500 error.
Everything is up to date
did some research
its php 8
logs showing error coming from plugins/w3-total-cache
Unsupported operand types: string * int in wp-includes/functions.php:75″
so what is that?
also discussing here:
https://ww.wp.xz.cn/support/topic/plugin-cause-500-internal-server-error/-
This topic was modified 3 years ago by
schmekbu.
The page I need help with: [log in to see the link]
-
This topic was modified 3 years ago by
-
Hello @kaklappen
Thank you for reaching out and I am happy to assist you with this.
Can you please share the entire error in the error log? Does the issue persist if you temporarily disable W3 Total Cache?
Thanks!
error is gone after deactivating w3 total cache
log
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /var/www/vaegabond.com/wp-includes/functions.php:75″
Stack trace:”0 /var/www/vaegabond.com/wp-includes/functions.php(179): current_time(‘timestamp’, false)”
1 /var/www/vaegabond.com/wp-content/plugins/w3-total-cache/Generic_Plugin.php(471): date_i18n(‘Y-m-d H:i:s’)”
2 [internal function]: W3TC\Generic_Plugin->ob_callback(‘\t<!doctype html…’, 9)”
3 {main}”
thrown in /var/www/vaegabond.com/wp-includes/functions.php on line 75″
Hello @kaklappen
Thank you for your feedback, and for your patience as I was trying to check this and replicate it. This is a
date_i18ncall. and it was there foreverThe error is called in yorur functions.php:75 and functions.php(179):
In /wp-includes/functions.php it should be
$timestamp = current_time( 'timestamp', $gmt );Can you please check and share lines 178-182 of your /wp-includes/functions.php
Thanks!
/wp-includes/functions.php
lines 176 – 182
// If timestamp is omitted it should be current time (summed with offset, unless$gmtis true). if ( ! is_numeric( $timestamp ) ) { // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested $timestamp = current_time( 'timestamp', $gmt ); } /*Hello @kaklappen
Thank you for your patience.
I was not able to replicate the problem, so this must be related to the WordPress itself or the Localization issue.
Can you please share when you started to experience this problem? Meaning, if the W3TC was enabled before this issue started to occur, and if you made any changes on the server or website after which the problem started.
Thanks!
Using W3TC for years. Was working fine. Using social link pages for years, also working fine.
read more:
https://ww.wp.xz.cn/support/topic/plugin-cause-500-internal-server-error/#post-16699326
No idea why this is happening. I did´t change anything, just updating plugins from time to time.
Hello @kaklappen
Thank you for your feedback.
I saw the conversation in the link you shared, however, it would be helpful if you cloud share at which point the issue started to occur and what actions were taken prior to the occurrence of the problem.Thanks!
As I said, I didn´t change anything. Also I dont know when it happend. I guess within the last 2 Month.
Al I do is updating plugins, I didn´t change anything or installed new plugins.
Hello @kaklappen
Thank you for your feedback.
Can you please try disabling other plugins one by one and keeping the W3TC enabled to see if there some compatibility issues?
Thanks!
done
didn´t change anything, in the end there was just W3TC and Social Link Pages which is responsible to create vaegabond.com/links page
no changes, problem is only related to W3TC
Hello @kaklappen
Thank you for your feedback.
Can you please completely remove and re-install W3 Total Cache?
- Purge Cache
- Deactivate and Delete Plugin
- Check .htaccess File (make backup)
W3TC will create many directives in .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
Ensure that no residual entries are left over in your .htaccess file after deleting the plugin.Delete wp-content files and folders - Delete wp-content files and folders
– cache folder
– w3tc-config folder
– object-cache.php (if exists)
– advanced-cache.php (if exists)
– db.php (if exists)
– upgrade folder
– delete w3-total-cache folder in wp-content/plugins/ (if exists) - Delete Cached Files from CDN (if using CDN)Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
- Go to your wp dashboard and re-install W3 Total Cache
Let me know if it helps!
Thanks for instructions.
I did follow exactly what you wrote. No changes. Same issue
@vmarko any news? 🙂
@vmarko any news? 🙂
can you please fix this?
The topic ‘plugin cause 500 Internal Server Error’ is closed to new replies.