Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog images directory does not exist


freds

Recommended Posts

Posted

Hi guys!

This is my first post in the forum.

 

I would really like your help in this. I have my admin panel in https.

The problem I have is that in the link catalog there is an error message that says ERROR : Catalog images directory does not exist".

 

Plus, in the file manager the files of the catalog do not appear. I understand that the problem relies at the configure files but I think I have tried everything.

 

The catalog is at http://www.mydomain.com/catalog and

the admin pages at https://www.mydomain.com/admin

 

I also write what the admin/includes/configure.php is:

 

  define('HTTP_SERVER', 'https://www.mydomain.gr'); // eg, http://localhost - should not be empty for productive servers 
 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.gr'); 
 define('HTTPS_CATALOG_SERVER', 'https://mydomain.gr'); 
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module 
 define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/mydomain.gr/httpdocs/catalog/'); // where the pages are located on the server 
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required 
 define('DIR_FS_ADMIN', '/home/httpd/vhosts/mydomain.gr/httpsdocs/admin/'); // absolute pate required 
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required 
 define('DIR_FS_CATALOG', '/home/httpd/vhosts/mydomain.gr/httpdocs/catalog/'); // absolute path required 
 define('DIR_WS_IMAGES', 'images/');

 

and the catalog/includes/configure.php is:

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.mydomain.gr'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mydomain.gr'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.mydomain.gr');
 define('HTTPS_COOKIE_DOMAIN', 'http://www.mydomain.gr');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/admin/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/admin/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/httpd/vhosts/mydomain.gr/httpdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

I am really sorry about posting all this code but I am desperate.

 

Does anyone think he may help me? Or maybe he may post his code that works so that I can compare those files.

Posted
Does anyone think he may help me? Or maybe he may post his code that works so that I can compare those files.

 

are you excluding help from women?

Posted
are you excluding help from women?

 

 

Women are very welcomed. But english is not my mother tongue. So some possible mistakes are really "possible" :-)

Posted

Come on FiftyPence. Of all of what i have posted this is what you could say?

 

Do you think you have an answer to my problem. Or have I excluded you out?

Posted

If an error is telling you that your 'images' directory does not exist - when it does exist - then it is because you have the wrong permissions on the 'images' folder. The images folder needs to have permission set to 755 or 777.

 

Your configure.php files are a bit of a mess. Do you have a full ssl certificate installed? If you do not then leave all https entries blank. If you do have a full ssl certificate then edit these entries like so:

 

admin/includes/configure.php

-----------------------------------

define('HTTP_SERVER', 'https://www.mydomain.gr');

define('HTTP_CATALOG_SERVER', 'http://www.mydomain.gr');

define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.gr');

define('DIR_WS_ADMIN', '/catalog/admin/'); // if admin is inside 'catalog' folder

 

catalog/includes/configure.php

-----------------------------------

define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.gr');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/'

 

Vger

Posted

Hey, Vger.

 

How about the rest of the code in admin/includes/configure.php? Is That correct?

 

I want to remind you that the catalog is at http://www.mydomain.com/catalog and

the admin pages at https://www.mydomain.com/admin

 

 ?define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
?define('DIR_WS_ADMIN', '/admin/');
?define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
?define('DIR_WS_CATALOG', '/catalog/');
?
define('DIR_FS_CATALOG', '/home/httpd/vhosts/mydomain.gr/httpdocs' . DIR_WS_CATALOG);

 

What really happens here is that if I have the 'DIR_FS_CATALOG' like that, the program tries to find the images directory in /home/httpd/vhosts/streetmagic.gr/httpdocs/catalog/images/ (notice the httpdocs) and it is unable to do so even though the chmod is 755.

 

If I change the 'DIR_FS_CATALOG' like that

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

then the program tries to find the images directory in /home/httpd/vhosts/streetmagic.gr/httpsdocs/catalog/images/ (notice the httpsdocs) and it is once again unable because now it really does not exist.

 

Finally, If I change the 'DIR_WS_CATALOG' to 'admin' and 'DIR_FS_CATALOG' to "'/home/httpd/vhosts/mydomain.gr/httpdocs' . DIR_WS_CATALOG" then it finds the images directory (and not only, the whole file manager works) but not the way it supposes to work.

What i mean, is that the images directory it finds is that of the admin pages and not the one in the catalog which it should. And in the file manager the files that are shown are those of the admin pages and not of the catalog.

 

This is the way it is working? I dont think so.

 

Once again I wrote a lot. Please forgive me.

Posted

You have made things unnecessarily difficult for yourself by placing the 'admin' folder in the same level as the 'catalog' folder. Normal placement is to have the 'admin' folder inside the 'catalog' folder.

 

I would advise you to move it to that folder, then follow the pathways I posted.

 

You should in any case rename the 'admin' folder to something else entirely, and edit the two references in admin/includes/configure.php from /admin/ to /newname/

 

Vger

Posted
You have made things unnecessarily difficult for yourself by placing the 'admin' folder in the same level as the 'catalog' folder.  Normal placement is to have the 'admin' folder inside the 'catalog' folder.

 

I would advise you to move it to that folder, then follow the pathways I posted.

 

 

 

Last question. (I want to believe.)

 

You said that "

Normal placement is to have the 'admin' folder inside the 'catalog' folder"
. That means that the admin folder would be in http://www.mydomain.gr/catalog/admin/

That is, out of the https. Am I wrong, or I have misunderstood?

Posted

Would you like to see exactly what I mean by telling you the real urls to see by yourself what is going on? Maybe I could tell you by a message. But it is in the greek language.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...