antoiba86 Posted September 23, 2017 Posted September 23, 2017 I am a bit confused, because I don't know how to solve this problem. When I install the module Languages Support - Page Names, my web falls apart. I have all the necessary modules installed as Language support for example. This is the error I get in the admin panel. Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 107 Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 198 Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 1011 Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 1011 Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 1041 And this in the front-end. Warning: Invalid argument supplied for foreach() in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 107 Fatal error: Call to a member function get() on null in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 605 Fatal error: Call to a member function get() on null in /hosting/www/antoibaprogramming.com/public/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 605
abdus Posted September 23, 2017 Posted September 23, 2017 16 minutes ago, antoiba86 said: Invalid argument supplied for foreach() At line 107 module iterates over $wire->languages, if it's not an iterable object, i.e. null, you'll get this error. If you can, try uninstalling all language modules, then reinstall starting from language support module.
antoiba86 Posted September 23, 2017 Author Posted September 23, 2017 2 hours ago, abdus said: At line 107 module iterates over $wire->languages, if it's not an iterable object, i.e. null, you'll get this error. If you can, try uninstalling all language modules, then reinstall starting from language support module. I did as you say, but now I have a new error when trying to install from scratch. Quote Session: Module reported error during install (LanguageSupport): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'languages-22' for key 'name_parent_id' And I see that it is a common problem.
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