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 mysite.com/login/ the form works fine, but when i try to point to the full URL path (mysite.com/login-form.php) 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: http://pastebin.com/M8rGdu7g
i hope someone can help