Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4219
Latest: Toddie
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42829
Total Topics: 7462
Most Online Today: 66
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

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

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • SMF Store Customer
  • 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: 16247
    • 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: 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: 16247
    • 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: 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

  • SMF Store Customer
  • 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

  • SMF Store Customer
  • 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: 16247
    • 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: 67
    • View Profile
    • Sonoma County DSA
Thank you good sir! Havea great weekend.

Mike

 

Related Topics

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

+- Recent Topics

[Mod]GDPR Helper by SMFHacks
Today at 01:50:14 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Permissions query by davejo
March 26, 2023, 04:43:48 am

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Powered by EzPortal