2 warnings in portal.php
#1
original thread: https://community.mybb.com/thread-241797.html

1)
Quote:<error>
<dateline>1726085583</dateline>
<script>portal.php(762) : eval()'d code</script>
<line>23</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined variable $multipage</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/portal.php(762) : eval()'d code:23]
#2 eval() called at [/portal.php:762]
</back_trace>
</error>

occurs when announcements for the portal are disabled

solution: define variable

Change line 444 in portal.php
from
$announcements = '';
to
$announcements = $multipage = '';


2)

Quote:<error>
<dateline>1726294432</dateline>
<script>portal.php</script>
<line>717</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Undefined variable $tcount</message>
<back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153]
#1 errorHandler->error_callback() called at [/portal.php:717]
</back_trace>
</error>

solution: define variable

put
$tcount = 0;

before line 714
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != '')
No support via PM, email, telephone, home visit, Discord, Telegram, WhatsApp and other useless tools
Reply
#2
https://github.com/mybb/mybb/issues/4851
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)