Fatal error when upload files

Merchant
Dari Slovenia
Anggota sejak 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
Dari Sweden
Anggota sejak Mei 2013
tim

What version of LiteCart?

Merchant
Dari Slovenia
Anggota sejak Okt 2023

LiteCart® 2.5.4

tim
Founder
Dari Sweden
Anggota sejak 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
Dari Slovenia
Anggota sejak Okt 2023

Hmm and how can I do this?

tim
Founder
Dari Sweden
Anggota sejak 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
Dari Slovenia
Anggota sejak 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?

Anda
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.