kirilkirkov / Ecommerce-Laravel-Bootstrap

Responsive, Multi-Vendor, MultiLanguage Online Store Platform (shopping cart solution)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data base is incomplete. missing some columns in it

Engbilal opened this issue · comments

Hey i run your project but the column is in complete in it.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tags' in 'field list' (SQL: insert into products (image, folder, category_id, quantity, order_position, link_to, tags, hidden, url) values (images/lgMVdzyK22dMzC7DagJIDCOrGkVhtH49NMFG9iHK.png, 1686384732, 2, 21, 12, HTTPS://WWW.COM, 2, 1, aSADASDASD-2))

after adding column in the database. i got the error

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'tags' in where clause is ambiguous (SQL: select products.*, products_translations.name, products_translations.description, products_translations.price from products inner join products_translations on products_translations.for_id = products.id where tags LIKE %promo% and hidden = 0 and locale = en limit 8)

can i fix it

@dassudip2001
you are welcome to make a pull request with the fix

Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.

some packages are abandoned and can you check it ??

my PHP version 8.2

also

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump

problem

@Engbilal
@dassudip2001

Into the 2022_11_07_075654_create_products_table.php file , the tags column is present so i am not sure why you do not have it.
I have tested everything and it works. Please run your migrations from "zero" and try again, the tags field present into the migrations so it working.

With version php@8.0 is working ok.

@Engbilal
in which page you are getting this error? i can not reproduce it

@Engbilal
if you need further assistance i am available