Paul Bogdan Posted February 12, 2012 Share Posted February 12, 2012 Hi there, I have a problem with the links, I tried to reinstal prestashop few times but no results. On categories, info box..etc the link appears like this: http:// mydomain.com/_PS_BASE_URL_/category.php?id_category=6 So, I don't unterstand why this _PS_BASE_URL_ appears there and I have no idea how to fix it Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted February 13, 2012 Share Posted February 13, 2012 Can you go in your backoffice and look under Preferences->SEO and URL's? At the bottom side of this page you have the domain name and the subdirectory of the webshop. This would be the place to expect something strange. Link to comment Share on other sites More sharing options...
Paul Bogdan Posted February 13, 2012 Author Share Posted February 13, 2012 I'm using the version 1.3.1 'couse the server does not support I have no SEO on ver 1.3.1 10x anyway Link to comment Share on other sites More sharing options...
musicmaster Posted February 15, 2012 Share Posted February 15, 2012 Might it be that the error is in your template files and that these are not overwritten when you re-install? Link to comment Share on other sites More sharing options...
Paul Bogdan Posted February 15, 2012 Author Share Posted February 15, 2012 I've changed the template also, I guess it's something from the server... Link to comment Share on other sites More sharing options...
Paul Bogdan Posted February 15, 2012 Author Share Posted February 15, 2012 Is working fine on my computer, so I.ve no ideea what to do Link to comment Share on other sites More sharing options...
Paul Bogdan Posted February 15, 2012 Author Share Posted February 15, 2012 I've fixed, it was from Classes/Link.php 10x Link to comment Share on other sites More sharing options...
Paul Bogdan Posted February 18, 2012 Author Share Posted February 18, 2012 well, I'm back, I thouth is working but...is not I'm sure that something is worong in Link.php but I don't know how to fix it Link to comment Share on other sites More sharing options...
Kerm Posted February 18, 2012 Share Posted February 18, 2012 Try use file from some newest prestashop version Link to comment Share on other sites More sharing options...
musicmaster Posted September 4, 2012 Share Posted September 4, 2012 Now I am having the same problem on a smaller scale: I made a modification in mailalerts.php in which I use _PS_BASE_URL_. In a testshop it works as desired. But when I put the same file in my real shop I get the text " _PS_BASE_URL_ " in the link too. I made a workaround by adding the following (borrowed from elsewhere in PS) before the line with the problem: if (!defined('_PS_BASE_URL_')) define('_PS_BASE_URL_', Tools::getShopDomain(true)); But is remains a strange dysfunction. Link to comment Share on other sites More sharing options...
zod Posted March 21, 2017 Share Posted March 21, 2017 I know this is an old post, but i am here today because i was searching for an issue with "_PS_BASE_URL_" in a PS 1.6. I think others could have my same problem. I switched a website from HTTP to HTTPS but a module was not working fine with images, this because their paths were http and not https. In the template there was a useless smarty variable. I spent some time to find how that value was built in the PHP functions. Eventually i found the cause, Prestashop is using 2 different constants, you can find them in the file "classes/controller/Controller.php". Function init(). So we have "_PS_BASE_URL_" for http requests and "_PS_BASE_URL_SSL_" for SSL enabled websites. The bad module was building the image paths using the first one!!! So, i fixed the function with the right version. Link to comment Share on other sites More sharing options...
Recommended Posts