dennis1981 Posted August 13, 2009 Share Posted August 13, 2009 Hello to all, big thanks to the development team and the lovely community of Prestashop. I locally run a copy of Prestashop in my MacBook, using Apache and PHP5, with no problems at all.I now try to install it in my company's dedicated server using IIS (Windows Server 2003 32bit) I know this is the worst set up, but i dont have permission or the privilege to change web server technology at this stage im afraid When i first try to start the install script through my browser, i.e. ../prestashop/install, the page is loaded but shows the following error: "This application need you to activate Javascript to correctly work."http://dev.interdevmedia.com/sac/install/Does anybody know why this would come out, or does anybody else have seen it???I would appreciatte a lot any kind of comments!!!Thanks to all for your time and HUGE THANKS to the Prestashop Development team!!!!Regards Dennis Link to comment Share on other sites More sharing options...
marcoquattro Posted August 13, 2009 Share Posted August 13, 2009 hi, I had same error.You have to replace row n. 9 into install/index.php file ($_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];) with this code:$_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],"/" )+1);there was a problem with servers that doesn't suport $_SERVER['REQUEST_URI'] variableMarco Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 Thank you very much Marco, ill give it a go now and ill let you know!! Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 No it doesnt work im afraid ( Still same error!!I would appreciate any help please!!!! I cant find any documentation (( Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 These are the settings for REQUEST_URI in my /install/index.php file/* Redefine REQUEST_URI if empty (on some webservers...) */$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']);if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '') $_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],"/")+1);if ($tmp = strpos($_SERVER['REQUEST_URI'], '?')) $_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp);define('INSTALL_VERSION', '1.2.1.0');define('MINIMUM_VERSION_TO_UPDATE', '0.8.5');define('INSTALL_PATH', dirname(__FILE__));define('PS_BASE_URI', substr($_SERVER['REQUEST_URI'], 0, -1 * (strlen($_SERVER['REQUEST_URI']) - strrpos($_SERVER['REQUEST_URI'], '/')) - strlen(substr(substr($_SERVER['REQUEST_URI'],0,-1), strrpos( substr($_SERVER['REQUEST_URI'],0,-1),"/" )+1))));define('PS_BASE_URI_ABSOLUTE', 'http://'.htmlspecialchars($_SERVER["HTTP_HOST"], ENT_COMPAT, 'UTF-8').PS_BASE_URI); Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 I tried everything i physically can..mac-apache-php5..works simply GREAT !!!!....but on IIS doesnt seem to work...does anybody know what i should configure to enable the installation script to work???? I modified the REQUEST_URI the way you told me but it doesnt work still...i get the same error :"This application need you to activate Javascript to correctly work."Could anyone help me please ? Im sure there should be a workaround that, as i meet all the specifications for running the /install/index.php scriptThank you!!!Dennis Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 This screenshot i hope do be of some help..this is the result i get from firebug's Net panel when i load the /install/index.php script...i have changed the settings for REQUEST_URI but still nothing.. $_SERVER[‘REQUEST_URI’] = substr($_SERVER[‘SCRIPT_NAME’],0,strrpos($_SERVER[‘SCRIPT_NAME’],”/” )+1); the Get logo.jpg provides a 404 not found message.. Does anyone have any ideas please? Link to comment Share on other sites More sharing options...
Trip Posted August 13, 2009 Share Posted August 13, 2009 Hi, your site header looks strange to me. <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>PrestaShop™ v1.2.1.0 Installer</title> <link rel="stylesheet" type="text/css" media="all" href="view.css"/> [removed][removed] [removed][removed] [removed][removed] [removed][removed] <link rel="shortcut icon" href="/sacimg/favicon.ico" /> It tries to include scripts from /sacjs/ and /sacimg/ wich should be /js/ and /img/ Maybe I am totally wrong but I would focus on this for finding the error. Regards, tripUpdateOk, I see the code is removed for preventing XSS-attacs but I hope you see what I mean. Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 Thank you very much for your input Trip!!!! You were 100% correct!!! in my /instal/index.php 5 .js were missing.. [removed][removed] simply change to: [removed][removed] and i did this for all the javascripts that could not be found! now..after synchronising presta with my database, instead of going further, it freezes there and 'Net' from firebug does not show any errors.....anyways i have the whole night until to go to work tomorrow, im sure something will pop out Thanks again for your comment and BIG THANKS to the lovely community and developers of Presta shop!!!Regards Dennis Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 my code is removed cause it included full paths...lol...i can be really stupid sometimes... thanks Presta team for protecting dumb people like me!!! Link to comment Share on other sites More sharing options...
dennis1981 Posted August 13, 2009 Author Share Posted August 13, 2009 the battle of stupidity continues.. as this framework is new to me (only found out about Presta couple days ago..) im not fully aware of its file structure and in every problem that appears..i dont know at which place to look at, to locate the problem..for instance i had a problem connecting my db, so i went through /myprestashop/config/settings.inc.php and i found out an explanation to my dumbness.....now in this case, after having deleted the installation folder, and rename the admin.. when i try to login to the BO, the redirect.php is trigerred and im forwarded to the page that asks for e-mail address and password (which btw they rnt accepted)...does anybody know where should i look at to find my mistake ? in which place inside the file structure of the framework?btw..i have know both site's (local- mac, apache : remote- windows, iis) pointing to the same database, which is located at my hosting provider...do you think this might be of a cause ? Link to comment Share on other sites More sharing options...
dennis1981 Posted August 14, 2009 Author Share Posted August 14, 2009 ...continuing from the previous post, which i cant login into the BO through the admin page (which i have renamed) i get the following errors, which have been provided by Net-Firebug.In the 'Response' tag there is :-Get dennis (which is is the admin folder that i have already renamed) 302 Found and in the HTML:-Failed to load source for http://localhost/sac/dennisDoes anybody know where should i look at to find my mistake please?Thank you Link to comment Share on other sites More sharing options...
dennis1981 Posted August 14, 2009 Author Share Posted August 14, 2009 As i had two versions of my website (one local and one remote) connecting to the same database there was a conflict with my admin details..i deleted both copies...then deleted the database and re-install 1.2.1 version of presta at my company's web server... ---by the way Donhost's control panel (which is written in Perl) for IIS ( is extremely unfriendly and does not allow you to create more than one database for each account you create in the server--- unfortunately the /install/index.php does not load the correct paths for the javascript libraries and i have to manually delete the php entries that have been created inside index.php in the [removed] tags fro javascript...but other than that prestashop has been finally installed in y web server! 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