Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4301
Latest: Bolon377
New This Month: 9
New This Week: 4
New Today: 1
Stats
Total Posts: 43801
Total Topics: 7605
Most Online Today: 561
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 47
Total: 47

Author Topic: SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null  (Read 2552 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
Hello,

Below are some additional errors I'm experiencing since upgrading to SMF Store 5.0 Beta. Hoping for some help when you have some free time.

Thank you!
Michael

Error message #1
Guest
216.244.66.201
226577804f210f8608ea99cf1631251e
https://www.sonomacountydsa.org/forums/index.php?action=store;sa=changeqty;id=18;qty=1;code=
/home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php (Line 6495)
Type of error: General

BACKTRACE INFORMATION
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php
Line
6495
URL of page causing the error
https://www.sonomacountydsa.org/forums/index.php?action=store;sa=changeqty;id=18;qty=1;code=
Backtrace information
#0: smf_error_handler()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php on line 6495
#1: template_changeqty()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Load.php on line 2765
#2: loadSubTemplate()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Subs.php on line 4167
#3: obExit()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/index.php on line 194

Error message #2
Guest
216.244.66.201
226577804f210f8608ea99cf1631251e
https://www.sonomacountydsa.org/forums/index.php?action=store;sa=changeqty;id=18;qty=1;code=
/home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php (Line 6490)  Backtrace information
Type of error: General

BACKTRACE INFORMATION:
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php
Line
6490
URL of page causing the error
https://www.sonomacountydsa.org/forums/index.php?action=store;sa=changeqty;id=18;qty=1;code=
Backtrace information
#0: smf_error_handler()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Themes/default/Store2.1.template.php on line 6490
#1: template_changeqty()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Load.php on line 2765
#2: loadSubTemplate()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Subs.php on line 4167
#3: obExit()
Called from /home/customer/www/sonomacountydsa.org/public_html/forums/index.php on line 194
« Last Edit: June 01, 2022, 02:32:41 pm by Michael Vail »
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Hmm that error shouldn't happen. Do you have a product id is 18
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 Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
Sorry but I don't see product numbers anywhere in the interface. Other than clicking each one and checking for its ID in the URL, is there another way to find it? Adding the Product ID to a column in the product list panel would be a nice addition.
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
There is not another way currently. You can change the product id when viewing an item in the store. Then just adjust the url with the new id.
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 Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
Well thank you for that. You are correct. Item 18 no longer exists. My guess is that someone clicked an old link and generated the errors.

Thanks again for the help!
Michael
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

Offline Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
I wanted to follow-up on this post to see if anyone else is seeing this happen.

This morning I reviewed the error logs on my SMF 2.1 forum and see there are dozens of this same error with various non-existent item IDs all from a Guest account using a German IP address of 138.201.36.87. The IP is owned by Hetzner Online GmbH, which is a server hosting company, but it doesn't really help explain why this guest account keeps trying to change the quantity of items on my forum. Because the person doesn't have permission, they obviously get nowhere but it does geneate an error log message.

Below is a screenshot of part of the error log. Does anyone else see this happening and / do you know why this person might be attempting this?

Happy Thanksgiving!
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

Offline Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
FYI, I just saw a new SMF version was just released (2.1.3). The changelog had this fix in it:

Fixed a bug where "Trying to access array offset on value of type null" showed up in the log.

This may resolve the issue but I still don't understand what was causing it.

Take care!
 
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Fixed for next update. Was due to items being/deleted not existing.
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 Michael Vail

  • SMF Store Customer
  • Jr. Member
  • *****
  • Posts: 76
    • View Profile
    • Sonoma County DSA
Thank you good sir! Havea great weekend.

Mike
"We sleep safe in our beds because rough men stand ready in the night to visit violence on those who would do us harm" - George Orwell

 

Related Topics

  Subject / Started by Replies Last post
39 Replies
5714 Views
Last post March 27, 2022, 05:51:08 am
by pete
8 Replies
1570 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
6 Replies
2260 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
2578 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks
7 Replies
2350 Views
Last post May 05, 2025, 08:47:34 am
by Michel68

+- Recent Topics

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

Search results items per page? by SMFHacks
April 18, 2025, 04:12:23 pm

Suggestions and request by Senkusha
April 03, 2025, 02:30:43 pm

Powered by EzPortal