Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11834
Latest: Volker S
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42319
Total Topics: 7381
Most Online Today: 40
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 33
Total: 34

Author Topic: Database Error During Store Purchase After SMF 2.1 and Store 5.0 Beta Upgrades  (Read 211 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • SMF Gallery Pro Customer
  • Member
  • *****
  • Posts: 34
    • View Profile
    • Sonoma County DSA
Good Day,

I recently installed the latest 5.0 beta version of the store software after updating my forum to SMF 2.1.2. Today I had my first user attempt to purchase and item but he couldn't do it. I'm waiting for a reply from him as to what exactly happened when he tried to purchase the item, but I saw three (3) of the following errors in the SMF database log when the users made his purchase attempts and I felt they might give you a head start as to what the problem is:

Quote
Today at 16:57
 Rob_McIntire
 96.69.132.22
 8e310795489c26287edb783014437b81
 https://www.sonomacountydsa.org/forums/index.php?action=store;sa=addcartitem;id=52;single=0
 /home/customer/www/sonomacountydsa.org/public_html/forums/Sources/Store2.php (Line 4440)  Backtrace information

Type of error: Database
Error messageSelect
Database Error: Field 'ID_ITEM' doesn't have a default value

INSERT INTO dsa_forums_store_item_custom_field_data
(ID_FIELD, ID_CART, value)
VALUES (6 , 619, 'XL')

If someone can offer a helping hand when they have time, I'd appreciate it.

Warm Regards...
« Last Edit: May 19, 2022, 09:36:05 pm by scso1502 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16045
    • View Profile
Try this sql command on the database
Code: [Select]
alter table dsa_forums_store_item_custom_field_data change ID_ITEM  ID_ITEM int(11) default 0;
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
  • Member
  • *****
  • Posts: 34
    • View Profile
    • Sonoma County DSA
Thank you for the quick reply. I believe I executed the command correctly and the below is the the response phpmyadmin returned:

Quote
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0044 seconds.)
alter table dsa_forums_store_item_custom_field_data change ID_ITEM ID_ITEM int(11) default 0

Is this the expected response?

Thank you again,
Michael
« Last Edit: May 19, 2022, 11:51:55 pm by Michael Vail »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16045
    • View Profile
yes it is. The error should no longer occur.
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
  • Member
  • *****
  • Posts: 34
    • View Profile
    • Sonoma County DSA
You're amazing. Any idea what caused it? Was it something I did wrong?

I sure appreciate your help.

Thanks again,

Offline Michael Vail

  • SMF Gallery Pro Customer
  • Member
  • *****
  • Posts: 34
    • View Profile
    • Sonoma County DSA
The store works beautifully again. Thank you!

I'd sure love to work with you to implement the features I listed in the below post if you ever get time. I think a lot of users would find the useful and I'm willing to pay you for your time to do the work as done previously.

https://www.smfhacks.com/index.php/topic,9751.msg43677.html#msg43677

Have a great weekend and thank you again!
Michael Vail

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16045
    • View Profile
Glad it works. Yeah main issue for me is lack of time/users. The peak was around 2006 to 2009 for sales.
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
  • Member
  • *****
  • Posts: 34
    • View Profile
    • Sonoma County DSA
Well thanks for all you do. My users and I greatly appreciate your products and support.

Have a great weekend!
Michael

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
5372 Views
Last post May 31, 2008, 06:30:09 pm
by ApplianceJunk
2 Replies
2796 Views
Last post February 22, 2009, 01:23:53 am
by speedfreak87
2 Replies
4050 Views
Last post April 25, 2009, 10:19:23 am
by Wegg
20 Replies
7166 Views
Last post October 02, 2017, 03:00:50 pm
by Michael Vail
5 Replies
2252 Views
Last post November 15, 2017, 05:29:15 pm
by SMFHacks

+- Recent Topics

Profile Gallery Link by Hatshepsut
July 04, 2022, 11:00:01 pm

Trying to access array offset on value of type null by SMFHacks
July 04, 2022, 08:14:20 pm

Pictures appearing in post by SMFHacks
July 04, 2022, 12:56:40 pm

Error When Uploading Gifs To Subcategories by SMFHacks
July 03, 2022, 05:50:19 pm

SMF forum by davejo
June 27, 2022, 01:16:25 am

Quick-moderation checkboxes by davejo
June 22, 2022, 09:27:24 am

Add option to Main Menu bar by Shades
June 21, 2022, 12:23:00 am

Logo and Category? by SMFHacks
June 12, 2022, 03:43:31 pm

prettyurls - TroubleShooting.wiki by GhostHunting
June 12, 2022, 02:52:57 pm

[Mod]Modification Update Version Checker by SMFHacks
June 06, 2022, 09:25:39 pm

Powered by EzPortal