Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moved servers, chmod issues in apache2 log


Lantizia

Recommended Posts

Hi,

 

I moved my oscommerce site (www.arkhobbies.co.uk) to my own box from 1&1...

 

You can log in on the site, and see the catagories - but what you can't see IS THE PRODUCTS!

 

BAH!

 

So anyways :D ... I checked the apache2 error.log...

 

sh: /chmod: No such file or directory

 

This line appears as many times as you attempt to access a page on the site - I have tested this over and over and I'm sure.

 

How might I be able to fix this?

Link to comment
Share on other sites

Also to add...

 

The source of the html thats generated improperly ends with...

<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading">Products</td>
		<td align="right">

 

And the section that comes after in the PHP is...

 

<?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

 

However I see nothing wrong with that line! I have even downloaded the original oscommerce package and transplanted the index.php - still no good, and its the same line - yet a new install of oscommerce works.

 

:(

Link to comment
Share on other sites

Hello AGAIN :D

 

Since no one is replying and I can't see an edit button - heres my latest - latest findings...

 

The file / code which is causing the issue is this bit in the html_output.php file

 

	if ($image_size = @getimagesize($src)) {
  if ((CONFIG_CALCULATE_IMAGE_SIZE == 'true' && $src != DIR_WS_IMAGES . 'pixel_black.gif' && $src != DIR_WS_IMAGES . 'pixel_trans.gif' && $src != DIR_WS_IMAGES . 'pixel_silver.gif' )) {
	if ( ($width) || ($height) ) {
		if ( $width=="100%" ) {
		  $width = $image_size[0];
		} elseif ( $height=="100%" ) {
		  $height = $image_size[1];
		} elseif ( $width==0 ) {
		  unset($width);
		} elseif ( $height==0 ) {
		  unset($height);
		}
		$src=thumbimage(DIR_FS_CATALOG . '/' .$src, $width, $height, 1, 1, DIR_FS_CATALOG . '/' . DIR_WS_IMAGES . 'imagecache');
		if ((($image_size[1]/$height) > ($image_size[0]/$width) ) && $height>0){
			 $width=ceil(($image_size[0]/$image_size[1])* $height);
		} elseif ($width>0) {
			 $height=ceil($width/($image_size[0]/$image_size[1]));
		}
	}
	  }
  } elseif (IMAGE_REQUIRED == 'false') {
	return '';
  }

 

As you can see I use auto thumnail making thingy - however this worked on my old server! it may explain the chmod from before ... but the imagecache directory is writable!

 

I have installed libgd on my debian 4 box - makes no difference.... any ideas!

Link to comment
Share on other sites

4th and Final post...

 

Tis fixed - I needed libgd installed on the server and in the php.ini file

 

All is now working again... thank you to the 20 or so that came to see this and did nothing :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...