Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42423
Total Topics: 7395
Most Online Today: 105
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 80
Total: 81

Author Topic: display template error  (Read 599 times)

0 Members and 1 Guest are viewing this topic.

Offline Saftek

  • Community Suite Customer
  • Member
  • ******
  • Posts: 41
    • 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: 16086
    • 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: 16086
    • 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: 41
    • 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: 16086
    • 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: 41
    • 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: 16086
    • 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: 41
    • 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
3169 Views
Last post November 25, 2009, 07:43:15 am
by guest3817
2 Replies
6492 Views
Last post January 25, 2010, 09:55:46 pm
by lakestclair
3 Replies
3085 Views
Last post December 08, 2010, 09:24:11 pm
by SMFHacks
3 Replies
2325 Views
Last post June 24, 2013, 08:47:51 pm
by SMFHacks
0 Replies
1940 Views
Last post November 24, 2014, 09:32:17 pm
by shuban

+- Recent Topics

Custom badges by Hatshepsut
August 18, 2022, 10:10:46 pm

Membergroup level by davejo
August 18, 2022, 02:13:49 am

Setting a single free download. by SMFHacks
August 16, 2022, 09:50:04 am

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Powered by EzPortal