Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 365
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 230
Total: 230

Author Topic: Trying to access array offset on null  (Read 21940 times)

0 Members and 1 Guest are viewing this topic.

Trying to access array offset on null
« on: »
I have a User which is flooding my logs with this error :

https://www./index.php?action=gallery;sa=unviewed
/homepages/Sources/GalleryHooks.php (Line 242)

Art des Fehlers: Generell
Fehlermeldung Auswählen
2: Trying to access array offset on null

Line 242
Code: [Select]
$total = $row['total'];
Any hints to solve it please ?

PHP 8.3
« Last Edit: April 09, 2025, 03:21:58 am by Michel68 »

Re: Trying to access array offset on null
« Reply #1 on: »
Try this file copy 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/
Like Like x 1 View List

Re: Trying to access array offset on null
« Reply #2 on: »
Thanks, I was sick and couldn't test it, plus I just had to renew my license. I'll let you know if the problem is resolved.

Re: Trying to access array offset on null
« Reply #3 on: »
It seems the error is gone but a new one is now there  :(

index.php?action=gallery;sa=add2
/Sources/Gallery2.php (Zeile 10901)
2: Undefined variable $lat_seconds

10901

      $d = $lat_degrees + $lat_minutes/60 +  $lat_seconds/3600;



index.php?action=gallery;sa=add2
/Sources/Gallery2.php (Line 10921)

Art des Fehlers: Undefiniert
2: Undefined variable $log_seconds
2: Undefined variable $log_degrees
2: Undefined variable $log_minutes

10921

      $d = $log_degrees + $log_minutes/60 +  $log_seconds/3600;
« Last Edit: April 25, 2025, 02:42:25 am by Michel68 »

Re: Trying to access array offset on null
« Reply #4 on: »
Ok will put this on my list to check out.
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/
Like Like x 1 View List

Re: Trying to access array offset on null
« Reply #5 on: »
Sorry I am getting now more new errors in the log ?

index.php?action=gallery;sa=add2
/Sources/Gallery2.php (Zeile 2353)

Fehlermeldung Auswählen
2: Undefined array key "title"

Line 2353

   $title = $smcFunc['htmlspecialchars']($smcFunc['htmltrim']($_REQUEST['title']),ENT_QUOTES);



index.php?action=gallery;sa=add2
/Sources/Gallery2.php (Zeile 2354)

Art des Fehlers: Undefiniert
2: Undefined array key "descript"

Line 2354

   $description = $smcFunc['htmlspecialchars']($_REQUEST['descript'],ENT_QUOTES);



Re: Trying to access array offset on null
« Reply #6 on: »
Copy to sources folder and see if this helps
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/

Re: Trying to access array offset on null
« Reply #7 on: »
Currently, there are no more errors, but that might change when users upload more pictures again this summer. Thanks in advance.

 

Related Topics

  Subject / Started by Replies Last post
39 Replies
31190 Views
Last post March 27, 2022, 05:51:08 am
by pete
8 Replies
12685 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
11 Replies
40144 Views
Last post July 24, 2025, 01:54:57 pm
by Michael Vail
6 Replies
12582 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
12988 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal