Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error showing product details


CodeCutter

Recommended Posts

Posted

Please see my website www.organio.org

 

If I click on a category, I get an message "Error! Unable to determine the page link!".

 

I found that if I comment following line in index.php, it does not give this error.

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

 

Analysis of this file led me to website\includes\classes\split_page_results.php

 

I found that the variable $PHP_SELF is not being set for this file.

 

Can someone tell me how to fix this problem? Thanks in advance.

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted

I did some research and found that $PHP_SELF is set in application_top.php

I am printing it on top of the of the page.

 

However, this variable gets reset when I want to go to any product category. Any idea what is causing this and how to fix this? Thanks.

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted

I added following code to index.php

 

require('includes/application_top.php');

/* test start */

$PHP_SELF = $_SERVER['PHP_SELF'];

print "PHP_SELF beginning of index.php = " . $PHP_SELF;

/* test end */

 

 

This seems to work okay ONLY when product page has only 1 page. For the first category, we have 2 pages so it bombs when I click on page 2.

 

I tested this code in demo site and $PHP_SELF always shows /index.php

If I add code as above, it changes variable to cPath/27 etc.

 

I think it is better to find how the variable is getting reset? I don't know much about HTML/PHP, but my question is that wouldn't application_top.php be loaded "every" time I clicked on index.php (either Home or inside a category)? If yes, then PHP_SELF should be getting set each time, so how is it getting reset?

Am I missing something?

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted

I think that I have resolved the issue temporarily. In the Admin section, I set "Use search-engine safe URL" = False.

 

But the real question still remains. Is this a bug in osCommerce? or is this something which will prevent me from using Use search-engine safe URLs?

 

I would like to test this further. Any help from experts will be appreciated.

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted

No bug some browsers and/or web servers can't handle the safe URL format and come up with an invalid link when changing it to a "real" URL.

 

Tom

Posted

<confused mode>

 

I don't think it has anything to do with browser. I am using same browser.

 

Goto www.mags4cheap.com

Click on "Automobile and Cycles" category.

It will show 4 pages and you can browse easily for all pages.

 

Does it mean the problem is only for me? I STILL don't know where the variable is getting reset and how to avoid it and still have search engine safe-URL's.

 

</confused mode>

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Archived

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

×
×
  • Create New...