So many WARNING, PHP-NOTICE and PHP-DEPRECATION in log files

Hi all.

I’m using FreePBX 12.0.76.3 with Asterisk Ver. 11.22.0 (up-to-date) and raspbx-upgrade --> Installed upgrade: 23

After browsing logs files I found in “/var/log/asterisk/freepbx.log” so many PHP-DEPRECATION_WARNING, PHP-NOTICE and WARNING.
Like :
[2016-Jul-13 07:46:17] [PHP-NOTICE] (/var/www/html/admin/modules/customcontexts/functions.inc.php:232) - Undefined offse t: 0 [2016-Jul-13 07:46:17] [PHP-NOTICE] (/var/www/html/admin/modules/customcontexts/functions.inc.php:232) - Undefined offse t: 0 [2016-Jul-13 07:46:17] [PHP-NOTICE] (/var/www/html/admin/modules/customcontexts/functions.inc.php:232) - Undefined offse t: 0 [2016-Jul-13 07:46:17] [PHP-NOTICE] (/var/www/html/admin/modules/customcontexts/functions.inc.php:232) - Undefined offse t: 0 [2016-Jul-13 07:46:17] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42 [2016-Jul-13 07:46:17] [PHP-NOTICE] (/var/www/html/admin/modules/infoservices/functions.inc.php:141) - Undefined variabl e: id
or

[2016-Jul-13 07:46:20] [PHP-DEPRECATION_WARNING] (/var/www/html/admin/libraries/extensions.class.php:614) - Non-static method extensions::gotoEmpty() should not be called statically, assuming $this from incompatible context [2016-Jul-13 07:46:20] [PHP-DEPRECATION_WARNING] (/var/www/html/admin/libraries/extensions.class.php:614) - Non-static method extensions::gotoEmpty() should not be called statically, assuming $this from incompatible context [2016-Jul-13 07:46:20] [PHP-DEPRECATION_WARNING] (/var/www/html/admin/libraries/extensions.class.php:614) - Non-static method extensions::gotoEmpty() should not be called statically, assuming $this from incompatible context

or

[2016-Jul-11 16:55:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42 [2016-Jul-11 16:55:13] [PHP-NOTICE] (/var/www/html/admin/modules/core/page.trunks.php:517) - Undefined variable: pr_tech [2016-Jul-11 16:55:13] [PHP-NOTICE] (/var/www/html/admin/modules/core/page.trunks.php:519) - Undefined variable: data [2016-Jul-11 16:55:13] [PHP-NOTICE] (/var/www/html/admin/modules/core/page.trunks.php:532) - Undefined variable: helptext [2016-Jul-11 16:55:13] [PHP-NOTICE] (/var/www/html/admin/modules/core/views/trunks/trunk_header.php:1) - Undefined variable: upper_tech

This creates a lot of write trafic in log files and is not clean !

Have you migrated you Freepbx from any old version? On which distribution is you Freepbx running?

No I don’t… Or do not remember !

My pbx is running on a raspberry.
Linux raspbx 4.1.15-v7+ #831 SMP Tue Jan 19 18:39:46 GMT 2016 armv7l GNU/Linux

Ok, that’s challenging. Has it ever run on raspberry? Which installation distro are you yousing and have you installed the latest PHP on your distro?

Yes !
It is a distro for raspberry called raspbian.
Its a package containing linux and Freepbx. One can download an img file for SD card and voila !

I ran a yum update but nothing new !

PHP 5.6.22-0+deb8u1 (cli) (built: Jun 14 2016 18:21:48)

Laurent.

Sorry I’m asking. I know raspberry but there are several distro’s out there so just wanted to be sure. Basically what it says is that you functions.inc.php is expecting a value in line 232 which is not provided. Hence my question if you have upgraded which could explain this behavior.

Line 7 could be ignored and you could exclude it from the configuration. The other lines are expecting a value I’m not sure about. Could you give me a dump of your file functions.inc.php?

I sent you directly the link for the file…

Please upgrade to FreePBX 13. A lot of these are fixed. If, after you have upgraded, you’re still finding issues, please report them.

Hi.

Done !
I will then check.

Regards,
Laurent.