SMFHacks.com

Ad Seller Pro => Support => Topic started by: Saftek on August 22, 2021, 04:33:07 am

Title: display template error
Post 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>
Title: Re: display template error
Post by: SMFHacks on August 22, 2021, 07:39:32 am
Can you attach that file?
Title: Re: display template error
Post by: SMFHacks on August 22, 2021, 01:00:26 pm
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
Title: Re: display template error
Post by: Saftek on August 22, 2021, 03:22:00 pm
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.
Title: Re: display template error
Post by: SMFHacks on August 22, 2021, 03:24:12 pm
Just change this line
Code: [Select]
echo '<div class="',  ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') , '">
To
Code: [Select]
echo '<div class="windowbg2">
Title: Re: display template error
Post by: Saftek on August 22, 2021, 03:52:30 pm
Thanks. Do I still need to uninstall (manually) 3.0.2 to install 3.0.3? 
Title: Re: display template error
Post by: SMFHacks on August 22, 2021, 04:00:47 pm
No. Not in this case cause that was the only template change.
Title: Re: display template error
Post by: Saftek on August 22, 2021, 04:07:09 pm
Thanks.