Local Host Website Development Theme Issues

2 replies
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?
#development #host #issues #local #theme #website
  • Profile picture of the author emptee
    Originally Posted by ajayp409 View Post

    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:xampphtdocswebsite.comwp-contentthemesbiznez-liteSketchBoardfunctionsmodulesnbarnotificati onbar.php on line 78". May I know exactly what is this and how can I resolved it?
    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
    {{ DiscussionBoard.errors[10072263].message }}
  • Profile picture of the author Member8200
    "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
    {{ DiscussionBoard.errors[10084183].message }}

Trending Topics