hjay Posted February 1, 2013 Share Posted February 1, 2013 Just installed 1.5.3.1 on a MAMP installation (on Mac) to test out Prestashop. Install appeared to go OK, database etables created and populated, got green ticks and success at every step and the final 'where do you want to go next' Well, the shop is there......but the admin isn't! It asked me to rename the admin folder, so I did so. But the admin URL doesn't get anything, just completely blank page. The MAMP server is running PHP 5.4.4 What next? any ideas?... HJ Link to comment Share on other sites More sharing options...
vekia Posted February 1, 2013 Share Posted February 1, 2013 my dumb question: you trying to open localhost/your_renamed_admin_directory ? if so, try to check error log located in php/logs or apache/logs Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 (edited) PHP error log, she say: [01-Feb-2013 14:40:44 UTC] PHP Warning: require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 [01-Feb-2013 14:40:44 UTC] PHP Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 [01-Feb-2013 14:41:06 UTC] PHP Warning: require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 [01-Feb-2013 14:41:06 UTC] PHP Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 [01-Feb-2013 14:42:00 UTC] PHP Warning: require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 [01-Feb-2013 14:42:00 UTC] PHP Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31 Edited February 1, 2013 by hjay (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 That looks like it is trying to open the directory admin. But can't because you renamed it. You need to open your internet browser and type in localhost/whatever-you-renamed-your-admin-directory Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 Well yes, the installation told me to rename my admin directory......so I did. I renamed it /nimda - but it won't open it. Strikes me it's ignoring any renaming and just trying to find /admin.....which it obviously can't after I've renamed it! Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 Are you typing the address manually into your browser? Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 Errr....yep. That's what the address bar is for, isn't it?........ http://localhost:8888/prestashop/nimda Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 Right. This is a puzzle, because the shop itself is working ... Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 (edited) Indeed! That is exactly the puzzle...... shop displays fine, but absolutely no admin, totally blank Edited February 1, 2013 by hjay (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 hjay, I have no idea what is wrong, I don't use your server. But after a search on the Internet, I found this. Goto: Applications/MAMP/conf/apache/ Find this code: <Directory /> Options Indexes FollowSymLinks AllowOverride All </Directory> Change to this: <Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory> This is probably a waste of your time, but I would try it. If it dosen't work, please change back. Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 Also, is there a default .htaccess file in your prestashop directory or in htdoc folder? If so try and delete them. Make copies first. Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 Hi Bill, thanks for dipping into this! The Apache <Directory> setting is already set to 'AllowOverrideNone' by default. No, there is no default .htaccess file in the Prestashop directory, nor in /htdocs Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 Just for something to try, if you copy EVERYTHING from your prestashop directory and paste it directly into the htdoc folder. Then access the site like this, http://localhost:8888/ http://localhost:8888/nimda Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 (edited) Another thing to try, check to see if these are on, if not turn them on to check for errors. prestashop/config/defines.inc.php define('_PS_MODE_DEV_', false); And also check Apps/MAMP/conf/php5x/php.ini and set display_startup_errors on However, if you find this PHP setting is already on, turn it off as it can sometimes cause problems. Edited February 1, 2013 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 (edited) Also, I found several people installed prestashop and could not reach the BO until they rebooted the machine. Found this in the french forum. Edited February 1, 2013 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
hjay Posted February 1, 2013 Author Share Posted February 1, 2013 Thanks for those ideas, Bill, I'll look into them. What's a BO, by the way?.... Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 1, 2013 Share Posted February 1, 2013 (edited) PS - Prestashop BO - admin FO - your store front. I'd try the reboot first. Edited February 1, 2013 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
hjay Posted February 26, 2013 Author Share Posted February 26, 2013 Sorry, been away for a while........ but hey, a reboot got it working My problem now is in trying to add a 'combination' for a product. It says to choose attributes and values (also in the generator), but no attributes or values are shown or available from any drop down (or in the generator). Basically I have a need to display a product which has five different sizes, each size with a different base price, and with quantity discounts on the base prices. Possible? Link to comment Share on other sites More sharing options...
yaniv14 Posted February 26, 2013 Share Posted February 26, 2013 Before you can generate combination you need to create attributes and values. Under catalog you will find attributes and values, just create attribute like 'size' and than create has many values as needed to that attribute (small, medium, xl.....). After you created those values and attributes you will be able to choose them when you generate combination Link to comment Share on other sites More sharing options...
hjay Posted February 26, 2013 Author Share Posted February 26, 2013 Thanks for that, yaniv14. OK, I see what to do, there. But here's an additional question...... How do I apply quantity discounts for each of those attribute values? Because each item size (attribute value) has a different price, it will also have different quantity discount values. eg. Widget 1 Size 55mm: 1-5 Price: 20.00 6-10 Price: 18.00 11+ Price: 15.00 Size 80mm: 1-5 Price: 25.00 6-10 Price: 23.00 11+ Price: 21.00 You see what I mean? Link to comment Share on other sites More sharing options...
Recommended Posts