MyBB Community Forums

Full Version: Warnings under PHP 8.x when guests reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since PHP 8.x some warnings occur in newreply.php and /inc/functions.php when guests want to reply.

<error>
   <dateline>1713388086</dateline>
    <script>inc/functions.php</script>
    <line>3859</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Undefined array key "sourceeditor"</message>
    <back_trace>#0  errorHandler->error() called at [/inc/class_error.php:153]
#1  errorHandler->error_callback() called at [/inc/functions.php:3859]
#2  build_mycode_inserter() called at [/newreply.php:147]
</back_trace>
</error>

<error>
    <dateline>1713388086</dateline>
    <script>inc/functions.php</script>
    <line>3882</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Undefined array key "subscriptionmethod"</message>
    <back_trace>#0  errorHandler->error() called at [/inc/class_error.php:153]
#1  errorHandler->error_callback() called at [/inc/functions.php:3882]
#2  get_subscription_method() called at [/newreply.php:921]
</back_trace>
</error>

<error>
    <dateline>1713388086</dateline>
    <script>newreply.php(1516) : eval()'d code</script>
    <line>45</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Undefined variable $savedraftbutton</message>
    <back_trace>#0  errorHandler->error() called at [/inc/class_error.php:153]
#1  errorHandler->error_callback() called at [/newreply.php(1516) : eval()'d code:45]
#2  eval() called at [/newreply.php:1516]
</back_trace>
</error>


For a quick workaround see
https://www.mybb.de/forum/thread-39122-p...#pid256052
and the following.