Jump to content

Fatal error Help


Recommended Posts

hi all

Go store commander on uploading csv file i get this can you help

 

Fatal error: Call to a member function getLanguages() on a non-object in /homepages/18/d240153192/htdocs/tshop/modules/gshoppingflux/gshoppinggflux.php line130

 

thanks

 

post-313168-0-40379300-1423477678_thumb.jpg

Link to comment
Share on other sites

Here are a couple of things you can do to see if this resolves your problem.

1. Increase memory_limit and upload_limit of your hosting. (You can mostly do this by editing your .htaccess file).

2. For some installations the languagepacks downloader are having trouble, you can find a fix here: https://github.com/PrestaShop/PrestaShop/pull/1552/files

3. Else take a look if your gamification is correct, you can find the fix here: https://github.com/PrestaShop/gamification/commit/6f5b9535e4d3d7e9b92fc7e87181726203fc0cc1

 

Let me know if any of these solve your problem.

Don't forget to clear the cache if you are using any.

Link to comment
Share on other sites

Maybe try this, change the following code on your gshoppingflux.php:

$languages = $this->context->controller->getLanguages();

to:

//$languages = $this->context->controller->getLanguages();
$default_language = (int)Configuration::get('PS_LANG_DEFAULT');

Let me know if this is doing anything

Edited by helldog2004 (see edit history)
Link to comment
Share on other sites

That is probably because it is trying to pull out all kinds of different languages which would normally be pulled out by the code:

$languages = $this->context->controller->getLanguages();

But we disabled it and chose to use the default language you are using in PrestaShop.

So the following code can be disabled as well:

foreach($languages as $key => $lang) $str[$lang['id_lang']] = '';

change it to:

//foreach($languages as $key => $lang) $str[$lang['id_lang']] = '';

Then you will probably receive the same error on line 156 afterwards. But check it out first.

You will most likely have to do this action a couple of times in the code.

Let me know if we are getting somewhere.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...