Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 295
Total: 295

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

0 Members and 1 Guest are viewing this topic.

Offline pete

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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

  • 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

  • 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

  • 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: 16436
    • 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

  • 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

  • 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: 16436
    • 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

  • 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: 16436
    • 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

  • 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
4 Replies
1178 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
940 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
8 Replies
1931 Views
Last post November 26, 2022, 12:07:42 pm
by Michael Vail
6 Replies
1617 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
1826 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal