Fatal error when upload files

Merchant
Fra Slovenia
Member since 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
Fra Sweden
Member since maj 2013
tim

What version of LiteCart?

Merchant
Fra Slovenia
Member since okt. 2023

LiteCart® 2.5.4

tim
Founder
Fra Sweden
Member since maj 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
Fra Slovenia
Member since okt. 2023

Hmm and how can I do this?

tim
Founder
Fra Sweden
Member since maj 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
Fra Slovenia
Member since 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?

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