Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4200
Latest: [chrisB]
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 42602
Total Topics: 7433
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 47
Total: 49

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

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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: 16156
    • 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 Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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: 16156
    • 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 Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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

  • SMF Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • 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: 16156
    • 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 Gallery Pro Customer
  • Jr. Member
  • *****
  • Posts: 50
    • View Profile
    • Sonoma County DSA
Thank you good sir! Havea great weekend.

Mike

 

Related Topics

  Subject / Started by Replies Last post
39 Replies
1770 Views
Last post March 27, 2022, 05:51:08 am
by pete
4 Replies
425 Views
Last post March 14, 2022, 04:06:44 am
by ke
8 Replies
449 Views
Last post May 10, 2022, 12:31:35 am
by Puppeteer
7 Replies
423 Views
Last post May 20, 2022, 08:58:15 pm
by Michael Vail
6 Replies
473 Views
Last post July 05, 2022, 12:45:10 pm
by Saftek

+- Recent Topics

Errors with SMF2WPBridge by SMFHacks
Today at 12:21:25 pm

Undefined index: id by Shades
Today at 12:15:20 pm

Permissions query by davejo
Today at 01:31:46 am

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
Today at 01:02:34 am

Additional Recommendations for SMF Store by Michael Vail
November 26, 2022, 12:49:58 pm

SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null by Michael Vail
November 26, 2022, 12:07:42 pm

Modification: Subcategories total in main gallery view by VisiGod
November 26, 2022, 11:27:34 am

Change log for Downloads Pro 6.13 and 6.14 by Nicole
November 20, 2022, 08:24:34 am

Release date? by SMFHacks
November 20, 2022, 08:09:10 am

Can't install due to missing file? by SMFHacks
November 18, 2022, 06:55:45 pm

Powered by EzPortal