sergito Posted June 23, 2010 Share Posted June 23, 2010 Hi people, i'm working in a new enterprise. It has a working prestashop web platform, and now i want to install it locally. I have the database script creation, obtained with mysqldump. I've replaced all the references to "www.oursite.com" by "my_local_path". Ive created database and configurated Prestashop database user and pass. Everything works ok, i can see prestashop login to control panel, but when prestashop validates my employee user then i get redirected again to login page. I've checked mysql log during the login and i think everything is ok? There are four connections from the correct prestashop database user. I provide the log.What could be happening? Any help would be gratefulthanks in advance sql.txt Link to comment Share on other sites More sharing options...
MrBaseball34 Posted June 23, 2010 Share Posted June 23, 2010 Did you go into your Preferences in the admin control panel and set the path to the directory that contained your shop?We have several and I have them all installed on localhost but in different directories.For one, I use E:/wamp/www/mechanic, so the PS directory in my Preferences is set to /mechanic/My documentroot is set to "E:/wamp/www/" in my httpd.confAlso make sure __PS_BASE_URI__ in your settings.inc.php is set correctly point to your directory:Here is ours: define('__PS_BASE_URI__', '/mechanic/'); Link to comment Share on other sites More sharing options...
sergito Posted June 23, 2010 Author Share Posted June 23, 2010 i didn't go to preferences because my login isn't success. When i'm in the relative URL "login.php?redirect=index.php" and put my email and pass, then a get redirected again to "login.php?redirect=index.php". However, my user is correctly validated.The directories structure of live server are the same as localhost's. Remember, i can see login page tipping "http://localhost/......login.php?redirect=index.php" or tipping "http://localhost/...../admin123". It's supposed that "http://localhost/...../admin123" redirects "http://localhost/......login.php?redirect=index.php", taking a look to login.php script. But i don't understand, in that php code or somewhere else, why i get redirected to "http://localhost/......login.php?redirect=index.php". Link to comment Share on other sites More sharing options...
MrBaseball34 Posted June 23, 2010 Share Posted June 23, 2010 Did you check you .htaccess file to see if there is anything in there that may be causing it to redirect? Link to comment Share on other sites More sharing options...
sergito Posted June 23, 2010 Author Share Posted June 23, 2010 well, there aren't any .htaccess into login.php s directoryinto the root directory, where "classes", "config" etc are in, there are a .htaccess, but only contains rewriting rules:# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^lang-([a-z]{2})/([0-9]+)\...................# Catch 404 errorsErrorDocument 404 /tienda/404.phpand any of them (i think) affects neither "login.php" and "index.php"thanks for your fast replies Link to comment Share on other sites More sharing options...
MrBaseball34 Posted June 24, 2010 Share Posted June 24, 2010 what version is your shop? Link to comment Share on other sites More sharing options...
sergito Posted June 24, 2010 Author Share Posted June 24, 2010 prestashop 1.3.0.3php-5.2.9apache_2.2.11mysql-essential-5.0.77Windows XP service pack 3i'll try to put "www.oursite.com" into etc/hosts pointing to localhost, and install original mysql script, but i think i'll achieve the same result. Link to comment Share on other sites More sharing options...
svetaines1 Posted September 27, 2010 Share Posted September 27, 2010 Same problem for meif I type www.mydomain.com, server redirect me to www.mydomain.com/login.php?redirect=index.php (which is login page to BO).If I type mydomain.com, everything works fine Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 27, 2010 Share Posted September 27, 2010 Check your .htaccess file. Link to comment Share on other sites More sharing options...
sergito Posted September 27, 2010 Author Share Posted September 27, 2010 ok now i know what is the point of that .htaccess file. Finally we installed prestashop into a subdomain on the remote server. Now we have another problem, which could be related to all of this (i think). The post is at "Configuring & using PrestaShop" forum, and the thread is "Friendly URLs showing not existing products" Link to comment Share on other sites More sharing options...
Radu Posted September 27, 2010 Share Posted September 27, 2010 sergito try to turn off the friendly urls and then turn it on again. firstly make sure .htaccess is writable by the server Link to comment Share on other sites More sharing options...
sergito Posted September 27, 2010 Author Share Posted September 27, 2010 i've tried all of that with no success. In fact, the following url:http://www.misite.com/1-.htmlshows product 1. The following:http://www.misite.com/2-.htmlshows product 2, and son on....looks like prestashop only have in consideration the id_product, and all the following characters are ignored Link to comment Share on other sites More sharing options...
sergito Posted September 27, 2010 Author Share Posted September 27, 2010 and for example, if we have a category with id= 1916, the url:http://www.misite.com/1916-.htmlshows the category page with id=1916The extension of the file is caught ok, because for example the url:http://www.misite.com/1916-.hmlshows our shop error page Link to comment Share on other sites More sharing options...
Radu Posted September 27, 2010 Share Posted September 27, 2010 I understand your problem I developed a module: http://www.ecommy.com/products/module-prestashop-p-35.htmlhowever that module is comercial, if you have any other questions please let me know. Link to comment Share on other sites More sharing options...
sergito Posted September 27, 2010 Author Share Posted September 27, 2010 ok i understand the offer, but i don't understand why mi site has that behaviour Link to comment Share on other sites More sharing options...
Radu Posted September 27, 2010 Share Posted September 27, 2010 maybe I don't understand your problem so sorry for that offer.http://www.misite.com/1-.html it is like that in any presta installam I missing something maybe? Link to comment Share on other sites More sharing options...
sergito Posted September 28, 2010 Author Share Posted September 28, 2010 ok in my site, friendly urls doesn't work correctly.Having a category with id=1916, the following url:http://www.misite.com/1916-.htmlshows products of category 1916. Having a product with id=1, the following url:http://www.misite.com/1-.htmlshows product page with id=1 Link to comment Share on other sites More sharing options...
Radu Posted September 28, 2010 Share Posted September 28, 2010 look here - a random example:http://www.jolidragon.com/19-recipients'>http://www.jolidragon.com/19-recipients goes to category 19http://www.jolidragon.com/19- still goes to category 19this is how default presta is workingfor the products:http://www.jolidragon.com/recipients/270-wine-karafe-carafe-a-vin-klean-kanteen-800ml-inox.html'>http://www.jolidragon.com/recipients/270-wine-karafe-carafe-a-vin-klean-kanteen-800ml-inox.htmlor http://www.jolidragon.com/recipients/270-.htmlpoints to the same product page-----------can you explain better on the above example? Link to comment Share on other sites More sharing options...
sergito Posted September 28, 2010 Author Share Posted September 28, 2010 then, are you telling me that this behaviour is the standard behaviour of prestashop? Link to comment Share on other sites More sharing options...
Radu Posted September 28, 2010 Share Posted September 28, 2010 exactly.... that's why I created that module to help my clients I work with avoid indexing issues Link to comment Share on other sites More sharing options...
sergito Posted September 28, 2010 Author Share Posted September 28, 2010 wow, then now i understand everything but in any case, the .htaccess must not be well constructed. With all respect to developers, because i think that prestashop is a good platform, this is a fatal behaviour. Then google will index bad pages, and users may click on:http://www.misite.com/1-.htmland see product 1 Link to comment Share on other sites More sharing options...
Radu Posted September 28, 2010 Share Posted September 28, 2010 yes... hopefully that will be fixed in the future - and the fix is not impossible as modules like mine prove it.the problems appear when bad links appear over the internet to your website and google will index it. You may be banned for duplicate content.however prestashop still remains a good software and there are many websites doing good selling to prove it Link to comment Share on other sites More sharing options...
sergito Posted September 28, 2010 Author Share Posted September 28, 2010 yes i think that prestashop is a very good platform and enough for make a good business. Although there are details which suggests that is a relatively young software. I think that the importing process is not very reliable and fast for shops having a big number of products. Actually we have 600 and we are encountering some problems and difficulties.Very carefully i'm doing changes in the code, but also prestashop lacks of development documentation. A good point is that the code files are well separated and structured i think.thnaks for your replyregards Link to comment Share on other sites More sharing options...
svetaines1 Posted September 29, 2010 Share Posted September 29, 2010 Please, someone help me to figure out what should I do.When I type my domain name with www, Prestashop redirect me to BO control panel http://www.mydomain.com/login.php?redirect=index.phpit is doesn't matter there is htacess file on server or not. Any advice? Link to comment Share on other sites More sharing options...
svetaines1 Posted October 1, 2010 Share Posted October 1, 2010 Still looking for answer:Why http://www.crystalluna.com/login.php?redirect=index.php, redirecting me to BO control panel.Is it server configuration problem, o Presta doing something wrong.As I wrote before, no matter SEO turned on/off or htacess file exist on server or not. Result is same... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now