Jump to content

Multisite - 500 Internal Server error


Recommended Posts

Hello all,

 

I have a site that I've been running for about a year.  I'm running a multisite store so that customers can be shared.  I have a main site, and 3 other stores running under the same group.

 

Everything was working fine until I wanted to create another store just as I had before, but the new store after I created it shows an Internal Server Error (500).  The other shops work fine except the new one.

 

I've been looking for bug reports about this but I haven't found any.  Does anyone have any suggestions?

 

Running PrestaShop 1.6.0.9

 

 

Link to comment
Share on other sites

A little update.....I downloaded a copy of the DB and Site locally running on XAMPP, upgraded to 1.6.1.2 and I have the same problem.  I also noticed that with the additional store, this also broke the other subcategories for each store giving me another 500 error.  The main URL (Like http://www.domain.com/store1 and http://www.domain.com/store2) worked, but when drilling down to a category, it showed the 500 Error.

 

Now that I have a local copy, I can play around with the settings to see if I come up with a solution.  If I do, I will post back here.  (But if you have any suggestions, I would appreciate it.   :) )

 

PM me if you would like the URL.  I don't want to post it publicly.

Link to comment
Share on other sites

I have a solution....I think....

 

It seems that something isn't working on the .htaccess file that is supposed to be automatically modified by PrestaShop when creating the 5th store.  It doesn't add a very critical part.  (See below)

 

First, I regenerated the .htaccess file by doing this:

 

http://www.templatemonster.com/help/prestashop-1-6-x-how-to-regenerate-htaccess-file.html

 

That didn't fix it, but I feel it is a good baseline step if you made a bunch of changes trying to figure it out.  If you are using multistore, do both!  It doesn't come right out and say it, but trust me, don't skip to the multistore section and think that is all you have to do.

 

Then I had to add the 4 lines below to the section for the new store in the .htaccess file:

 

RewriteCond %{HTTP_HOST} ^localhost:81$
RewriteRule ^newsite$ /newsite/ [L,R]
RewriteCond %{HTTP_HOST} ^localhost:81$

RewriteRule ^newsite/(.*) /$1 [L] 

 

It takes a little to find the right section, so before you do ANYTHING, make a backup of the .htaccess file just in case.  So far, my local test and production are working again.  Thanks for all the help!   :P   (Just kidding.  Hopefully someone else will find this useful.)  At least I was able to use the forum to workout my ideas.   ;)

 

Cheers!

Rob

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...