tylerakin Posted January 1, 2015 Share Posted January 1, 2015 I am trying to uninstall and then reinstall the theme configurator module because of a fatal error associated with it. I am getting the following text "Could not find upload directory". How do I fix this? Link to comment Share on other sites More sharing options...
NemoPS Posted January 2, 2015 Share Posted January 2, 2015 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 More sharing options...
tylerakin Posted January 2, 2015 Author Share Posted January 2, 2015 I don't think so. Where should I go to check? Link to comment Share on other sites More sharing options...
NemoPS Posted January 3, 2015 Share Posted January 3, 2015 Just check your url and folders, where is prestashop installed, phisically and at a domain level? Link to comment Share on other sites More sharing options...
asapho Posted October 16, 2018 Share Posted October 16, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now