Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11832
Latest: balasahu
New This Month: 7
New This Week: 1
New Today: 1
Stats
Total Posts: 42228
Total Topics: 7368
Most Online Today: 51
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 38
Total: 38

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

0 Members and 1 Guest are viewing this topic.

Offline pete

  • SMF Gallery Pro Customer
  • Member
  • *****
  • Posts: 46
    • 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: 16003
    • 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
  • Member
  • *****
  • Posts: 46
    • 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: 16003
    • 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
  • Member
  • *****
  • Posts: 46
    • 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
  • Member
  • *****
  • Posts: 46
    • 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
  • Member
  • *****
  • Posts: 46
    • 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
  • Member
  • *****
  • Posts: 46
    • 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: 16003
    • 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
  • Member
  • *****
  • Posts: 46
    • 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
  • Member
  • *****
  • Posts: 46
    • 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: 16003
    • 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
  • Member
  • *****
  • Posts: 46
    • 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: 16003
    • 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
  • Member
  • *****
  • Posts: 46
    • 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
0 Replies
5533 Views
Last post May 04, 2007, 04:03:52 am
by dimdom
11 Replies
5849 Views
Last post March 08, 2015, 02:47:50 pm
by SMFHacks
1 Replies
13078 Views
Last post April 21, 2018, 12:04:45 pm
by SMFHacks
4 Replies
160 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
190 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer

+- Recent Topics

Dark background text color help needed by Shades
May 22, 2022, 04:51:25 pm

Database Error During Store Purchase After SMF 2.1 and Store 5.0 Beta Upgrades by Michael Vail
May 20, 2022, 08:58:15 pm

Default License Agreement by SMFHacks
May 18, 2022, 08:18:15 pm

Email Note - Included in order purchase by Shades
May 18, 2022, 02:54:54 pm

[Feature Request] Keywords by Shades
May 18, 2022, 02:20:19 pm

Undefined index: down_path by Shades
May 18, 2022, 10:19:09 am

Delete custom rating and change default icons/change icons back to default? by SMFHacks
May 18, 2022, 10:06:01 am

Thumbnails on topic page not resizing correctly by SMFHacks
May 14, 2022, 10:45:34 pm

Server Issues by PapaFrizArcade
May 12, 2022, 11:50:04 am

Funky Pagination by SMFHacks
May 11, 2022, 11:38:24 pm

Powered by EzPortal