Getting eror on 2.2.9

Merchant
Od United Kingdom
Użytkownik od kwi 2019

Hi there im getting this error on 2.2.9  would anyone help ?

Notice: Undefined index: name in ~/includes/boxes/box_product_reviews.inc.php (Line 56)
Notice: Undefined index: upvotes in ~/includes/entities/ent_product_review.inc.php (Line 108)
Notice: Undefined index: downvotes in ~/includes/entities/ent_product_review.inc.php (Line 109)
Fatal error: 1054 - Unknown column 'upvotes' in 'field list' update lc_products_reviews set status = '0', product_id = 440, customer_id = 537, customer_email = 'xxxxxxx@gmail.com', customer_name = '', rating = 5, upvotes = 0, downvotes = 0, date_updated = '2022-04-03 22:17:00' where id = '12' limit 1; in ~/includes/library/lib_database.inc.php (Line 260)

Many thanks

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

Is this a new install of the add-on?
Or upgrading from an older version?

Merchant
Od United Kingdom
Użytkownik od kwi 2019

Hi Tim is upgrade from lower version

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

Try running this upgrade sql from an earlier version:

``ALTER TABLElc_products_reviews ADD COLUMNcustomer_emailVARCHAR(64) NOT NULL DEFAULT '' AFTERcustomer_id, ADD COLUMNcustomer_nameVARCHAR(64) NOT NULL DEFAULT '' AFTERcustomer_email, ADD COLUMNexternal_linkVARCHAR(256) NOT NULL DEFAULT '' AFTERcustomer_name, ADD COLUMNexternal_sourceVARCHAR(64) NOT NULL DEFAULT '' AFTERexternal_link, ADDupvotesINT NOT NULL DEFAULT '0' AFTERexternal_source, ADDdownvotesINT NOT NULL DEFAULT '0' AFTERupvotes, ADD INDEXrating(rating`);

CREATE TABLE lc_products_reviews_attachments (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
review_id INT(11) UNSIGNED NOT NULL DEFAULT '0',
attachment VARCHAR(512) NOT NULL DEFAULT '',
filename VARCHAR(128) NOT NULL DEFAULT '',
mime VARCHAR(32) NOT NULL DEFAULT '',
priority INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
INDEX review_id (review_id)
);```

Or compare your db structure to the README and add missing columns using phpMyadmin, HeidiSQL or what might be your favourite mysql manager.

Merchant
Od United Kingdom
Użytkownik od kwi 2019

Getting this message 

SQL query: Copy

CREATE TABLE lc_products_reviews_attachments (
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
review_id INT(11) UNSIGNED NOT NULL DEFAULT '0',
attachment VARCHAR(512) NOT NULL DEFAULT '',
filename VARCHAR(128) NOT NULL DEFAULT '',
mime VARCHAR(32) NOT NULL DEFAULT '',
priority INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
INDEX review_id (review_id)
);
MySQL said: Documentation

1050 - Table 'lc_products_reviews_attachments' already exists

Merchant
Od United Kingdom
Użytkownik od kwi 2019

bump

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

[quote]Table 'lc_products_reviews_attachments' already exists[/quote]

It already exists, so simply don't attempt to create it again. See if the columns match.

Merchant
Od United Kingdom
Użytkownik od kwi 2019

Hi Tim i did check all columns still getting error so actually i'm not able to create review from admin panel as getting this error

Then when you trying to leave review as a customer page i all over and this error 


Notice: Undefined index: downvotes in ~/includes/entities/ent_product_review.inc.php (Line 107)
Fatal error: 1054 - Unknown column 'upvotes' in 'field list' update lc_products_reviews set status = '0', product_id = 504, customer_id = 537, rating = 5, upvotes = 0, downvotes = 0, date_updated = '2022-04-21 21:09:46' where id = '16' limit 1; in ~/includes/library/lib_database.inc.php (Line 260)```
Merchant
Od United Kingdom
Użytkownik od kwi 2019

Ok managed to find one problem now im getting this on page with product 


) customer reviews```
Merchant
Od United Kingdom
Użytkownik od kwi 2019

Hi i have upgraded to LiteCart® 2.4.3  now when testing getting this missing 

[quote]includes/functions/func_draw.inc.php
Operation #1  Search not found[/quote]
Many thanks for help

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

I uploaded an update I think solves the compatibility with func_draw.in.php in 2.4.3.

Merchant
Od United Kingdom
Użytkownik od kwi 2019

Thanks Tim all working now

tim
Founder
Od Sweden
Użytkownik od maj 2013
tim

Wonderful to hear :)

Ty
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.