dasickzz Posted May 25, 2015 Share Posted May 25, 2015 Hello,I upgrade my cubecart 4.3.3 to 6.0.4 and there is no problem going into the admin menu, but when I go onto the storefront I just see a white page saying : Access deniedCould somebody help me out? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 25, 2015 Share Posted May 25, 2015 In admin, go to Store Settings, Search Engines tab.Is there anything in the .htaccess file that (you may have forgotten about) that is nrestricting what page(s) could be delivered? Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 (edited) I don't see the .htaccess file in the admin menu but when I compared the new .htaccess file in the root folder against the old one, they definitely don't match up.my .htaccess file at the moment is## File Security<FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all</FilesMatch>#### Apache directory listing rules ####DirectoryIndex index.php index.htm index.htmlIndexIgnore *#### Rewrite rules for SEO functionality ####<IfModule mod_rewrite.c> RewriteEngine On ######## START v4 SEO URL BACKWARD COMPATIBILITY ######## RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ######## END v4 SEO URL BACKWARD COMPATIBILITY ######## RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA]</IfModule> Edited May 26, 2015 by dasickzz Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 26, 2015 Share Posted May 26, 2015 That is the standard CubeCart .htaccess file.So, there then may be one or more files that do not have the file permissions correct. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 Could it maybe got something to do with the index.php ?this is what my index.php looks like.. <?php/** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */die('Access denied'); Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted May 26, 2015 Share Posted May 26, 2015 LOL - that looks like the culprit ! Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 (edited) So the index.php is definitely not right then? Edited May 26, 2015 by dasickzz Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted May 26, 2015 Share Posted May 26, 2015 Yes - that file is not the correct index.php for the store home directory (looks like one from a protected directory) and it is doing exactly what it is asked to do - immediately die with a message saying "Access denied"Ian Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 Then I just need to swap this index.php for the right one? (That index is from the root folder)Where can I get the correct index.php from?Can't check my folders at the moment, am at work.Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 26, 2015 Share Posted May 26, 2015 From the CubeCart download page.Download the entire package. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 26, 2015 Share Posted May 26, 2015 The obvious, and perhaps unanswerable, question is: how did that particular index.php file get in the main CubeCart folder? Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 Exactly that is what I was going to ask. Is there something I need to worry about? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 26, 2015 Share Posted May 26, 2015 That depends: if replacing the existing /index.php file with the file from the download package makes CubeCart 6 work without problems, and you are really more interested in getting your store back online after that point, then maybe you don't want to worry about it.But for others, there is an amount of curiosity that begs to be satisfied. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 Okay I will try it when I'm home this evening and will give you a update. Thanks for the help again Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 26, 2015 Author Share Posted May 26, 2015 I replaced the index.php and now everything is working fine Don't know how that index did get there.. Quote Link to comment Share on other sites More sharing options...
dasickzz Posted May 27, 2015 Author Share Posted May 27, 2015 Okay, just to double check.All my index.php's in my modules folder say:<?php/** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */die('Access denied'); let me guess, thats not supposed to be like that? Just tried to checkout with sagepay and all it does is giving me a blank page.I did download the 6.0.4 and 6.0.3 and every time the index.php says the same? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 27, 2015 Share Posted May 27, 2015 The index.php files that appear anywhere except the main CubeCart folder are there to prevent a site visitor from attempting to get a directory listing. CubeCart does not call any of these other index.php files.The one and only index.php file that has workable code is in the main folder - which you say you have the correct copy in place now.Someone would need to look closely at the SagePay module to determine why it is misbehaving. Quote Link to comment Share on other sites More sharing options...
van_the_man Posted June 1, 2015 Share Posted June 1, 2015 Hi all,I'm having a similar problem after upgrading version v5 to v6.0.5. I have received the following when trying to access my homepage:Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 30Warning: mysqli_options(): Couldn't fetch mysqli in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 32Fatal error: Access denied for user 'XXXXX'@'localhost' (using password: YES) in /home/XXXXX/public_html/classes/db/mysqli.class.php on line 35---My index.php file appears to be fine: <?php/** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */require dirname(__FILE__).DIRECTORY_SEPARATOR.'ini.inc.php';define('CC_IN_ADMIN', false);header('X-Frame-Options: SAME-ORIGIN'); // do not allow iframesglobal $config_default;include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.index.inc.php';$GLOBALS['smarty']->display('templates/'.$global_template_file); ---- Any thoughts? Many thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.