Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4219
Latest: Toddie
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42850
Total Topics: 7463
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 34
Total: 34

Author Topic: 8: Trying to access array offset on value of type null  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #15 on: January 29, 2022, 11:40:51 am »
Not from the Gallery but I would need to see that Subs.php That errors means something is outputted before the headers is sent.
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #16 on: January 29, 2022, 11:47:39 am »
Would you mind checking it out for me? If so, how would I send you my Subs.php? Many thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #17 on: January 29, 2022, 11:53:41 am »
Just attach it to the post an an attachment
« Last Edit: January 29, 2022, 12:40:12 pm by SMFHacks »
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #18 on: January 29, 2022, 12:43:40 pm »
Hope this works. Thanks for your help

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #19 on: January 29, 2022, 01:03:21 pm »
Unfortunately doesn't give me enough information.
That error points to the line where the template header is loaded. it shouldn't be called though when displaying an attachment.
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #20 on: January 29, 2022, 01:09:46 pm »
I appreciate you trying for me. Everything seems to be working fine, and I don't get the error message often, so maybe best to just ignore it.

Offline pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #21 on: February 08, 2022, 08:22:16 am »
Everything has been running fine since updating to 9.0b, but now I'm getting these errors. Would these have anything to do with settings? I haven't changed anything since the update.

8: Trying to access array offset on value of type null
 fileFile: smf/Sources/UserGallery2.php

 Lines 200,201,202,215,1701,1705

==>200:         $context['gallery_sortby'] = $row1['sortby'];

==>201:         $context['gallery_orderby'] = $row1['orderby'];

==>202:         $context['gallery_cat_name'] = $row1['title'];

==>215:               'name' => $row1['real_name'],

==>1701:      UserParentLink($row1['ID_PARENT'], $memberID);

==>1705:                  'name' => $row1['title']

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #22 on: February 08, 2022, 08:57:36 am »
No, that is one I would need to look into.
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #23 on: February 08, 2022, 09:16:41 am »
Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #24 on: February 08, 2022, 07:41:48 pm »
Fixed

9.0.1
+Cleaned up the stats page for SMF 2.1
!Fixed bug with updating topic/post if you using the image editor.
!Fixed some array access variables for new php version in user galleries
!Fixed the increase post count setting on bulk picture uploads.
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #25 on: February 09, 2022, 06:58:18 am »
I've updated to 9.0.1 on my test site, now I'm getting the attached message when trying to view a members album

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #26 on: February 09, 2022, 07:00:43 am »
Had one typo copy to your sources folder
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #27 on: February 09, 2022, 07:07:35 am »
Thanks. That's sorted it. I'll download the corrected version to put on my live site

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16256
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #28 on: February 09, 2022, 07:56:53 am »
Updated main zip
9.0.1a
One hotfix for user galleries.
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 pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #29 on: February 09, 2022, 08:10:30 am »
I'm spending far too long trying to find the update zip, I found it earlier, but now can't. Where do I find it?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
13193 Views
Last post April 21, 2018, 12:04:45 pm
by SMFHacks
4 Replies
539 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
584 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
8 Replies
920 Views
Last post November 26, 2022, 12:07:42 pm
by Michael Vail
6 Replies
610 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek

+- Recent Topics

Question on Completed Listing & Reserve Price by SMFHacks
Today at 01:43:19 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Permissions query by davejo
March 26, 2023, 04:43:48 am

Powered by EzPortal