Fatal error when upload files

Merchant
Van Slovenia
Lid sinds okt. 2023

Hi,

when I want to upload files, I get this error:

Fatal error: Uncaught Error: Class "database" not found in /tmp/phpwTNR9N:3 Stack trace: #0 /home/megamisk/public_html/includes/library/lib_vmod.inc.php(339): include() #1 /home/megamisk/public_html/includes/library/lib_vmod.inc.php(340): vmod::{closure}() #2 /home/megamisk/public_html/includes/library/lib_vmod.inc.php(107): vmod::load() #3 /home/megamisk/public_html/includes/app_header.inc.php(20): vmod::init() #4 /home/megamisk/public_html/admin123/index.php(2): require_once('/home/megamisk/...') #5 {main} thrown in /tmp/phpwTNR9N on line 3

Error disappear when I remove vMod file.

tim
Founder
Van Sweden
Lid sinds mei 2013
tim

What version of LiteCart?

Merchant
Van Slovenia
Lid sinds okt. 2023

LiteCart® 2.5.4

tim
Founder
Van Sweden
Lid sinds mei 2013
tim

Ok, yeah this was for 2.6.x. What you can do is remove the install and uninstall parts from the vMod and run the install query manually with phpmyadmin.

Merchant
Van Slovenia
Lid sinds okt. 2023

Hmm and how can I do this?

tim
Founder
Van Sweden
Lid sinds mei 2013
tim

Admin -> vMods -> Edit vMod.
Remove the install and uninstall directives.

cPanel -> phpMyAdmin -> SQL and run your install queries there (without php document::query).

See the previous version for README.

Merchant
Van Slovenia
Lid sinds okt. 2023

Perfect, thanks. Done.

As I see plugin is updated, but there is no feautured products page yet, right?

There is just dropdown to pick products? Can't add by SKU?

U
Deze website maakt geen gebruik van cookies en geen trackingtechnologie van derden . Wij denken dat we het beter kunnen dan anderen en hechten veel waarde aan uw privacy.