Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4252
Latest: Jwatson_785
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43229
Total Topics: 7514
Most Online Today: 117
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 88
Total: 88

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

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • 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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16422
    • 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

  • Jr. Member
  • **
  • Posts: 67
    • 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16422
    • 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

  • Jr. Member
  • **
  • Posts: 67
    • 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

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • 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!

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • 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!
 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16422
    • 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

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

Mike

 

Related Topics

  Subject / Started by Replies Last post
39 Replies
3529 Views
Last post March 27, 2022, 05:51:08 am
by pete
4 Replies
1144 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
919 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
6 Replies
1580 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek
7 Replies
1798 Views
Last post June 15, 2023, 12:50:10 pm
by SMFHacks

+- Recent Topics

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Request for admin notification by davejo
February 06, 2024, 09:02:12 am

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Clipboard image support for the editor by SMFHacks
January 29, 2024, 11:22:17 am

Release date? by SMFHacks
January 26, 2024, 02:00:45 pm

Powered by EzPortal