Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

images not loading


macbw

Recommended Posts

I uploaded Osc to my server.

After navigating to the installation folder I already found out all images on the intstall page were broken. even the buttons.

However I managed to install Osc, contacted to the database successfully and everything.

 

But still not a single image or button on any page including the admin page is loading.

Text styles are allright.

I already checked the includes/configure.php file and the line:

define('DIR_WS_IMAGES', 'images/'); looks allright to me.

Also are the permissions of the images directory set to CMOD 777 and all images are in it.

What can be wrong?

Sure hope someone can help me out.

Link to comment
Share on other sites

Thank you very much for the tip.

I'm gonna check this out although I'm not sure that setting the permissions are the issue, because I already am able to set the permissions.

 

Any other suggestions are still welcome.

 

I copied this code into a file named chmodimages.php

<?php

 

   require('includes/application_top.php');

 

   require('includes/configure.php');

 

   $image_query = tep_db_query("select products_image from products");

 

   while ( $info = tep_db_fetch_array($image_query) )

 

   {

 

       $target = DIR_FS_CATALOG . DIR_WS_IMAGES . $info['products_image'];

 

       echo $target . "<br>\n";

 

       chmod( $target, 0646 );

 

   }

 

?>

 

uploaded it to my admin directory but got this error after navigating to the file.

 

Parse error: syntax error, unexpected T_STRING in /usr/home/web/snl1234/ecowear.nl/catalog/admin/chmodimages.php on line 3

 

(It seems from my ftp program, I am able to set permissions on files. To be sure I will ask my hostingcompany about it)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...