I am pretty sure that there is something wrong with my database that is causing my theme to break. I was just in MySql to repair some tables and as soon as I did a call to the database, I looked at my site and the theme had reverted to default.
I’ve got a number of issues in addition to the theme reverting to default. They are:
-Permalinks problem: when I click on permalinks in the admin panel, I get this error: Warning: strpos() [function.strpos]: Empty delimiter. in /mnt/w0310/d21/s41/b001947e/www/italofile.com/wp-admin/includes/file.php on line 73
-Also on the permalinks, I get this error about my .htaccess file: If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all. (But my .htaccess file is writable – 644)
-All of my pages are missing on my site (About, Contact, etc.). When I look in the database, they are there. But repairing the wp_posts table does not resolve this.
-I have disabled all plugins except for Akismet (got 6 spam comments in about 5 mins without it), adsense widget, limit posts (required for the particular theme I am now using), and wordpress database backup (obvious reasons).
My theme reverts to default with EVERY theme I have used so far. However, when I look at the main themes page, it shows that my current theme is the one I have chosen, not the default theme.
I am using 2.8.3 now. With every upgrade since around 2.7.1 I get the same problem. Unfortunately I cannot pinpoint the exact day this all went down, so am not able to figure out an exact event that is causing all of these problems.
If anyone has any ideas as to what I can do to fix all of this, I’d appreciate it. Again, it really seems like it’s a database issue. But I have checked all tables to repair but no difference in outcome.