Page 1 of 1
Fatal error: Call to a member function get() on a non-object
Posted: Thu Feb 04, 2016 4:22 am
by ESS1
Hi Guys,
I have a fresh install of version 2.1.0.2 working, I have it looking how I wanted.
I have then imported the categories, options and products from a different site but same version and the back end is fine with categories etc there.
However the front end shows error:
Fatal error: Call to a member function get() on a non-object in ...index.php on line 97
and the modules are not visable.
Any ideas
Re: error
Posted: Thu Feb 04, 2016 4:36 am
by Randem
Hi ESS1,
Your subject line should explain things a bit better... otherwise people will just skip it.
OK, Important question. Why are you only importing some data and not the whole database? It usually does not work well with anything in piecemeal...
Re: Fatal error: Call to a member function get() on a non-ob
Posted: Thu Feb 04, 2016 4:42 am
by ESS1
Thanks.
To cut a long story short, we built a site in 2.0.1.1 and started adding products etc. Then found a template but needed 2.1.0.2 and wouldn't be compatible with the template on the original.
So decided to do a fresh install an import.
When we have done this before it has always worked fine...
Thanks
Re: Fatal error: Call to a member function get() on a non-ob
Posted: Thu Feb 04, 2016 5:01 am
by Randem
No, that makes no sense. v2.1.0.1 and v2.1.0.2 are basically the same (only about 5 line changes that do not affect much). if by a template you mean theme (i am guessing).
Just because you get lucky does not mean that is the correct way to do something (as you can see).
Something else is amiss... there has to be more to this story.
Re: Fatal error: Call to a member function get() on a non-ob
Posted: Thu Feb 04, 2016 5:09 am
by ESS1
The original site was 2.0.1.1 I upgraded this to 2.1.0.2, exported the category, option and product tables.
Then in the new install version 2.1.0.2 dropped all category, option and product tables and then imported the ones from the other template...
Re: Fatal error: Call to a member function get() on a non-ob
Posted: Thu Feb 04, 2016 5:18 am
by Randem
You can't just import those things from a working database into a new database. Other table relate to those tables in a relational database (that a whole other issue).
Still you haven't defined what you mean by template. You should be exact to convey you message so that others are on the same page.