Call to member function on a non-object

I am trying to point users on my wordpress site to a php login file obut i am getting the following error:

PHP Fatal error: Call to a member function the_instance() on a non-object
in /home/xxx/public_html/wp-content/themes/quark-child/login-form.php on line 7

On line 7 the code is as follows:

The login form is created with the Theme My Login plugin. If i go to the form works fine, but when i try to point to the full URL path ( i recieve the above error in my log files.

I have other plugins on my site ( A classifieds plugin which requires users to login, also Disqus commenting plugin) which require me to point to the full php URL path in their respective plugin settings.

The code from the login-form.php is here:

i hope someone can help

Sponsor our Newsletter | Privacy Policy | Terms of Service