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
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.