• Resolved Jim

    (@kernix)


    I ran XAMPP as administrator. I had issues with port 80 so I found a stackoverflow article and it mentioned turning off services.msc. I did that and localhost worked and I got to
    http://localhost/dashboard/
    http://localhost/phpmyadmin/

    I had to install 32bit version of Xampp. I followed a number of videos and a wpmudev article (https://premium.wpmudev.org/blog/setting-up-xampp/) on installing everything. but when I type the folder name after localhost I’m getting an error:

    There has been a critical error on your website.

    Learn more about debugging in WordPress.

    and the address changes to http://localhost/learnwpdev/wp-admin/install.php learnwpdev is the folder where everything is. And yes I created a database per the articles and videos as well. Why is this so hard? Why doesn’t anyone have an article on how to fix this? Why did the debugging page not have anything? How do I fix this? Do I need to try a 32bit version of WAMPP instead or reinstall XAMPP?

    • This topic was modified 6 years, 1 month ago by James Huff. Reason: moved to Localhost Installs since this is a localhost install
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    It might not be too difficult to fix. You need more specific information beyond it being a critical error. Go to the Apache error.log file from your XAMPP control panel. What errors were logged at the time you got the critical error message?

    If the error is due to a plugin or theme file, disable that module by renaming its folder through your normal file system UI.

    “There has been a critical error” is not much to go on by itself, hence the lack of meaningful debugging information. Sadly, on public sites, showing more specific information can give hackers useful feedback so more detail has been suppressed. If your localhost is inaccessible from outside, WP can be configured to show more meaningful information in case of error.

    32 bit is pretty unusual these days, but I know of no reason it wouldn’t still work.

    Thread Starter Jim

    (@kernix)

    First off, I believe the errors were the result of timeouts – not sure, but I get errors now and a refresh fixes it. I had to remove XAMPP and reinstall and I got my localhost site to work. I’m taking a udemy course on theme development and the style.css wasn’t working so I had to copy all the files from twentynineteen to get the css to work. I could post a new post about this but do you know which files are responsible for displaying css other than style.css? I tried moving all the files and folders I could to find what was necessary – ahh, whatever. I’ll del with it and its too confusing to figure out.

    I have no idea what you mean by error file in XAMPP

    Moderator bcworkz

    (@bcworkz)

    The error log is important for coding if the site is not configured to display error messages. In the XAMPP control panel, click the Apache “Logs” button. Select “Apache(error.log)”. The most recent errors are added to the end of the file that opens.

    If it’s safe to display errors on the site (no public access possible), you can do so by defining ‘WP_DEBUG’ as true in wp-config.php. You can suppress the “critical error has occurred” routine in favor of directly displaying errors by adding define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); right below the debug definition.

    There are a number of ways CSS can be applied to a page beyond style.css. One could use the @import statement in a CSS file, though that’s discouraged in WP. We should be loading files with the wp_enqueue_style() PHP function. Inline CSS can be added by anything that sends output. Individual HTML tags can contain style attributes, though this really should be avoided at all costs because such rules are very difficult to override when the need arises.

    XAMPP features PHPMyAdmin database management features like on a real hosting server, so for Web developers can easily develop database-based Web applications with ease. XAMPP is used by computer users in particular in the field of Web programming. XAMPP for Windows can be run on Windows 10, Windows 8 and Windows 7 operating systems.

    Thread Starter Jim

    (@kernix)

    It was my 32 bit laptop – it’s running great now.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘localhost install with XAMPP error’ is closed to new replies.