Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing Header


Guest

Recommended Posts

I have moved my site to the servers and I am getting a few problems. Payments still going to sandbox so no damage can be done.

 

My header and paypal images aren't being displayed.

If I echo something in the code below it shows it, so the code is being ran through.

 

From Header.php -

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'clean_groom.gif', 'Clean & Groom') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'horizontal_solution_pp.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

 

I have turned off SSL, to see if this makes a difference and it does not.

 

Site link //www.cleanandgroom.co.uk/

 

Any ideas, b4 I pull out what is left of my hair!

Link to comment
Share on other sites

How have you edited you catalog/admin/includes/configure.php and catalog/includes/configure.php?

 

You should first check all of the FS and WS paths.

Link to comment
Share on other sites

How have you edited you catalog/admin/includes/configure.php and catalog/includes/configure.php?

 

You should first check all of the FS and WS paths.

 

This is the includes/configure/php -

define('HTTP_SERVER', 'http://www.cleanandgroom.co.uk'); // eg, http://localhost - should not be empty for productive servers

 

define('HTTPS_SERVER', 'https://moon.secureguards.com/~cleanand'); //https://localhost - should not be empty for productive servers

 

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

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/cleanand/public_html/');

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

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

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, www.cleanandgroom.co.uk - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxx');

define('DB_DATABASE', 'xxxxxxxxxxxxxxx');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

Would it be this one or the admin one?

Link to comment
Share on other sites

Check if /home/cleanand/public_html/ is the correct FS path for your new server.

 

I have asked my host if this is the right setting.

 

What is the difference between the fS and WS settings. It says in the config file

 

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 

But what does this mean in laymans terms?

Link to comment
Share on other sites

FS as the name implies is generally used within the operating system and programs in that physical machine.

 

WS is generally used for the internet. The path is virtual as opposed to physical.

 

Both the following point to the same file, the first is physical the second is virtual.

/home/cleanand/public_html/index.php

www.cleanandgroom.co.uk/index.php

 

There are also absolute and relative paths but that doesn't concern us at this point.

Link to comment
Share on other sites

FS as the name implies is generally used within the operating system and programs in that physical machine.

 

WS is generally used for the internet.  The path is virtual as opposed to physical.

 

Both the following point to the same file, the first is physical the second is virtual.

/home/cleanand/public_html/index.php

www.cleanandgroom.co.uk/index.php

 

Gotcha. I understand.

 

OK, that possibly means that the fs_setting above is correct. However, I will wait for my hoster (lypha) to confirm before continuing. It must be a setting somewhere as it worked fine on the localhost.

Link to comment
Share on other sites

This is incorrect and will put your customer's carts in chaos:

Change

define('HTTP_COOKIE_DOMAIN', '/');
define('HTTPS_COOKIE_DOMAIN', '/');

to

define('HTTP_COOKIE_DOMAIN', 'www.cleanandgroom.co.uk');
define('HTTPS_COOKIE_DOMAIN', 'moon.secureguards.com/~cleanand');

 

 

Image related errors came from this one:

Change

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

to

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

Link to comment
Share on other sites

This is incorrect and will put your customer's carts in chaos:

Change

define('HTTP_COOKIE_DOMAIN', '/');
define('HTTPS_COOKIE_DOMAIN', '/');

to

define('HTTP_COOKIE_DOMAIN', 'www.cleanandgroom.co.uk');
define('HTTPS_COOKIE_DOMAIN', 'moon.secureguards.com/~cleanand');

Image related errors came from this one:

Change

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

to

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

I will give it a try.

Link to comment
Share on other sites

I will give it a try.

 

Ok. Made changes. It doesn't seem any better.

However, in admin there are placeholders for gif files but no images.

 

properties show - ://www.cleanandgroom.co.uk/images/categories/configuration.gif

 

But the image is in admin/images/categories/configuration.gif

 

I think I have been making matters worse with my own meddling last night!

A little knowledge is dangerous.

Link to comment
Share on other sites

I think I have been making matters worse with my own meddling last night!

A little knowledge is dangerous.

Indeed, but the extra knowledge that you gain makes it well worth the trouble. :)

 

Can you post the latest version of your configure.php (without the DB details as above)

Link to comment
Share on other sites

Indeed, but the extra knowledge that you gain makes it well worth the trouble. :)

 

Can you post the latest version of your configure.php (without the DB details as above)

 

admin/configure.php or /include/configure.php ?

Link to comment
Share on other sites

Let's leave the admin's configure.php for now and do the catalog's configure.php first.

Here it is and let me say I really appreciate your time and effort.

 

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

define('HTTPS_SERVER', 'https://moon.secureguards.com/~cleanand');

 

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.cleanandgroom.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'moon.secureguards.com/~cleanand');

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/cleanand/public_html/');

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

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

Link to comment
Share on other sites

Some of your images and the banner are now visible.

 

What I've just found is that

http://www.cleanandgroom.co.uk/images/tabl...und_default.gif

works perfectly but for some reasons

https://moon.secureguards.com/~cleanand/ima...und_default.gif

returns a 404 error.

 

Your server's SSL was somehow misconfigured.

I don't see the banner and I don't get any 404 errors.

I am going to go round my bros and see if it looks different from his machine.

 

Cheers.

Link to comment
Share on other sites

 

This problem has now been fixed.

Aswell as the configuration problems. (thanks Alpha Ray)

 

The problem was due to case sensitivity. In Header.php, called for

clean_groom.gif and the image files was named clean_groom.GIF

 

Simple as that! You learn something new everyday.

Link to comment
Share on other sites

At time of writing, the missing images problem remains.

 

Ray. Are you saying you cannot see the images and logo on the index.php?

Or is it when you try and log in, which then takes you to the secure server?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...