e107help.org Q&A
0 like 0 dislike

Fatal error: Uncaught Error: Call to undefined function mysql_insert_id() in /usr/www/taskforce13tsw/501st/e107/e107_plugins/calendar_menu/event.php:163 Stack trace: #0 {main} thrown in /usr/www/taskforce13tsw/501st/e107/e107_plugins/calendar_menu/event.php on line 163

 

Went to add an new event, got this message instead - used to work, but I guess something changed.

e107 version e107 2.1.7
closed with the note: tgtje provided the anwser.
asked in Plugins by (438 points) 5 12 15
closed by
Yow 5 years file untouched... extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0 No solution, but hat might be it... (if you are up to it : 1 of these 2 : mysqli_insert_id() or PDO::lastInsertId() No clue iff it will work....

Odd cause a few months ago it was working, must be my host provider updated the PHP to 7.... I'm gonna try the PDO and see if that works.

 

Fatal error: Uncaught Error: Non-static method PDO::lastInsertId() cannot be called statically in /usr/www/taskforce13tsw/501st/e107/e107_plugins/calendar_menu/event.php:164 Stack trace: #0 {main} thrown in /usr/www/taskforce13tsw/501st/e107/e107_plugins/calendar_menu/event.php on line 164

 

mysqli_insert_id() seems to work - no Fatal Error - funny part is, even with the errors, the events still got added to the database.

rica-carv has working on new version, has updated this plugin
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
781 questions
1,189 answers
2,035 comments
2,130 users