elementalist
Member
Posted 5 years ago #
Hi, 1st post!
I have just taken over a wordpress project, integrating a blog/news reel into our homepage.
I am getting the following error:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT category_count FROM wp_categories where cat_ID =
which is repeated about 5 times where the blog should be. I thought I would ask around before trawling throught the code. The db install etc seems to be ok.
Thanks.
elementalist
Member
Posted 5 years ago #
If I change to the classic theme it shows posts OK... so is its something to do with that!
akmiller
Member
Posted 4 years ago #
I seem to be having the same error on my site in a number of themes I change to any ideas how to fix them problem?
elementalist, welcome to the forums.
That's probably a plugin call in the code, but the plugin is turned off. Either that, or the theme is made for an older version of WP.
akmiller
Member
Posted 4 years ago #
PLEASE PLEASE gguide me to fix his problem as this is really new to me!!!
Switch to the default theme and see if the errors persist. That, and give a link to the site.
akmiller
Member
Posted 4 years ago #
Ok, when I change to the default theme the database error does not show up, However I still get another error in the main part of my blog section reading
Parse error: syntax error, unexpected '<' in /home/akmiller/public_html/profitfeeds.php on line 7
any ideas??
the web link is http://www.yourweightlossoptions.com
thanks
The problem is going to be in that file, then, profitfeeds.php. Also, if you've recently updated WordPress but haven't updated your theme to reflect the new PHP calls, then that could be where the other errors were coming from.