error after moving opencart from another server

I  faced this problem today moving opencart  site from one server to another and i noticed that lot is missing so i allowed these in php.ini

display_errors = 1;
error_reporting = E_ALL;

 

and in opencart admin show errors and then  i saw these lines

Notice: Undefined variable: boss_login in template/common/header.tpl

Notice: Undefined variable: header_top in template/common/header.tpl

Notice: Undefined variable: header_bottom in template/common/footer.tpl

Notice: Undefined variable: boss_megamenu in template/common/header.tpl

Notice: Undefined variable: footer_top in template/common/footer.tpl

Notice: Undefined variable: currency in template/common/header.tpl

Notice: Undefined variable: language in template/common/header.tpl

 

after some search i did this uploaded latest version of VQMOD to the site and the upgrade it using this http://yoursite.net/vqmod/install/ and then u get UPGRADE COMPLETE

and the site is back as it should be

 

 

 

 

Advertisements

Make Sense of WP Query Functions

query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the query. It is inefficient (re-runs SQL queries) and will outright fail in some circumstances (especially often when dealing with posts pagination). Any modern WP code should use more reliable methods, like making use ofpre_get_posts hook, for this purpose. ( don’t use query_posts() ever)

 

get_posts() is very similar in usage and accepts same arguments (with some nuances, like different defaults), but returns array of posts, doesn’t modify global variables and is safe to use anywhere;

 

WP_Query class powers both behind the scenes, but you can also create and work with own object of it. Bit more complex, less restrictions, also safe to use anywhere.

 

query_functions