WP-Super-Cache activation errors - wordpress

I have to set up the cache on a WordPress project, which is already on "support mode" in the agency for a while.
The plugin WP Super Cache was already installed so I activated it, to setting up it.
I work locally on dev mode and the project have a preprod and a prod environments.
When I activated it, the following error messages appear in back-office :
Warning:
include(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php):
failed to open stream: No such file or directory in
/var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 65
Warning: include(): Failed opening
‘/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php’
for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in
/var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 65
Warning:
include_once(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php):
failed to open stream: No such file or directory in
/var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 82
Warning: include_once(): Failed opening
‘/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php’
for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in
/var/www/wp-content/plugins/wp-super-cache/wp-cache.php on line 82
Looking in the file wp-cache.php on lines 65 and 82, it says that :
include(WPCACHEHOME . 'wp-cache-base.php');
Path ‘dirname(FILE).’/…wp-cache-base.php’ not found Include
expression is not resolved
include_once( WPCACHEHOME . 'ossdl-cdn.php' );
Path ‘dirname(FILE).’/…ossdl-cdn.php’ not found Include expression
is not resolved
So I was thinking about changing the path. However, this is bothering me because I am afraid that this action will be potentially a troubleshooting cause when the plugin will have to be updated.
I have no ideas how I can fix it.
Uninstall and reinstall the plugin ?
Use an other plugin to manage the cache?
Thank you in advance for your answers. Have a nice day!

WP Super Cache puts the below line in your wp-config.php file. Remove the line from your wp-config.php file and reinstall and reactivate the plugin.
define( ‘WPCACHEHOME’, ‘/home/USERNAME/public_html/wp/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
I encountered the same problem after moving my Wordpress directory to the root of my site. If you get the problem and can't deactivate the erroring plugin, go to your /wp-content/plugins/wp-super-cache and remove or rename the directory. This will manually deactivate this so you can install a fresh instance.

Related

Wordpress returns no content for certain admin pages like post.php

I have a wordpress site that was running fine with version 5.7.2. Everything was working as expected (as far as I know). Today I upgraded to 5.8 (using the onclick upgrade within wordpress itself). Since then the post.php simply does nothing, it just closes the connection whenever you go to it (this is also the same for post-new.php, uploads.php, user-edit.php user-new.php but not users.php ). I cant find any errors in the apache logs (and I have the error recording turned on in the php.ini, and there is no output in the wordpress debug.log despite having the following settings:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
in the wp-config.php.
The site itself appears to work as expected, all of the pages and plugins work. I have used the Health Check & Troubleshooting plugin to run the site with all the plugins and themes disabled and this does not address the issue. The issue is not tied to a single client as I can login on different devices and I get the same error.
The error is not just on post.php, but can also be seen by visiting certain admin pages, for example the yoast plugin, whenever try to use the admin pages you get the same error.
After a bit more digging I found the following error in the apache error logs (not the one specific to my vhost)
double free or corruption (out)
free(): invalid next size (fast)
free(): invalid next size (fast)
[Sun Sep 05 22:38:50.226213 2021] [core:notice] [pid 53059] AH00052: child pid 53063 exit signal Aborted (6)
This error would appear any time you load one of the effected pages.
On doing more research I found from here https://github.com/oerdnj/deb.sury.org/issues/622 that having both the php modules for graphicsmagick and imagemagick would cause this memory error. I removed graphicsmagick and everyhing works again.

Can't access WP-Admin page because of error

I am trying to edit a website I made in Wordpress, but when I go to the example.com/wp-admin/ to get to the Admin,
I get the errors, and so there is no way to go into Wordpress to edit the site.
I even changed the WP Theme back to the default TwentyTen through PHPMyAdmin, but that didn't help.
What can I do? Here is what I get when I try to go to wp-admin page:
Notice: register_uninstall_hook was called incorrectly. Only a static
class method or function can be used in an uninstall hook. Please see
Debugging in WordPress for more information. (This message was added
in version 3.1.) in
/home/content/80/13163980/html/ybk/wp-includes/functions.php on line
3547
Notice: Undefined index: page in
/home/content/80/13163980/html/ybk/wp-content/themes/rt_infuse_wp/functions.php
on line 45
Notice: Undefined index: page in
/home/content/80/13163980/html/ybk/wp-content/themes/rt_infuse_wp/functions.php
on line 55
Warning: Cannot modify header information - headers already sent by
(output started at
/home/content/80/13163980/html/ybk/wp-includes/functions.php:3547) in
/home/content/80/13163980/html/ybk/wp-includes/pluggable.php on line
1178
I just set WP_DEBUG mode to false and that skipped it all and got me to the WP-Admin login page.
Just find the pluggable.php and after <?php please add this ob_start(); and save. That should work.
Warning: Cannot modify header information - headers already sent by
Removing "blank lines" from function.php file and check it now issue is as it is than after check plugin folder >> disable plugin and check
Refresh your Browser, and the original error message Should go away.

Once I active Jetpack, I cannot open any dashboard pages any more

I have an issue when I try to install Jetpack on my wordpress site.
When the installation finished, I clicked "active" to active the Jetpack plugin, but I could not open any dashboard pages anymore.
I have already removed all other plugins and reinstalled Jetpack many times, but I still have the same issue.
What did I do is:
Add the following code in wp-config.php file to enable debugging.
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
#ini_set('display_errors',0);
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define('SCRIPT_DEBUG', true);
Open [your domain]/wp-content/debug.log to open the log
What did I find is:
PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 30720 bytes) in /hsphere/local/home/.../wp-admin/includes/media.php on line 2765
To slove this problem, i have added the following code in wp-config.php file
define('WP_MEMORY_LIMIT', '64M');
I don't really know the reason, but it works for me.

Moving Wordpress website to another server

A friend of mine asked me to move wordpress website from development server to production. I've copied all the files, backed up and restored database. After that I'd changed sitename and home values in database (_options table) to new domain and it started. Though only home page is working fine. When I navigate to any other page it gives me 500 error. In error_log I got following errors:
1423021301: /home1/crankst1/public_html/fish-dev-site/ssv3_payload_extractor-r0Xkqq2xFD.php startup
[24-Feb-2015 19:16:59 UTC] PHP Warning: require_once(/home1/crankst1/public_html/fish-dev-site/wp-content/plugins/js_composer_theme/include/classes/core/class-vc-sort.php): failed to open stream: No such file or directory in /home1/crankst1/public_html/fish-dev-site/wp-content/plugins/js_composer_theme/js_composer.php on line 168
[24-Feb-2015 19:16:59 UTC] PHP Fatal error: require_once(): Failed opening required '/home1/crankst1/public_html/fish-dev-site/wp-content/plugins/js_composer_theme/include/classes/core/class-vc-sort.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home1/crankst1/public_html/fish-dev-site/wp-content/plugins/js_composer_theme/js_composer.php on line 168
Paths that cause errors are related to development server and I can't find where to change them. I'm not very good with wordpress, so I suppose that solution should be very simple.
I'm sure there is an issue with a plugin http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments?page=149 try to see if there are any hardcoded paths on the plugin dashboard.
Delete your .htaccess file then go to the permalinks page change to another permalink type save page then change back to permalink you had this will force wordpress to recreate the .htaccess file and it will allow all pages you have to show correctly on the site. :-)

Multiple Warning: session_start() [function.session-start]

I am trying to help install a third party theme onto a WordPress installation and I get these three error codes when I click "live preview" or "activate" the theme:
Warning: session_start() [function.session-start]: open(/var/chroot/home/content/66/5232766/tmp/sess_1n0eifrftmjfu96hop17kihi35, O_RDWR) failed: No such file or directory (2) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php:461) in /home/content/66/5232766/html/wp-content/themes/Drlawyer/functions.php on line 461
How can I fix these things?
try commenting the line out and removing your addition
function cp_admin_init() // { if (!session_id()) session_start(); }
If this is godaddy hosting you might need to do this (I run into this problem all the time)
Add this to your php5.ini file then you will need to kill all processes from your godaddy hosting control panel and it will work. check your phpinfo.php file to make sure it took
upload_tmp_dir = /var/chroot/home/content/56/10594156/html/temp
session.save_path = /var/chroot/home/content/56/10594156/html/temp
of course change the pathto to yours and then create a /temp dir in your root and CHMOD 777
Godaddy has issues with the tmp/ dir for some reason

Resources