capsulas Posted July 28, 2003 Posted July 28, 2003 Hello from Mexico !! I have installed the contribution that adds a News Box (http://www.oscommerce.com/community/contributions,916/page,7). Everything works correctly in admin area and almost in store page.. But the Trouble are... Within the box, the news are showing, creating a Link to another page with an explanation with greater detail. http://www.mysite/catalogo/catalogo/news.php This link is wrong, is duplicate (catalogo/catalogo) The right link should be (and it?s working correctly): http://www.mysite/catalogo/news.php The code that I suppose include the wrong link is... <?php require('includes/application_top.php'); if (!tep_session_is_registered('current_path')) { $current_path = DIR_FS_DOCUMENT_ROOT; tep_session_register('current_path'); } if ($HTTP_GET_VARS['goto']) { if ($HTTP_GET_VARS['goto'] == '..') { $current_path = substr($current_path, 0, strrpos($current_path, '/')); } else { $current_path .= '/' . $HTTP_GET_VARS['goto']; } tep_redirect(tep_href_link(FILENAME_FILE_MANAGER)); } ?> What do you think would it be cause that? I really appreciate any idea.
Guest Posted July 28, 2003 Posted July 28, 2003 Usually this means that something is misconfigured in configure.php. If you want to post anything in configure.php that includes catalog (or catalogo as the case may be), someone might be able to give you a more definitive answer. Good luck, Matt
capsulas Posted July 29, 2003 Author Posted July 29, 2003 Thanks Matt You gave me some ideas to compare differentes version. Now, in the file configure.php, I added a /, and now it is running slowly but its running. Before define('DIR_WS_CATALOG', 'catalogo/'); // absolute path After: define('DIR_WS_CATALOG', '/catalogo/'); // absolute path Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.