Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8951 now.

trigger_error('NO_FORUM') - Fatal Error (fix in progress)

Since updating to 3.0.6 I have noticed these errors appear in my server's error logs occasionally:

PHP Warning: strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /*****/forum/includes/session.php on line 2164
PHP Fatal error: template->_tpl_load_file(): File /message_body.html does not exist or is empty in /h*****/forum/includes/functions_template.php on line 63

I have not been able to determine the cause of the problems, but I was able to get a backtrace:

BACKTRACE

FILE: includes/functions.php
LINE: 4093
CALL: user->format_date()

FILE: includes/functions.php
LINE: 3630
CALL: page_header()

FILE:
LINE:
CALL: msg_handler()

FILE: posting.php
LINE: 65
CALL: trigger_error()

Line 4093 in functions.php:
'CURRENT_TIME' => sprintf($user->lang['CURRENT_TIME'], $user->format_date(time(), false, true)),


Line 3630 in functions.php is from the E_USER_NOTICE case:
page_header($msg_title, false);


Line 65 in posting.php:
trigger_error('NO_FORUM');

Comments / History

Posted by VSE on Dec 8th 2009, 21:46

was just able to create the error on my own...

If you are logged out, but go to the posting url anyway, ie:

http://yourforum.com/posting.php?mode=reply&f=1
or if a forum in the url does not exist:
http://yourforum.com/posting.php?mode=post&f=100

You get a blank page and the error is generated

Edited post #201575

Action performed by VSE on Dec 8th 2009, 21:46

Edited post #201575

Action performed by VSE on Dec 8th 2009, 21:48

Posted by VSE on Dec 8th 2009, 22:20

OK, finally was able to discover that these errors occur only while using a CAPTCHA plug-in...

The above errors were reproducible when using
Fancy Jquery Captcha
Sortables Captcha
Q&A Captcha

So far, the default GD captchas seems to work good.

So the problem seems to lie with the captcha plugin system?

Marked ticket #54995 as duplicate of this ticket

Action performed by ToonArmy (Development Team Member) on Dec 8th 2009, 22:40

Linked ticket with changeset: r10306

Action performed by ToonArmy (Development Team Member) on Dec 8th 2009, 22:45

Changed ticket status from "New" to "Fix in progress"

Action performed by ToonArmy (Development Team Member) on Dec 8th 2009, 22:45

Assigned ticket to group "Development Team"

Action performed by ToonArmy (Development Team Member) on Dec 8th 2009, 22:45

Posted by VSE on Dec 9th 2009, 00:37

I tested the changes in Revision 10306 on my test board and they seem to have solved the problem.

Posted by bantu (3.0 Release Manager) on Jan 16th 2010, 20:40

This error also happens when for example a modification calls $user->add_lang() before $user->setup() is called.

Ticket details

Duplicates of this ticket

Related SVN changesets