Version 2.10.1 crashes site’s backend!
-
Just upgraded to Version 2.10.1 and I got 500 errors when trying to login into my wp-admin.
-
After changing the dir name, and trying to re-activate, I get the following error:
`
Warning: require_once(/home/rstatis/public_html/wp-content/plugins/code-snippets/php/import-export.php): failed to open stream: No such file or directory in /home/rstatis/public_html/wp-content/plugins/code-snippets/php/class-code-snippets.php on line 60`It’s because the file it’s calling (import-export.php) on line 60 of class-code-snippets.php does not exist. We’ve commented out line 60 and it works until the next update.
So it won’t work until the next update?
-
This reply was modified 7 years, 10 months ago by
pedrofilho.
It will if you comment out the file it’s looking for that does not exist as per my instructions here: https://wordpress.org/support/topic/version-2-10-1-crashes-sites-backend/#post-9959903
How can I “comment out” that file? I also have that same problem.
Okey, I got it.
Just replace line 60:
require_once $includes_path . '/import-export.php';for that:
/* require_once $includes_path . '/import-export.php'; */in file:
wp-content/plugins/code-snippets/php/class-code-snippets.phpThanks Joe. Frontend and dashboard went white on me.
same here on localhost php 7.2
Commenting out line 60 solved this for now.
Warning: require_once(C:\xampp\htdocs\wp.dev\wp-content\plugins\code-snippets\php/import-export.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wp.dev\wp-content\plugins\code-snippets\php\class-code-snippets.php on line 60
Fatal error: require_once(): Failed opening required ‘C:\xampp\htdocs\wp.dev\wp-content\plugins\code-snippets\php/import-export.php’ (include_path=’C:\xampp\php\PEAR’) in C:\xampp\htdocs\wp.dev\wp-content\plugins\code-snippets\php\class-code-snippets.php on line 60
-
This reply was modified 7 years, 10 months ago by