RC1: Call to undefined function loadMessageRequest() June 21, 2014, 01:24:21 pm So I just followed the download link to the RC1 and I grabbed the tar.gz source code version. I extracted it into a new directory, copied over Settings.php and Settings_bak.php from my working forum and then renamed the directory to be the same. Immediately hit a nasty bug that I cannot view messages.I getPHP Fatal error: Call to undefined function loadMessageRequest() in /var/www/forum/sources/controllers/Display.controller.php on line 574, referer: ...I added an unconditional require_once(SUBSDIR . '/Messages.subs.php'); and it's working now.Not sure why I'm hitting this and it didn't get caught. I removed all mods from my forum before moving to the rc1 files.
Re: RC1: Call to undefined function loadMessageRequest() Reply #1 – June 21, 2014, 01:29:03 pm The only load of Messages.subs.php is in thisCode: [Select] if (!empty($modSettings['oldTopicDays'])) { require_once(SUBSDIR . '/Messages.subs.php'); $mgsOptions = basicMessageInfo($topicinfo['id_last_msg'], true); $context['oldTopicError'] = $mgsOptions['poster_time'] + $modSettings['oldTopicDays'] * 86400 < time() && empty($topicinfo['is_sticky']); }Well my modSettings doesn't have oldTopicDays so that code doesn't get called.
Re: RC1: Call to undefined function loadMessageRequest() Reply #2 – June 21, 2014, 02:08:36 pm That's indeed a bug... and guess what?It's my fault! LOLAt lest it should be:Code: [Select] require_once(SUBSDIR . '/Messages.subs.php'); if (!empty($modSettings['oldTopicDays'])) { $mgsOptions = basicMessageInfo($topicinfo['id_last_msg'], true); $context['oldTopicError'] = $mgsOptions['poster_time'] + $modSettings['oldTopicDays'] * 86400 < time() && empty($topicinfo['is_sticky']); }
Re: RC1: Call to undefined function loadMessageRequest() Reply #3 – June 21, 2014, 03:47:49 pm https://github.com/emanuele45/Dialogo/commit/7c83860d6f8ad790c76b2d53b26cb6caf86d8a6d