Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4216
Latest: ezycc
New This Month: 7
New This Week: 2
New Today: 1
Stats
Total Posts: 42796
Total Topics: 7456
Most Online Today: 57
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 16
Total: 16

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

0 Members and 1 Guest are viewing this topic.

Offline pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 54
    • View Profile
8: Trying to access array offset on value of type null
« on: January 22, 2022, 07:23:14 am »
Since updating my php to 7.4 I get error messages

 8: Trying to access array offset on value of type null
/smf/Sources/Gallery2.php
Line: 1472

1471:            'password' => $row4['password'],
==>1472:            'private' => $row4['private'],

I'm currently using Gallery Pro Version 8.0.6

Any ideas why?

Thanks


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #1 on: January 22, 2022, 07:31:37 am »
Was fixed in a later version
Find
Code: [Select]
$context['gallery_user_settings'] = array(
'password' => $row4['password'],
'private' => $row4['private'],
);
before it add
Code: [Select]
if (empty($row4['id_member']))
{
$row4['password'] = '';
$row4['private'] = '';
}

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 #2 on: January 22, 2022, 08:08:55 am »
Thanks. I did that and now getting

8192: implode(): Passing glue string after array is deprecated. Swap the parameters
/smf/Sources/Gallery2.php

==>15016:         $groupsdata = implode($user_info['groups'], ',');

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #3 on: January 22, 2022, 08:15:01 am »
Fixed in new version as well change
$groupsdata = implode($user_info['groups'], ',');
to
$groupsdata = implode(',',$user_info['groups']);
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 #4 on: January 22, 2022, 08:18:25 am »
That's great. Thanks :)

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 #5 on: January 22, 2022, 09:23:01 am »
One more, but we're getting there :)

8: Trying to access array offset on value of type null
smf/Sources/Gallery2.php
Line: 1475

==>1475:
            'private' => $row4['private'],

==>1474:            'password' => $row4['password'],

==>1471:            'private' => $row4['private'],

==>1470:            'password' => $row4['password'],

Thanks

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 #6 on: January 22, 2022, 09:39:20 am »
Sorry, think I've got it. I forgot save changes for your the first instruction on my live site. Test site was fine. I'll keep testing. Many thanks
Pete

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 #7 on: January 22, 2022, 02:34:12 pm »
Still not quite fixed. New error message


8192: implode(): Passing glue string after array is deprecated. Swap the parameters

/smf/Sources/Gallery2.php
Line: 11080

==>11080:         $groupsdata = implode($user_info['groups'],',');

Is there an easy fix for this one?

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #8 on: January 22, 2022, 02:38:48 pm »
Same fix as the one above.
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 #9 on: January 22, 2022, 03:00:34 pm »
Thanks. Didn't notice there were 4 entries to be updated. Fingers crossed all fixed now.

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 #10 on: January 27, 2022, 03:11:34 am »
Now getting these

8: Trying to access array offset on value of type null  /smf/Sources/UserGallery2.php
Line: 1701
==>1701:                  'name' => $row1['title']

/smf/Sources/UserGallery2.php
Line: 1697
==>1697:      UserParentLink($row1['ID_PARENT'], $memberID);

/smf/Sources/UserGallery2.php
Line: 211
==>211:               'name' => $row1['real_name'],

/smf/Sources/UserGallery2.php
Line: 198
==>198:         $context['gallery_cat_name'] = $row1['title'];

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

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

I really appreciate your help.






Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #11 on: January 27, 2022, 09:21:28 am »
There is going to be a bunch of these errors in the older version
The new update which can be bought if your license expired $25
https://www.smfhacks.com/index.php?action=license
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 #12 on: January 27, 2022, 10:00:53 am »
Ok. I've done that. Now on 9.0b. Hopefully all will be sorted now. Thank you

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16235
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #13 on: January 27, 2022, 10:27:28 pm »
Thanks yeah should fix any of those issues plus several new features too!
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 #14 on: January 29, 2022, 03:40:27 am »
I'm still getting these error messages, but as they are related to attachments, they are probably nothing to do with Gallery Pro, more likely the Automatic Rotation and Resize mod. Any idea? Thanks

https://bsac10c11c12.co.uk/smf/index.php?action=dlattach;topic=8074.0;attach=28967;image;ts=15470303442:
Cannot modify header information - headers already sent
File: /smf/Sources/Subs.php
Line: 3411

==>3411:      header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));

 

Related Topics

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

+- Recent Topics

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

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

Powered by EzPortal