Local Host Website Development Theme Issues

by 2 replies
3
Whenever I open my local host domain there is some error display on the website which is
"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php on line 78". May I know exactly what is this and how can I resolved it?
#programming #development #host #issues #local #theme #website
  • Sounds like a very poorly written theme - mysql_num_rows isn't really meant to be used in WP, that's what stuff like $wpdb is for!

    I'd be careful with a badly made theme - it's highly likely that there are security issues with it..

    But, if you want to continue with it, can you post the contents of C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php and point out line 78?

    Cheers,
    Michael
  • "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php on line 78"

    This is an error in my_sql, Please double check your codes in line 78 and will see what happens. And also check your database. And lastly, restart you XAMPP before you debug. Hope this will help you

Next Topics on Trending Feed

  • 3

    Whenever I open my local host domain there is some error display on the website which is "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website.com\wp-content\themes\biznez-lite\SketchBoard\functions\modules\nbar\notificati onbar.php on line 78". May I know exactly what is this and how can I resolved it?