Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4206
Latest: jagwire
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 42703
Total Topics: 7441
Most Online Today: 82
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 48
Total: 49

Author Topic: display template error  (Read 663 times)

0 Members and 1 Guest are viewing this topic.

Offline Saftek

  • Community Suite Customer
  • Member
  • ******
  • Posts: 45
    • View Profile
display template error
« 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>
« Last Edit: August 22, 2021, 04:49:55 am by Saftek »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16197
    • View Profile
Re: display template error
« Reply #1 on: August 22, 2021, 07:39:32 am »
Can you attach that file?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16197
    • View Profile
Re: display template error
« Reply #2 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Saftek

  • Community Suite Customer
  • Member
  • ******
  • Posts: 45
    • View Profile
Re: display template error
« Reply #3 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16197
    • View Profile
Re: display template error
« Reply #4 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">
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Saftek

  • Community Suite Customer
  • Member
  • ******
  • Posts: 45
    • View Profile
Re: display template error
« Reply #5 on: August 22, 2021, 03:52:30 pm »
Thanks. Do I still need to uninstall (manually) 3.0.2 to install 3.0.3? 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16197
    • View Profile
Re: display template error
« Reply #6 on: August 22, 2021, 04:00:47 pm »
No. Not in this case cause that was the only template change.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Saftek

  • Community Suite Customer
  • Member
  • ******
  • Posts: 45
    • View Profile
Re: display template error
« Reply #7 on: August 22, 2021, 04:07:09 pm »
Thanks.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3318 Views
Last post November 25, 2009, 07:43:15 am
by guest3817
2 Replies
6557 Views
Last post January 25, 2010, 09:55:46 pm
by lakestclair
3 Replies
3164 Views
Last post December 08, 2010, 09:24:11 pm
by SMFHacks
3 Replies
2816 Views
Last post June 24, 2013, 08:47:51 pm
by SMFHacks
0 Replies
1975 Views
Last post November 24, 2014, 09:32:17 pm
by shuban

+- Recent Topics

Unlimited ending time by Saftek
Today at 10:06:26 pm

Converting from Aeva Media by ivanr
January 28, 2023, 10:09:42 am

Pretty URL's Pro rewriting URLs by [chrisB]
January 28, 2023, 04:50:20 am

[Mod] Post Scheduler by bayonetbrant
January 23, 2023, 02:24:09 pm

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
January 22, 2023, 10:50:23 pm

[Request] Future consideration by [chrisB]
January 18, 2023, 08:42:53 am

Pretty Urls extras by SMFHacks
January 16, 2023, 04:00:57 pm

I don't think its installed correctly by SMFHacks
January 10, 2023, 05:56:21 pm

Errors with SMF2WPBridge by [chrisB]
December 31, 2022, 01:36:15 pm

How are ads sourced by ajac63
December 29, 2022, 04:15:27 am

Powered by EzPortal