Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

images not loading


natere2ster

Recommended Posts

OK i tried to follow everything to a tee...

 

seems like the images are not happy wit me.

 

everything seems to work well....i can admin and see the store front minus the images...

 

i assume its a permissions issue but i have chmodded all files as advised in the installation documentation....

 

please see here and advise...

 

http://natemac.homeu...talog/index.php

 

nothing!

 

tried from CLI and from finder...

 

chmod 644 catalog/images etc etc

 

still nothing as far as images are concerned! why?

 

thanks for any advice help in advance!

 

cheers,

 

Nate

Link to comment
Share on other sites

OK i tried to follow everything to a tee...

 

seems like the images are not happy wit me.

 

everything seems to work well....i can admin and see the store front minus the images...

 

i assume its a permissions issue but i have chmodded all files as advised in the installation documentation....

 

please see here and advise...

 

http://natemac.homeu...talog/index.php

 

nothing!

 

tried from CLI and from finder...

 

chmod 644 catalog/images etc etc

 

still nothing as far as images are concerned! why?

 

thanks for any advice help in advance!

 

cheers,

 

Nate

 

I would say that your configure.php file is not set up correctly as, your images, css files and js files are not being located

Link to comment
Share on other sites

Do you mean the permissions are not correct or that the configure.php file itself is not located?

 


<?php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 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', '/Applications/xampp/xamppfiles/htdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', '************');
 define('DB_SERVER_PASSWORD', '***********');
 define('DB_DATABASE', '***************');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

I dont see anything odd in the configure.php file....

 

Do you?

 

Thanks for the reply BTW.

 

 

Link to comment
Share on other sites

Do you mean the permissions are not correct or that the configure.php file itself is not located?

 


<?php
 define('HTTP_SERVER', 'http://localhost');
 define('HTTPS_SERVER', 'http://localhost');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 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', '/Applications/xampp/xamppfiles/htdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', '************');
 define('DB_SERVER_PASSWORD', '***********');
 define('DB_DATABASE', '***************');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

I dont see anything odd in the configure.php file....

 

Do you?

 

Thanks for the reply BTW.

 

try

<?php

define('HTTP_SERVER', 'http://www.natemac.homeunix.net');

define('HTTPS_SERVER', 'http://www.natemac.homeunix.net');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.natemac.homeunix.net');

define('HTTPS_COOKIE_DOMAIN', 'www.natemac.homeunix.net');

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

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

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

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

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', dirname($_SERVER['SCRIPT_FILENAME']) . '/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '************');

define('DB_SERVER_PASSWORD', '***********');

define('DB_DATABASE', '***************');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

No go! Nice idea though I did see those...even tried 127.0.0.1

 

ah well, i am gonna install wordpress see if i can get that working lol

 

thanks for the tips though.

 

seems sort of a bugg platform from the start of it....i installed drupal no problem! same with joomla!

Link to comment
Share on other sites

looking at the image headers i noticed a 403 forbidden (verboten!) under the status code, so its a permissions issue i have no idea how to fix...

 

i've chmoded the folder 100x LOL

 

anyone know how to achieve this feat?!

 

thx,

 

nate

Link to comment
Share on other sites

hi

 

i am having the same issue with no images being displayed

 

i installed directly to root so website is

 

http://www.thepropertytraders.co.uk/

 

but still no image files displayed so a path has to be wrong somewhere

 

the two config file are now below - has anyone any ideas how to make this work properly and show images

 

 

include cofig file

 

<?php

define('HTTP_SERVER', 'http://www.thepropertytraders.co.uk');

define('HTTPS_SERVER', 'http://www.thepropertytraders.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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/fhlinux164/t/thepropertytraders.co.uk/user/htdocs/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

admin include config file

 

 

<?php

define('HTTP_SERVER', 'http://www.thepropertytraders.co.uk');

define('HTTP_CATALOG_SERVER', 'http://www.thepropertytraders.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.thepropertytraders.co.uk');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/fhlinux164/t/thepropertytraders.co.uk/user/htdocs/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '/home/fhlinux164/t/thepropertytraders.co.uk/user/htdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/home/fhlinux164/t/thepropertytraders.co.uk/user/htdocs/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

Look at your internet headers and see what error you get on the page when loading..

 

I got permission denied error 403 then changed the permissions and now get an internal server error 500

 

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

LOL

 

 

Good luck its been quite on the forum regarding this issue looks like we have to figure it out ourselves. waaaaa!

Link to comment
Share on other sites

When you try to access an image directly with a browser you get:

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

That type of error is usually associated with a misguided .htaccess file.

 

Try renaming the .htaccess file in the images folder to text.htaccess

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

hi

 

changed the file as you suggested and now images are loading on the store front

 

see

 

http://www.thepropertytraders.co.uk/

 

i just uploaded a store logo to see if my own images work and they work fine too

 

BUT

 

when i login to admin section, no images are displayed there - do you know how i can fix this

 

and apologies for posting this twice, please feel free to remove the other post

 

mark

Link to comment
Share on other sites

I get the same error on the admin side.

 

Try try the same thing on the .htaccess file in the /admin/images folder.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i got it working...

 

had to change around the http.conf file

 

  1. Search the httpd.conf file for 'mod_rewrite'. You'll find the statement that loads that module is commented out. Remove the '#' at the start of the line to un-comment it.

Mine was already uncommented.

 

2. By default, XAMPP on Windows does not allow .htaccess files to override the httpd.conf file.

Search the httpd.conf file for 'AllowOverride'. You should find one or more statements that say 'AllowOverride None'. Wherever you find it (or more selectively, if you're savvy like that), change it to 'AllowOverride All'. Don't forget to restart Apache, and you're done!

 

 

 

Link to comment
Share on other sites

hi

 

yes yes yes - it worked

 

thanks very much

 

seeing as you are so helpful, only image not showing is on

 

http://www.thepropertytraders.co.uk/

 

it is the image associated with the quickfind or seach button - it just displays as a red X

Same error when accessing the button image directly.

 

Try the same fix on the .htaccess file in the /includes folder.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...