It's Like My Computer Doesn't Recognize PHP Anymore
This is really driving me nuts...
I use XAMPP and Wordpress quite often to develop web pages locally.
Everything has been working fine for months, then all of a sudden one day I refresh my browser to see a CSS modifications and blam...I start getting PHP errors. And not just one or two, but every single line of PHP code will come up with an error. If I delete one line of code, it'll just move on to the very next line of PHP and kick back an error.
I've looked everywhere for an answer, and quite frankly I think I'm done with my old developer forum because it's hardly visited anymore. So I'm here, and I was hoping someone could help me out a little because I'm out of ideas.
Here is the index.php code. The first error occurs on Line 9 (where the PHP starts). Nothing fancy, just a simple Wordpress head template I use; and sorry in advance, no clue how to make this look any prettier on a forum.
Here is the error code that pops up when I visit the localhost:
<meta http-equiv="Content-Type" content="
Fatal error: Call to undefined function bloginfo() in C:\xampp\htdocs\wordpress\wp-content\themes\avatarati\index.php on line 9
I've completely reinstalled XAMPP and Wordpress and I've also tried the localhost in different browsers - nothing works. The only thing that works is taking out every single line of PHP code from my index file.
I have no clue what I did, but I went through the installations of every single thing I could think of and it now works. I'm guessing it had nothing to do with the PHP itself but rather I simply didn't activate my custom theme in the localhosted wordpress admin.
[W]) Your machine boots up. Windows is more or less working
[A]) Apache is serving the pages
[M]) <---- can't tell if MySQL is working or not!
[P]) PHP is serving errors- it's still running
Possibly the issue is with your MySQL. I'm not entirely sure about the inner workings of WordPress, but if you can't connect to MySQL I can see how almost everything else would `break`. PHP forgives almost ANY error (its criminal I know) and continues to execute the script- so even if your development XAMP server couldn't connect the the database- it would continue serving up errors.
You should edit your index.php file and at the VERY top put:
<?php error_reporting(E_ALL); ?>
Then post back with the list of errors that PHP generates.
I use (, ; : -) as I please- instead of learning the English language specification: I decided to learn Scheme and Java;