Notice: Undefined variable: tposts in /opt/lampp/htdocs/mohrestan.ir/wp-content/themes/mohrestan/header.php on line 866

    Fatal error: Uncaught Error: Call to a member function have_posts() on null in /opt/lampp/htdocs/mohrestan.ir/wp-content/themes/mohrestan/header.php:866Stack trace:#0 /opt/lampp/htdocs/mohrestan.ir/wp-includes/template.php(688): require_once()#1 /opt/lampp/htdocs/mohrestan.ir/wp-includes/template.php(647): load_template('/opt/lampp/htdo...', true)#2 /opt/lampp/htdocs/mohrestan.ir/wp-includes/general-template.php(41): locate_template(Array, true)#3 /opt/lampp/htdocs/mohrestan.ir/wp-content/themes/mohrestan/single.php(5): get_header()#4 /opt/lampp/htdocs/mohrestan.ir/wp-includes/template-loader.php(74): include('/opt/lampp/htdo...')#5 /opt/lampp/htdocs/mohrestan.ir/wp-blog-header.php(19): require_once('/opt/lampp/htdo...')#6 /opt/lampp/htdocs/mohrestan.ir/index.php(17): require('/opt/lampp/htdo...')#7 {main} thrown in /opt/lampp/htdocs/mohrestan.ir/wp-content/themes/mohrestan/header.php on line 866