SMFHacks.com
Ad Seller Pro => Support => Topic started by: Saftek on August 22, 2021, 04:33:07 am
-
Ad seller pro 3.0.2 is throwing this error repeatedly. Parsed the code and verified that bit is correct... using php 7.4, smf 2.0.18.
Trying to access array offset on value of type bool
Themes/default/Display.template.php
Line: 767
// Begin Ad Seller Pro Location - After Last Post
This is the line 767 echo '<div class="', ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') , '">
<span class="topslice"><span></span></span>
-
Can you attach that file?
-
3.0.3
!Fixed email admins function for SMF 2.1.x
!Fixed null access php 7.4 for after last post location. requires uninstall then install of new version
-
Attached.
Get a LOT of error/fail warnings when I try to uninstall the current version. I'll have to parse again and delete the added bits.
Thanks for your help. Cheers.
-
Just change this line
echo '<div class="', ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') , '">
To
echo '<div class="windowbg2">
-
Thanks. Do I still need to uninstall (manually) 3.0.2 to install 3.0.3?
-
No. Not in this case cause that was the only template change.
-
Thanks.