Jump to content

Trying to uninstall Module


Recommended Posts

Are you using a subdomain?

 

THis is where it comes from

 

if (realpath(dirname($file_name)) != realpath($this->uploads_path))
Tools::dieOrLog(sprintf('Could not find upload directory'));
 
 
For some reason the real path of one of the uploaded images is different from the default upload path
Link to comment
Share on other sites

  • 3 years later...

Older question, but I had the same issue. Here's my fix:

Navigate to: /modules/themeconfigurator/

In themeconfigurator.php, change line

$images = Db::getInstance()->executeS('SELECT image FROM `'._DB_PREFIX_.'themeconfigurator`');

to

$images = Db::getInstance()->executeS('SELECT image FROM `'._DB_PREFIX_.'themeconfigurator` WHERE image IS NOT NULL');

 Reasoning: If there are rows in the themeconfigurator database table where `image` = NULL, those NULL entries will still return in the $images array. When the deleteImage function tries to find those NULL images in the directory it cannot and therefore returns the 'Could not find upload directory' error.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...