TomatoCart

65381 Downloads
279 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

Errors if you don't import sample data
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Errors if you don't import sample data
#3484
Errors if you don't import sample data 1 Year, 5 Months ago Karma: 1
If you don't import sample data the following error occur in homepage:

C:\xampp\htdocs\tomato\includes\classes\category_tree.php on line 541
trialanderror
"So Long, and Thanks for All the Fish"
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Texas
Smart may have the brains, but Stupid has the balls. I have neither. Well, literally i do.
The administrator has disabled public write access.
 
#3487
Re:Errors if you don't import sample data 1 Year, 5 Months ago Karma: 2
The system will report an error if you uninstall the Sample, as the Category dada is kept in Sampledata.

Not to import the Sampledate and to ensure good operation of the system, you can insert the following snippet #product categoies which is under root/install/tomatocart_sample_data.sql into tomatocart.sql that shares the same directory with #product categoies. Re-install again, it should work.

INSERT INTO toc_categories (categories_id, categories_image, parent_id, sort_order, date_added, last_modified) VALUES
(1, 'categories_notebooks.jpg', 0, 0, now(), NULL),
(2, 'categories_desktops.jpg', 0, 0, now(), NULL),
(3, 'categories_monitor.jpg', 0, 0, now(), NULL),
(4, 'categories_printer.jpg', 0, 0, now(), NULL),
(5, 'categories_ipod.jpg', 0, 0, now(), NULL);
INSERT INTO toc_categories_description (categories_id, language_id, categories_name) VALUES
(1, 1, 'Laptop'),
(2, 1, 'Desktops'),
(3, 1, 'Monitors'),
(4, 1, 'Printers & Scanners'),
(5, 1, 'iPod & Camera');
Cynthia Li
Team Member
Posts: 55
graphgraph
User Offline Click here to see the profile of this user
Gender: Female
The administrator has disabled public write access.
 
#3896
Re:Errors if you don't import sample data 1 Year, 4 Months ago Karma: 29
This bug is fixed in svn. The code didn't check the array lengh before iteration.
zheng.lei
Team Member
Posts: 462
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to top Page: 1

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?