Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4229
Latest: Ghost
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43080
Total Topics: 7493
Most Online Today: 82
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 70
Total: 70

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16356
    • 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: 54
    • 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: 54
    • 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: 16356
    • 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: 54
    • 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: 54
    • 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: 16356
    • 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: 54
    • 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: 16356
    • 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: 54
    • 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
4 Replies
677 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
703 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
8 Replies
1080 Views
Last post November 26, 2022, 12:07:42 pm
by Michael Vail
6 Replies
771 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
497 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

Version 6.1.6 issues by SMFHacks
September 30, 2023, 07:54:52 am

Follow / Follower Mod? by SMFHacks
September 23, 2023, 08:44:44 am

Looking for a good video player by replayuk
September 23, 2023, 12:17:39 am

[Mod]Discord Web Hooks by SMFHacks
September 22, 2023, 03:57:28 pm

SMF 2.1.4 Search by Anmer
September 22, 2023, 01:55:15 pm

Error in thise mode by Ghost
September 15, 2023, 08:42:24 am

Gallery Selection List Order by mickjav
September 07, 2023, 12:46:31 pm

[Mod]Tidy Child Boards 2.0 by Norwinjose
September 02, 2023, 11:42:54 am

PrettyUrls SEO Pro: Unable to submit sitemap to google search conmsole by SMFHacks
August 31, 2023, 10:55:22 am

PrettyURL - SEO4SMF Rewrites? by SMFHacks
August 28, 2023, 06:35:33 pm

Powered by EzPortal