Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4293
Latest: siriusblack
New This Month: 2
New This Week: 1
New Today: 0
Stats
Total Posts: 43802
Total Topics: 7605
Most Online Today: 473
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 234
Total: 234

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

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 182
    • View Profile
Trying to access array offset on null
« on: April 09, 2025, 03:10:10 am »
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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16678
    • View Profile
Re: Trying to access array offset on null
« Reply #1 on: April 09, 2025, 07:39:10 am »
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

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 182
    • View Profile
Re: Trying to access array offset on null
« Reply #2 on: April 22, 2025, 11:47:22 pm »
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.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 182
    • View Profile
Re: Trying to access array offset on null
« Reply #3 on: April 25, 2025, 02:40:38 am »
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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16678
    • View Profile
Re: Trying to access array offset on null
« Reply #4 on: April 25, 2025, 05:10:50 am »
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

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 182
    • View Profile
Re: Trying to access array offset on null
« Reply #5 on: April 27, 2025, 03:01:24 am »
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);



Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16678
    • View Profile
Re: Trying to access array offset on null
« Reply #6 on: April 30, 2025, 10:30:26 am »
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/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 182
    • View Profile
Re: Trying to access array offset on null
« Reply #7 on: May 05, 2025, 08:47:34 am »
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
5799 Views
Last post March 27, 2022, 05:51:08 am
by pete
8 Replies
1599 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
8 Replies
2587 Views
Last post November 26, 2022, 12:07:42 pm
by Michael Vail
6 Replies
2311 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
2598 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

SMF Classifieds 6.0 by SMFHacks
June 18, 2025, 08:26:33 pm

The path must not be empty - Bulk Uploader Issues by SMFHacks
June 13, 2025, 09:03:52 pm

A day? by davejo
June 11, 2025, 04:14:35 pm

Dual 'Upload Url' by davejo
June 06, 2025, 04:27:45 pm

Automatic Sorting of Categories by Kiwi
June 03, 2025, 10:32:32 pm

[Mod]Cloudflare Turnstile for SMF by SMFHacks
May 08, 2025, 10:08:43 am

Disable "Notify me of Comments feature" by Kiwi
May 08, 2025, 02:04:16 am

Trying to access array offset on null by Michel68
May 05, 2025, 08:47:34 am

Default [Additional] Membergroups upon Registration by SMFHacks
April 30, 2025, 10:22:52 am

Sorted FTP Import Directory by SMFHacks
April 25, 2025, 05:11:22 am

Powered by EzPortal