aerosmith Posted October 16, 2008 Share Posted October 16, 2008 I currently have an issue with the following site, http://www.newfurniture4you.co.uk/index.php?cPath=99 The categories are not updating the index " Middle page" This started off with the site having the following error message "Unable to determine the page link" I updated the /includes/functions/html_output.php From // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } to // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID, $spider_flag; global $link; if($page == '') { $page = basename($_SERVER['PHP_SELF']); } /* if (!tep_not_null($page)) { // die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR1); }*/ if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { //die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR2); } This resolved the link error, that would not show up anything, but now categories is not working, If anyone can assist, Id greatly appreciate any advise, Thanks -Scott Link to comment Share on other sites More sharing options...
aerosmith Posted October 16, 2008 Author Share Posted October 16, 2008 I think i solved it ;) by oddly enough turning on SEF urls worked. I currently have an issue with the following site,http://www.newfurniture4you.co.uk/index.php?cPath=99 The categories are not updating the index " Middle page" This started off with the site having the following error message "Unable to determine the page link" I updated the /includes/functions/html_output.php From // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } to // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID, $spider_flag; global $link; if($page == '') { $page = basename($_SERVER['PHP_SELF']); } /* if (!tep_not_null($page)) { // die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR1); }*/ if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { //die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); die('</td></tr></table></td></tr></table><br><br><font color="#ff0000">'.TEP_HREF_LINK_ERROR2); } This resolved the link error, that would not show up anything, but now categories is not working, If anyone can assist, Id greatly appreciate any advise, Thanks -Scott Link to comment Share on other sites More sharing options...
failsafe Posted October 16, 2008 Share Posted October 16, 2008 I currently have an issue with the following site,http://www.newfurniture4you.co.uk/index.php?cPath=99 The categories are not updating the index " Middle page" Looks like it's to do with you having a mixture of SEO URLs and not? See the category links down the left hand side, mouse over them and I see URLs of the form ....index.php/cPath/99 and not index.php?cPath=99. Perhaps you should focus your attention on this aspect? Link to comment Share on other sites More sharing options...
aerosmith Posted October 16, 2008 Author Share Posted October 16, 2008 Looks like it's to do with you having a mixture of SEO URLs and not?See the category links down the left hand side, mouse over them and I see URLs of the form ....index.php/cPath/99 and not index.php?cPath=99. Perhaps you should focus your attention on this aspect? http://www.newfurniture4you.co.uk/index.php/cPath/60 Im having a problem now again hehe :) when i select a page that has multiple items and pages, If i choose page 2 it gives me a 404 Link to comment Share on other sites More sharing options...
aerosmith Posted October 16, 2008 Author Share Posted October 16, 2008 is this caused by SEF? and if so, If i remove it then how to i fix the original issue. http://www.newfurniture4you.co.uk/index.php/cPath/60 Im having a problem now again hehe :) when i select a page that has multiple items and pages, If i choose page 2 it gives me a 404 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.