Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42481
Total Topics: 7409
Most Online Today: 33
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 1632 times)

0 Members and 1 Guest are viewing this topic.

Offline pete

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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: 16112
    • 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: 50
    • 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: 16112
    • 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: 50
    • 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: 50
    • 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: 50
    • 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: 50
    • 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: 16112
    • 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: 50
    • 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: 50
    • 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: 16112
    • 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: 50
    • 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: 16112
    • 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: 50
    • 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
13143 Views
Last post April 21, 2018, 12:04:45 pm
by SMFHacks
4 Replies
389 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
402 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
4 Replies
522 Views
Last post June 01, 2022, 12:48:48 pm
by Michael Vail
6 Replies
420 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek

+- Recent Topics

Delete old file by SMFHacks
October 05, 2022, 08:11:13 am

[Feature Request] Thumbnail on topic list by Shades
October 04, 2022, 11:40:26 am

Undefined index: class_ad_seller by SMFHacks
October 04, 2022, 09:33:36 am

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

Powered by EzPortal