Invalid argument supplied for foreach()
-
I have searched (here and with google) and found conversations close to my issue but not with this “twist�
I am running 1.2.2
It worked (and still does) fine on one of my servers (a different MYsql data base, same data, different system) I downloaded the database from the working server and restored it to the production site (following a fresh install).It works fine, except…
Every refresh results in;‘Invalid argument supplied for foreach() in “mydomaine/whereIputWordpressâ€?/wp-includes/template-functions-category.php on line 65 (also line 304)’
‘Invalid argument supplied for foreach() in “mydomaine/whereIputWordpressâ€?/wp-blog-header.php on line 478’
(“mydomaine/whereIputWordpress� is where it is on our server)
I noticed these php errors being recorded in our error log. That is how it caught my attention. The errors above (based on the info from other posts I searched on) indicate that it is an issue with categories.
WordPress (index.php) shows “Categories No categories” in the upper right hand corner. When I login as admin, I see 3 categories that I set up. When I look at the database (with phpMyAdmin) It shows 3 categories in the wp-categories.
I reloaded the WordPress software (I did not run the install program to make a new startup database). With no change. My next step is to backup and delete the data base, do a new install from scratch, create a new database (with the installation program) and upload my users and posts data. I will remake my categories, and the few changes to the configuration by hand.
Before I do that am I missing something?
The test site worked great, this is my production site but I need to learn (as I am now) before we go “public”.
Thanks to all, for a great program and kind answers to those of us learning.
- The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.