seeknowevil Posted November 10, 2016 Share Posted November 10, 2016 Hi, I've just started using Cubecart and I've ran in to a problem where the pages load and show all the menus, latest products, best selling products and banners, But they aren't showing any of the main content. For example if I go to a product page or the registration page it all just looks like the attached image. *edit: I just did and an upgrade from 6.0.2 to 6.1.1 and now I get the same as above when I try to access the admin pages. Quote Link to comment Share on other sites More sharing options...
keat Posted November 10, 2016 Share Posted November 10, 2016 The admin page has to be followed by .php (i'm not sure at what point this came in) so for example. www.mystore.com/admin.php Regarding your initial problem, did you add any content to the homepage layout ? and is the status checked. Quote Link to comment Share on other sites More sharing options...
seeknowevil Posted November 10, 2016 Author Share Posted November 10, 2016 Thanks keat, I've worked out the admin part. With the update to 6.1.1 the admin address page has change from admin.php to admin?????.PHP. Yeah I've added content. It's not even showing the registration page. Quote Link to comment Share on other sites More sharing options...
keat Posted November 10, 2016 Share Posted November 10, 2016 down the left hand column on the admin side, if you go to 'documents' is the status enabled for your pages, and does the homepage have a radio button enabled ? Maybe take a look in "store settings" and take a look at the Search Engine tab, maybe it has something to do with SEO Also in 'store settings' - 'advanced' you can enable debugging. when you try to open a page, there should be a whole load of text and code at the bottom. See if it's generating any errors. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 10, 2016 Share Posted November 10, 2016 If I use this URL: /index.php?seo_path=keep-calm-and-breath-on, I get to the product page. That tells me the .htaccess file is not rewriting the URL CubeCart is supposed to install an appropriately coded .htaccess file if one does not exist. Even so, for rewriting to occur, the web server must be configured to load its rewriting module, and then allow .htaccess files to enable it (a directive called 'override'). Please consult with your hosting provider to determine how to configure the web server to allow for URL Rewriting. Quote Link to comment Share on other sites More sharing options...
keat Posted November 10, 2016 Share Posted November 10, 2016 if it helps, here are the contents of my .htaccess file. It does have a few additional entries to block a few bad bots which were generating some rogue traffic. You could always take these out. ##### START CubeCart .htaccess ##### ## File Security <FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> #### Apache directory listing rules #### DirectoryIndex index.php index.htm index.html IndexIgnore * #### Rewrite rules for SEO functionality #### <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ######## 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> ## Default store 404 page ErrorDocument 404 /index.php ##### END CubeCart .htaccess ##### #### Block Semal and Buttons for Websites #### # block visitors referred from semalt.com RewriteEngine on RewriteCond %{HTTP_REFERER} semalt\.com [NC] RewriteRule .* – [F] # End semalt block # block referer spam buttons for website RewriteEngine On RewriteCond %{HTTP_REFERER} buttons\-for\-website\.com RewriteRule ^.* - [F,L] # End buttons for website block #### End Semalt and Buttons Block #### # May Speed Up Page Loading. # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Block Perl Hackers RewriteCond %{HTTP_USER_AGENT} libwww-perl.* RewriteRule .* ? [F,L] Quote Link to comment Share on other sites More sharing options...
seeknowevil Posted November 11, 2016 Author Share Posted November 11, 2016 Thanks for the response guys. I had a feeling it was the htaccess I tried using the files supplied by keat with no luck. I've also tried removing everything from the folder and db and starting again and it's still not working. The store is located in a sub-directory on my site called store would the htaccess need to be modified to account for that? Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 11, 2016 Share Posted November 11, 2016 We would recommend that RewriteBase / be set to have the subdirectory: RewriteBase /store/ Other than that, you might also want to change the ErrorDocument 404 /store/index.php We urge you to contact your hosting provider to confirm that the web server is configured for URL Rewriting. The .htaccess directives for doing that will not work unless the web server is told to enable that functionality. Quote Link to comment Share on other sites More sharing options...
seeknowevil Posted November 11, 2016 Author Share Posted November 11, 2016 Woohoo success. I tried the /store/ which it didn't like but when I changed it back to / it started working. Thanks for your help. bsmither: Do you ever sleep? Quote Link to comment Share on other sites More sharing options...
keat Posted November 11, 2016 Share Posted November 11, 2016 6 hours ago, seeknowevil said: bsmither: Do you ever sleep? I think he must, but only briefly. 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.