Version 2.4.19, PHP error because of an undefined index (Bugs)

by Auge ⌂, Monday, February 04, 2019, 22:33 (1287 days ago) @ Juanma


Hello, I have the following error after updating to this new version.
My version of PHP is 5.4.31. Can the problem lie there?


Even the PHP-version 5.4.31 is truly outdated, this is not the cause of your error. This is the code of the line 93 of functions.inc.php in MLF version 2.4.19:

 if ($current_time > intval($nda[0]['value'])) {

The variable $nda contains the result of a database request, the request for the value of mlf2_temp_infos.next_daily_actions that ssems not to exist in your database table.

Did you install the version 2.4.19 or did you an update from a previous version of My Little Forum? If you have access to your database with a tool like phpMyAdmin (in doubt ask your hosting company) please read the value of the row with the name "next_daily_actions" in the database table "mlf2_temp_infos" and show us the result of your investigation. The begin of the name can differ, if you changed the database prefix (in my example: "mlf2_" in "mlf2_temp_infos") during the installation.

Tschö, Auge

Trenne niemals Müll, denn er hat nur eine Silbe!

Complete thread:

 RSS Feed of thread