MyBB Community Forums

Full Version: PHP8.1.13 > Error message when calling an online user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyBB: 1.8.33
PHP: 8.1.13

hello,
problem to:
URL/member.php?action=profile&uid=x

If you click on a user who is OFFline, the user data is displayed.
If you click on a user who is ONline, the user data will not be displayed.
> a white screen appears with the error message
502 Service not available

The server is temporarily unable to serve your request due to maintenance outages or capacity issues. Please try again later.
The MyBB error log says:
<error>
<dateline>1673177384</dateline>
<script>global.php(522) : eval()'d code</script>
<line>6</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined property: MyLanguage::$userbox_link_templatesave_admins</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/global.php(522) : eval()'d code:6]
#2 eval() called at [/global.php:522]
#3 require_once() called at [/member.php:30]
</back_trace>
</error>

<error>
<dateline>1673177384</dateline>
<script>global.php(558) : eval()'d code</script>
<line>17</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined property: MyLanguage::$userbox_link_evaluation_term_admin_1</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/global.php(558) : eval()'d code:17]
#2 eval() called at [/global.php:558]
#3 require_once() called at [/member.php:30]
</back_trace>
</error>

If the same operation is performed on PHP 7.4.x, everything works fine.

Does anyone have any suggestions/ideas/knowledge on how to fix the problem?

Thanks in advance for constructive feedback.
The userbox_link_templatesave_admins language string is missing. It looks like a template change has been made to header_welcomeblock_member_moderator, check the template for changes, you'll probably ned to remove the userbox_link_templatesave_admins language variable and ask the plugin author for an update to the plugin.
Thanks for the hint.
I entered the missing language variables, these error messages are gone now.

However, the real problem of how still persists.
Nothing is saved in the MyBB- and PHP error logs.