I was working using a Wamp server installed on my computer and everything was working fine for my Wordpress site. But when I installed a plugin, the entire WP site is gone as it displays "Oops! That page can’t be found."
Status: My Wamp is green, and I can access phpmyadmin and see my database. But I can't establish a connection via localhost to the front or backend of Wordpress. I've also checked my Apache error log and there isn't anything using port 80.
I've tried to use
"define('WP_ALLOW_REPAIR', true);"
on 'wp-config' but no luck. I m pretty new to this Wordpress development, so please do guide me through how to fix this. Thank you
Here is my .htaccess
file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
I have two different Wordpress websites, both of them is working prior to this issue. But after this one Wordpress site went 404, the other Wordpress site suddenly can't read its css files, as the text are still the same.
I was working using a Wamp server installed on my computer and everything was working fine for my Wordpress site. But when I installed a plugin, the entire WP site is gone as it displays "Oops! That page can’t be found."
Status: My Wamp is green, and I can access phpmyadmin and see my database. But I can't establish a connection via localhost to the front or backend of Wordpress. I've also checked my Apache error log and there isn't anything using port 80.
I've tried to use
"define('WP_ALLOW_REPAIR', true);"
on 'wp-config' but no luck. I m pretty new to this Wordpress development, so please do guide me through how to fix this. Thank you
Here is my .htaccess
file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
I have two different Wordpress websites, both of them is working prior to this issue. But after this one Wordpress site went 404, the other Wordpress site suddenly can't read its css files, as the text are still the same.
Share Improve this question edited Dec 3, 2019 at 14:16 Yuan Lim asked Dec 1, 2019 at 13:08 Yuan LimYuan Lim 13 bronze badges1 Answer
Reset to default 2My first step would be to turn on WP_DEBUG
in your wp-config.php file.
Edit wp-config.php and add the following lines:
define( 'WP_DEBUG', true );
Then visit your site's admin (example/wp-admin) and see if an error appears. More than likely the plugin you just added broke the site, so you can go into your local filesystem (where WordPress is stored) and deactivate the plugin.
- Go to your WordPress install (via your File Explorer).
- Open wp-content/plugins/
- Find the plugin you just activated when things broke. Rename that folder to something else (example:
bad-plugin
renamed tobad-plugin-1
)
Now try to visit your site. By renaming the plugin it forces WordPress to deactivate it and it may bring the site back.
Here are some additional debugging tips for WordPress as well:
- https://wordpress/support/article/debugging-in-wordpress/
- https://www.a2hosting/kb/installable-applications/optimization-and-configuration/wordpress2/debugging-wordpress
- https://www.youtube/watch?v=cLNIARUfSj8
- https://www.youtube/watch?v=Nj2ziU6_0F8
Updated Answer
The comments of this answer revealed that the main issue was with the file path leading to the WordPress installation. The file path was localhost/wordpress%20G
, but the WordPress site_url parameter was set to localhost/wordpress/
.
By visiting the url localhost/wordpress%20G
, WordPress was rendered but was firing a 404 error. By renaming the folder to wordpress
(removing the space and letter G) the WordPress installation began to work as expected.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744920679a4601115.html
评论列表(0条)