Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"unable To Determine Page Link" After Php5


Alley Kat

Recommended Posts

After a PHP5 upgrade broke our store most things are now fixed, but the homepage gives the "Unable to determine the page link!" error.

 

If <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> is removed or commented out, the error goes.

 

If the page is renamed to other than 'index.php', the error also goes...

 

Any ideas?

Thanks

Bill

Link to comment
Share on other sites

Edit to the above: this morning it seems commenting FILENAME_NEW_PRODUCTS doesn't stop the error....

 

Here's the page as it should be: http://www.letsbuygold.com/index_ori.php

Here's the broken live site http://www.letsbuygold.com

 

Renaming index.php to anything stops the error appearing.... ?

 

Also when the error appears, the right column is empty.

After viewing a product and returning to the home page, the error does not appear...

Link to comment
Share on other sites

Edit to the above: this morning it seems commenting FILENAME_NEW_PRODUCTS doesn't stop the error....

 

Here's the page as it should be: http://www.letsbuygold.com/index_ori.php

Here's the broken live site http://www.letsbuygold.com

 

Renaming index.php to anything stops the error appearing.... ?

 

Also when the error appears, the right column is empty.

After viewing a product and returning to the home page, the error does not appear...

My line says

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

maybe post your file?

Link to comment
Share on other sites

Hi Coopco, my line's the same as yours, I just didn't quote the cell tags there.

 

Well I seem to have got some sort of a rough fix now:

Changing this line in application_top didn't make any difference:

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; to:

if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF'];

 

So I added this, which did make a difference: $PHP_SELF = $_SERVER['SCRIPT_FILENAME'];

 

Still not perfect. In /includes/modules/new_products.php I changed this

 

new contentBox($info_box_contents);

to this:

if (isset($new_products)) { new contentBox($info_box_contents); }

And it seems OK now, although these 'fixes' feel like papering over cracks... Brain shot to bits now, was up to 3am sorting, so I hope the above makes some sort of sense...

Link to comment
Share on other sites

Hi Coopco, my line's the same as yours, I just didn't quote the cell tags there.

 

Well I seem to have got some sort of a rough fix now:

Changing this line in application_top didn't make any difference:

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; to:

if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF'];

 

So I added this, which did make a difference: $PHP_SELF = $_SERVER['SCRIPT_FILENAME'];

 

Still not perfect. In /includes/modules/new_products.php I changed this

 

new contentBox($info_box_contents);

to this:

if (isset($new_products)) { new contentBox($info_box_contents); }

And it seems OK now, although these 'fixes' feel like papering over cracks... Brain shot to bits now, was up to 3am sorting, so I hope the above makes some sort of sense...

It worries me that you have had to go to this extreme. Mostly osc works with php5. See

http://www.oscommerce.com/forums/index.php?showtopic=177004

 

and are you using the latest version of osc

http://www.oscommerce.com/solutions/downloads

 

and done the minor fixes to that.

 

I am running php5 on my local pc and have not had any of the problems that you are getting.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...