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: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 42472
Total Topics: 7406
Most Online Today: 127
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 93
Total: 93

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16109
    • View Profile
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 #31 on: February 09, 2022, 08:36:17 am »
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 #32 on: February 15, 2022, 02:43:25 am »
I don't know if this error message has anything to do with Gallery Pro, but it does occur sometimes when guests (machines?) open an image. I'm not getting a reply from the snowflake mod help forum. You may be able to help?

https://bsac10c11c12.co.uk/smf/index.php?PHPSESSID=b9f061190472c83f5bd0a680f65e5bb9&action=dlattach;topic=11051.0;attach=32078;image;ts=1553017207

8: Trying to access array offset on value of type null

/smf/Sources/snowflakesMobileDetect.php
Line: 1065

==>1065:                 if (is_array($matchType['matches'])) {

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16109
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #33 on: February 15, 2022, 07:31:44 am »
No related to the galley but you can add before that line this code
Code: [Select]
if (empty($matchType['matches']))
$matchType['matches'] = array();
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 #34 on: February 15, 2022, 08:27:48 am »
Thank you  :)

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 #35 on: March 25, 2022, 05:27:11 am »
I'm still getting the odd error message relating to Gallery2 that you might be able to help me with.

/smf/index.php?pretty;action=gallery&sa=search2
8: Undefined index: orderby
/public_html/smf/Sources/Gallery2.php
Line: 5464

==>5464:            $orderby = $_REQUEST['orderby'];

/smf/index.php?pretty;action=gallery&sa=search2
8: Undefined index: sortby
/smf/Sources/Gallery2.php
Line: 5463

==>5463:            $sortby = $_REQUEST['sortby'];

/smf/index.php?pretty;action=gallery&sa=search2
8: Undefined index: gallerytype
/smf/Sources/Gallery2.php
Line: 5461

==>5461:            $gallerytype = $_REQUEST['gallerytype'];

/smf/index.php?pretty;action=gallery&sa=search2
8: Undefined index: mediatype
/smf/Sources/Gallery2.php
Line: 5460

==>5460:            $mediatype = $_REQUEST['mediatype'];

Many thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16109
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #36 on: March 25, 2022, 10:24:38 pm »
That should be fixed I think already.
If not here is the gallery2.php file to your sources folder.
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 #37 on: March 26, 2022, 02:10:07 pm »
Thanks. I have updated that file now.

Could the same apply to this error in the UserGallery.php?

/smf/index.php?pretty;action=gallery&su=user;u=868
8: Trying to access array offset on value of type null
/smf/Sources/UserGallery2.php
Line: 477

==>477:            $context['usergallery_name'] = $row['real_name'];

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16109
    • View Profile
Re: 8: Trying to access array offset on value of type null
« Reply #38 on: March 26, 2022, 07:47:54 pm »
Copy to sources folder.
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 #39 on: March 27, 2022, 05:51:08 am »
Thank you :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
13142 Views
Last post April 21, 2018, 12:04:45 pm
by SMFHacks
4 Replies
378 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
400 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
4 Replies
511 Views
Last post June 01, 2022, 12:48:48 pm
by Michael Vail
6 Replies
413 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek

+- Recent Topics

"Custom title" badge by SMFHacks
September 24, 2022, 07:09:22 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

[Feature Request] Admin Sales Alert by Shades
August 25, 2022, 06:41:00 pm

Portal Block by SMFHacks
August 23, 2022, 12:42:22 pm

Question about undoing a rating by SMFHacks
August 22, 2022, 04:31:50 pm

Powered by EzPortal