Post by ESS1 » Thu Feb 04, 2016 4:22 am

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

Newbie

Posts

Joined
Tue Oct 06, 2015 10:04 pm

Post by Randem » Thu Feb 04, 2016 4:36 am

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...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by ESS1 » Thu Feb 04, 2016 4:42 am

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

Newbie

Posts

Joined
Tue Oct 06, 2015 10:04 pm

Post by Randem » Thu Feb 04, 2016 5:01 am

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.
Last edited by Randem on Thu Feb 04, 2016 5:14 am, edited 2 times in total.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by ESS1 » Thu Feb 04, 2016 5:09 am

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...

Newbie

Posts

Joined
Tue Oct 06, 2015 10:04 pm

Post by Randem » Thu Feb 04, 2016 5:18 am

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.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am
Who is online

Users browsing this forum: No registered users and 33 guests