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: 41
Total: 41

Author Topic: SMF Store Undefined index: id Errors in Log When Using Store Menu Button  (Read 228 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
FORUM INFO:
SMF Version: 2.1.3
SMF Store Version Number: SMFStore5.0beta1


I am recieving the below errors in my forum's Undefined Error log everytime someone views my SMF store using the Store main menu button. Everything is working as far as I know, my error log is just getting hammered.

Quote
Today at 10:38
 Guest
 136.243.228.179
 233033b9119fba2248d4a2f66ac85f9d
 https://www.sonomacountydsa.org/forums/index.php?action=store;sa=viewcart
 /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Store2.php (Line 5403)  Backtrace information

Type of error: Undefined
Error messageSelect
8: Undefined index: id

Any chance you can take a look at when you have time?

Thank you and no rush.
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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: SMF Store Undefined index: id Errors in Log When Using Store Menu Button
« Reply #1 on: December 05, 2022, 01:54:17 pm »
Can you grab the latest download and see if that helps was a brief bug
https://www.smfhacks.com/index.php/topic,10312.msg45877/topicseen.html#new
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
Re: SMF Store Undefined index: id Errors in Log When Using Store Menu Button
« Reply #2 on: December 05, 2022, 11:48:56 pm »
I was actually gonna try that before posting but I'm getting the below uninstall warning for one of the files. I uninstalled every package I have installed on my forum in hopes of clearing the error and none fixed it. Because name of the Store ZIP download name didn't change from the one I currently have installed, the SMF package manager doesn't provide an Upgrade option.

I haven't had an uninstall warning in a very long time and I have never successfully resolved one. If you can offer insight as to how to correctly resolve it or have a work-around, I can try, I''ll gladly give it a whirl.

Thanks,
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

Offline Shades

  • Full Member
  • ***
  • Posts: 219
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: SMF Store Undefined index: id Errors in Log When Using Store Menu Button
« Reply #3 on: December 06, 2022, 12:02:52 am »
Click on that little pencil and paper edit icon on the left and replace the code in Themes/default/Modifications.english.php as per the pop up.

So back up this file first Themes/default/Modifications.english.php and just remove...

Code: [Select]
//Begin SMF Store Text Strings
$txt['smfstore_menu'] = 'Store';
$txt['smfstore_admin'] = 'Store Configuration';
$txt['smfstore_paypal_address'] = 'Store PayPal Address: ';

//Permissions
$txt['permissiongroup_smfstore'] = 'SMF Store';
$txt['permissiongroup_simple_smfstore'] = 'SMF Store';

$txt['permissionname_smfstore_view'] = 'View Store';
$txt['permissionhelp_smfstore_view'] = 'Allows the user to view the Store';
$txt['cannot_smfstore_view'] = 'You are not allowed to view the Store';


$txt['permissionname_smfstore_rateitem'] = 'Rate Item';
$txt['permissionhelp_smfstore_rateitem'] = 'Allows the user to rate an item.';
$txt['cannot_smfstore_rateitem'] = 'You are not allowed to rate that item.';

$txt['permissionname_smfstore_comment'] = 'Add Comments';
$txt['permissionhelp_smfstore_comment'] = 'Allows the user to leave comments on an item.';
$txt['cannot_smfstore_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfstore_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_smfstore_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_smfstore_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_smfstore_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_smfstore_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_smfstore_userstore'] = 'User Store';
$txt['permissionhelp_smfstore_userstore'] = 'Allows users to add their own products';
$txt['cannot_smfstore_userstore'] = 'You are not allowed to manage your own store.';

$txt['permissionname_smfstore_manage'] = 'Admin Store';
$txt['permissionhelp_smfstore_manage'] = 'Allows the user to add/delete/edit all categories. Delete Comments, Delete Items, Approve Comments';
$txt['cannot_smfstore_manage'] = 'You are not allowed to manage store.';

//END SMF Store Text Strings

The uninstall can't find it on its own probably because you have/had other mods installed so you will have to remove it manually.

Edit: Make sure to leave the ?> at the end of the file!

Hope that helps! 8)
« Last Edit: December 06, 2022, 01:18:01 am by Shades »

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16677
    • View Profile
Re: SMF Store Undefined index: id Errors in Log When Using Store Menu Button
« Reply #4 on: December 06, 2022, 05:21:30 am »
The languages file is ok to fail on uninstall
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
Re: SMF Store Undefined index: id Errors in Log When Using Store Menu Button
« Reply #5 on: December 06, 2022, 10:47:31 am »
Thanks to Shades and SMFHacks!

Even though SMFHacks said the uninstall would proceed fine with the warning, I followed Shade's guidance and learned how to remove the code so I know how to remove it. I have no doubt an uninstall warning will come up again in my future so know I know how to resolve it. I can't believe I've been using SMF for 15 years and never took the time to figure that out!

Thanks very much to both of you. After removing and reinstalling the latest Store package download, my Store is working without generating errors any more!

Happy Holidays to you and everyone reading this.

Warmly,
Mike from MT.
« Last Edit: December 06, 2022, 11:02:40 am 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
Like Like x 1 View List

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
6037 Views
Last post January 16, 2007, 08:34:00 pm
by DawnsWebDesigns
1 Replies
4593 Views
Last post April 02, 2008, 07:58:22 pm
by SMFHacks
2 Replies
4545 Views
Last post June 09, 2009, 09:40:33 pm
by Cowboy Logic
3 Replies
3720 Views
Last post July 01, 2016, 02:25:04 pm
by SMFHacks
1 Replies
1755 Views
Last post August 22, 2021, 08:25:43 pm
by SMFHacks

+- 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