age3972 Posted February 9, 2015 Share Posted February 9, 2015 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 Link to comment Share on other sites More sharing options...
helldog2004 Posted February 9, 2015 Share Posted February 9, 2015 can you show us gshoppinggflux.php Link to comment Share on other sites More sharing options...
age3972 Posted February 9, 2015 Author Share Posted February 9, 2015 Hi here is the gshoppingflux.php in notepad thanks adrian gshoppingflux.php Link to comment Share on other sites More sharing options...
helldog2004 Posted February 9, 2015 Share Posted February 9, 2015 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 More sharing options...
agetray Posted February 10, 2015 Share Posted February 10, 2015 problem not resolved i have add 2 images of that code looks ok to me any thing more i can check thanks Link to comment Share on other sites More sharing options...
helldog2004 Posted February 11, 2015 Share Posted February 11, 2015 (edited) 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 February 11, 2015 by helldog2004 (see edit history) Link to comment Share on other sites More sharing options...
agetray Posted February 11, 2015 Share Posted February 11, 2015 Now i get a Warning Warning: Invalid argument supplied for foreach ()in /homepages/18/d240153192/htdocs/tshop/modules/gshoppingflux/gshoppingflux.php on line 147 tnanks Link to comment Share on other sites More sharing options...
helldog2004 Posted February 11, 2015 Share Posted February 11, 2015 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 More sharing options...
agetray Posted February 11, 2015 Share Posted February 11, 2015 All working now thank you for you time on this error Link to comment Share on other sites More sharing options...
helldog2004 Posted February 12, 2015 Share Posted February 12, 2015 I am happy it is solved for you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now