Community Support

Wordpress / PHP / MySQL error

Hi there. I am using Wordpress, and keep getting an error on one of my pages. At first, I needed to increase the PHP memory limit, but I keep getting this error now on http://planetstylist.com/rate-the-styles/

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/plane101/public_html/wp-content/themes/webcraft/page-rate-the-styles.php on line 46

OTHER ANSWERS

The mysql_fetch_object() error is usually related to your SQL query not returning back valid data.

It also looks like you have the WP Super Cache plugin installed, you'll more than likely want to disable this temporarily while you're trying to resolve this error. Since you might be simply getting served a cached page of the error from an earlier time.

Because this error is coming from a theme for WordPress you might want to contact the theme developer and ask if they're aware of any issues such as this, as unfortunately it could be a simple fix but you would need to know exactly where to look to fix it. More than likely there is some data missing from the database that the code is expecting that isn't there.

Did you just install this theme, or migrate over this WordPress site from another host where it had been working previously for you?