Jump to content

[Resolved] Page showing some items but no content


seeknowevil

Recommended Posts

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.

 

Cubecart.PNG

 

*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.

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...