Timeline for Page not found - Wamp green, phpmyadmin working
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 12, 2019 at 15:12 | comment | added | Tom |
From what I'm seeing, your WordPress install may have an issue with the siteurl. Now I see WordPress thinking it lives at localhost/wordpress%G/ but you are visiting the site at localhost/wordpress/ . dropbox.com/s/hdhilftfuahtpg8/inspect%20source.png?dl=0 You should check PHPMyAdmin and look at your wp_options table for site_url and home_url .
|
|
Dec 12, 2019 at 12:43 | comment | added | Yuan Lim | Strange, it gave me a 404 error again eventhough I didn't work on it. Here is the inspect srouce: drive.google.com/open?id=1wHtJELWXj9DhzUaVZbuPRAZArH6SodM7 and here is my inspect source: drive.google.com/open?id=1np3WzGUtHDhr8C164XZqJWr-dBAf97hk | |
Dec 10, 2019 at 16:04 | history | edited | Tom | CC BY-SA 4.0 |
Updating the answer after troubleshooting in the comments.
|
Dec 10, 2019 at 16:01 | comment | added | Tom | Glad to hear it worked. I'll update my answer with the actual solution. In regards to the admin issue, can you take two screenshots? The first of the source code (like before) and the second by opening Chome developer tools and finding the console tab. You can read more about devtools here: developers.google.com/web/tools/chrome-devtools | |
Dec 10, 2019 at 14:19 | comment | added | Yuan Lim | Alright! It seems WP can read the file now, thanks so much Tom. Btw I m facing something weird in the backend admin page, it does not have any styling to it. Here is the screenshot: drive.google.com/open?id=1aX2wmRhlkvbtSyLfa0gmzbiWVGBfJTVW | |
Dec 8, 2019 at 16:26 | comment | added | Tom | Thanks for posting those screenshots. I think I found the issue. If you look at your first screenshot, the URL you are visiting is localhost/wordpress%20G (wordpress space G). That makes sense, because in your second screenshot we can see that the folder path is wamp64/www/wordpress G/. However, looking at your source code, the URL WordPress is set to is "localhost/wordpress/" (no space-G). What I recommend is renaming the folder that WordPress lives in from "wordpress G" to just wordpress. That should make the site work correctly. Please let me know if this works and I can update the answer. | |
Dec 8, 2019 at 11:30 | comment | added | Yuan Lim | so here is my source file; drive.google.com/file/d/1mPgCE_bDU9Fm_2MF7M-ZQEgkqK9XTjuG/view | and here is my theme folder ; drive.google.com/file/d/1MdG8wkn2Fl3BybegDuVn2CxBrWYjm-Q3/view | |
Dec 5, 2019 at 15:57 | comment | added | Tom | Got it. The 404 looks like it's coming from WordPress (I am seeing your blogs title and subtitle "Just another WordPress site") but the CSS doesn't seem to be loading. Can you right-click and select the "View Source" option and screenshot that? | |
Dec 5, 2019 at 13:54 | comment | added | Yuan Lim | here I uploaded the image on my Google Drive, it should be view-able for all: drive.google.com/open?id=1AwEWysB9XfS2EPvkI64L6f1cQJxKVVZI | |
Dec 3, 2019 at 14:20 | comment | added | Tom | Can you screenshot the 404 page, post it and link it here? I'd like to see if it's an apache 404 (your server generates it) or WordPress-generated 404. | |
Dec 3, 2019 at 14:04 | comment | added | Yuan Lim | hmm strange, I tried enabling "WP_DEBUG" and enable error reporting in the wp-config file, and when I remove the comment (revert) my index file; I didn't received any error message, just an 404 page not found. | |
Dec 3, 2019 at 13:52 | comment | added | Tom |
Great news, you're debugging! Now remove your changes from index.php and uncomment the WordPress-code inside there. Then, open wp-config.php and search the file for "WP_DEBUG". Make sure that it is set to "true" (like this: define( 'WP_DEBUG', true ); . Then, under the defined wp_debug, put the following: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); and try to access your site. You should see errors when visiting the homepage or wp-admin (try both).
|
|
Dec 3, 2019 at 13:45 | comment | added | Yuan Lim | Ahh I tried printing "hello from php" in the index file, and my site does echo "hello from php". This must be an Wordpress issue | |
Dec 3, 2019 at 13:39 | comment | added | Tom | Great! Since we think it's a PHP error, head over to your WordPress install and open up index.php. Comment out everything in the file and then type something in there to show that PHP is running, like this: `<?php print_r('hello from php'); die();'. If you visit your site and see the message "hello from php", then your server is running fine and WordPress is the issue. If you see no message and an error, then your server is the issue. | |
Dec 3, 2019 at 13:36 | comment | added | Yuan Lim | Ahh thanks Tom! I can reach my site's readme.html so this means it could be a php error | |
Dec 2, 2019 at 13:49 | comment | added | Tom | Based on a WordPress.org thread (wordpress.org/support/topic/…) I would recommend trying to visit "your-wamp-website-url.com/readme.html" and see if that renders. If it does, then there is a PHP specific problem. If it still shows the same error, then there is a larger issue with WAMP. | |
Dec 2, 2019 at 11:57 | comment | added | Yuan Lim | Thanks Tom, I've tried renaming the plugin, but it does not work. I have also tried setting WP_DEBUG and going to the admin, but all I got was "The requested URL /wordpress/ was not found on this server. Apache/2.4.39 (Win64) PHP/7.2.18 Server at localhost Port 80" | |
Dec 1, 2019 at 16:38 | history | answered | Tom | CC BY-SA 4.0 |