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: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 199
Total: 199

Author Topic: 8: Trying to access array offset on value of type null  (Read 3773 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: 16452
    • 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: 16452
    • 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: 16452
    • 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: 16452
    • 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: 16452
    • 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
1241 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
987 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
8 Replies
2002 Views
Last post November 26, 2022, 12:07:42 pm
by Michael Vail
6 Replies
1677 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
1899 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 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