Page 1 of 1

Cannot upload images - warning directory does not exist

Posted: Sat Jan 21, 2017 8:06 am
by willopencart
Hi,
I installed a clean version of OC, Version 2.3.0.2.
I am trying to upload an image for a product, but get the error message "warning directory does not exist" when I click the blue upload arrow.

Some people have said that there must be a 'data' folder in 'image' which there was not, so I have added that, this did not help. (image/data)
I am using Firefox and have tried Chrome, both don’t work.

Any ideas please?
Thanks
Will.

Re: Cannot upload images - warning directory does not exist

Posted: Sun Jan 22, 2017 3:05 am
by IP_CAM
Nope, it should be:
image/catalog in OC v.2
Ernie

Re: Cannot upload images - warning directory does not exist

Posted: Mon Jan 23, 2017 9:02 pm
by willopencart
Thanks Ernie,
That diectory is there but the uploader still doss not work.
Any suggestions please?

Re: Cannot upload images - warning directory does not exist

Posted: Mon Jan 23, 2017 9:49 pm
by IP_CAM
Well, you probably have some incorrect settings in your config.php file(s).
But without looking at them, it cannot been said.
Ernie

Re: Cannot upload images - warning directory does not exist

Posted: Tue Jan 24, 2017 2:27 am
by willopencart
Thanks, yes my free hosting provider had 'htdocs' in front of the directory so I used a diffrent provider that did not do that.
All fixed.
Thanks
Will.

Re: Cannot upload images - warning directory does not exist

Posted: Fri Feb 10, 2017 6:41 pm
by greymatters
Hi,

I am facing the same issue and tried everything you told earlier.

Now opened a ticket for my hosting company to fix this issue with a link to your post.

I am using PHP 5.6, can you please explain in details what should i do myself in config or PHP settings from cPanel to fix this issue.

Thanks for your time and support.

Nirav

Re: Cannot upload images - warning directory does not exist

Posted: Sat Feb 11, 2017 3:36 am
by Cool1
In my case the sulution was:

It appeared that in both config.php files (in root and admin dirctories) all the entries (including /image) were:
/..../...../provider-name/user-name/domain-name/htdocs//image/') - meaning two // instead of one /.
Possibly it is the bug in the OpenCart installation script.
I've changed ALL // to / in both files. Now it works fine.

Re: Cannot upload images - warning directory does not exist

Posted: Tue Oct 02, 2018 11:59 pm
by haxcop
on my case into the /config.php and /admin/config.php were pointing to /www/mydomain.com/* instead of /public_html/mydomain.com/*
as soon as I changed the directory works.

Re: Cannot upload images - warning directory does not exist

Posted: Thu May 12, 2022 9:05 pm
by samiwaheed97
Hi,
The same issue occurred with my website and it occurred due to website migration and in my case i solve by making changes in
the config.php files in the main directory and in admin directory, the issue was that the image directory path was incorrect hope it will solve your issue
Regards
Sami