Jump to content

Recommended Posts

Posted

I am a bit confused, because I don't know how to solve this problem.

When I install the module Languages Support - Page Namesmy 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

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

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

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