Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 129
Total: 129

Author Topic: display template error  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

Offline Saftek

  • Jr. Member
  • **
  • Posts: 52
    • 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: 16452
    • 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: 16452
    • 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

  • Jr. Member
  • **
  • Posts: 52
    • 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: 16452
    • 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

  • Jr. Member
  • **
  • Posts: 52
    • 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: 16452
    • 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

  • Jr. Member
  • **
  • Posts: 52
    • 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
3878 Views
Last post November 25, 2009, 07:43:15 am
by guest3817
2 Replies
7378 Views
Last post January 25, 2010, 09:55:46 pm
by lakestclair
3 Replies
4090 Views
Last post December 08, 2010, 09:24:11 pm
by SMFHacks
3 Replies
3383 Views
Last post June 24, 2013, 08:47:51 pm
by SMFHacks
0 Replies
2647 Views
Last post November 24, 2014, 09:32:17 pm
by shuban

+- Recent Topics

Please Help! by SMFHacks
Today at 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal