Download & Extend

PHP Notice: Undefined index: shared in language_section.module on line 188

Project:Language Sections
Version:6.x-2.5
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

PHP 5.3 complaining ...

Comments

#1

Is this after a fresh install? Doesn't happen for me (PHP 5.3.6) but possibly some difference in your PHP configuration.

#2

Hi, no, it is not a fresh install of Drupal if this is what you mean. How can I discover what's the difference in PHP configuration?

#3

In default configuration, PHP would not display this error message - http://php.net/manual/en/function.error-reporting.php -

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

So, one way to stop this message from being displayed would be to add error_reporting(E_ALL ^ E_NOTICE); to the end of your settings.php file.

That, said, I should probably change the module so that this warning doesn't occur. I'll add that to the todo list :)

#4

Many thanks and I agree that you probably need to clean up the code a bit in this case.