Zen Cart Logo
Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Views: 580,154

Results 1,061 to 1,080 of 2,247
17 Jan 2010, 22:56
#1061
kaddie avatar

kaddie

New Zenner

Join Date:
Feb 2009
Location:
In the Woods of Texas
Posts:
63
Plugin Contributions:
0

MultiSite Module Support Thread

LittleOleMeDesigns:

I just installed this on a store that is installed in a sub-directory... example: https://www.myurl.com/zen-cart and it works fine for the store, but when I visit the main website that's located at https://www.myurl.com I'm now getting "the domain https://www.myurl.com does not exist."

Is there something different that I need to do when the store is in a subdirectory like this???

If you have your store files inside a sub-directory you will need to go to example: www.myurl.com/zen-cart. Since you do have your store in a sub-directory then you will need a index.php page in your root that links to your store directory.

MaryMae

17 Jan 2010, 23:02
#1062
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: MultiSite Module Support Thread

There is an index.php file in the root that has a link in it to go to the store, and I am going to https://www.myurl.com/zen-cart to get the store... the store is working fine since I installed the multi-site module, but the main website is not.

Perhaps I should have clarified this better. I have a standard html website on the root (https://www.myurl.com) and I have the store in a sub-directory (https://www.myurl.com/zen-cart). From the standard html website, there is a link in the header to "SHOP" that links to the store. Since I installed the multi-site module, my html website on the root shows that error message that "the domain https://www.myurl.com does not exist"

Also, on the store, all the relative links are broken... anything that was (../images/myimage.jpg)...

It seems like the multi-site module doesn't recognize that the shop is installed in a sub-directory and instead is affecting the root... I'm trying to figure out if there was something I needed to do differently to use the shop in a sub-directory.

17 Jan 2010, 23:11
#1063
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: MultiSite Module Support Thread

Here's a wild guess:
try editing your sites_switch.php under config_sites folder

seems it could have something to do with it... i'm not sure.

FORGOT: is zencart installed in your sub-dir or is it installed somewhere else and the sub-dir should be a multisite?

17 Jan 2010, 23:24
#1064
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Wow... ok... that got me part of the way there... I changed this:

if(file_exists("includes/config_sites/$config_file")) {
include("includes/config_sites/$config_file");
} else {
//echo "the domain $default_server_name does not exist.";
//exit;
}

Still having the issue with the images on the store though...

18 Jan 2010, 00:24
#1065
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok... got it all sorted out FINALLY...

same file... the sites_switch.php... here's what I have in case anyone else runs into this problem. My situation is that the store is in a subfolder and I have a static html site on the root. I had to comment out the error message to stop the static html site from throwing an error and I had to change the root HTTP and HTTPS directories to include the subdomain so that all the relative links in the store would still work.

$default_server_name = $_SERVER['HTTP_HOST'];
$config_file = $default_server_name.'_config.php';

if(file_exists("includes/config_sites/$config_file")) {
	include("includes/config_sites/$config_file");
} else {
	//echo "the domain $default_server_name does not exist.";
	//exit;
}

//Name of the site that is written in the categories
define('SITE_NAME',$config_file);
//The order for this site will be seen for ORDER_SITE from the admin section
define('ORDER_SITE',SITE_NAME);
define('HTTP_SERVER', "http://$default_server_name/zen-cart");
define('HTTPS_SERVER', "https://$default_server_name/zen-cart");

//Define the parent category as 0 if not defined
define('CATEGORIES_ROOT','0');

?>

18 Jan 2010, 00:31
#1066
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: MultiSite Module Support Thread

And does this work with your other site(s) running on multisite? I believe you should edit the first lines... commenting out the error lines doesn't make the errors go away.
don't know, still guessing, just like the first time... :smile:

18 Jan 2010, 00:40
#1067
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I don't like commenting it out, because you're right, normally that would be an error and I'm just hiding it, but my other site isn't in a subfolder, so I'm not sure how to edit the first lines to allow it to have a subdirectory on one and not on the other... So far, all 3 are working though... Store in a subdirectory with a static html site in the root and another store that's not in a subdirectory.

18 Jan 2010, 15:13
#1068
notyet avatar

notyet

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: MultiSite Module Support Thread

fotofx:

I don't think that is a multisite mod problem as much as a template problem. Looks like a define file (maybe a language file) is missing or not being found within the template.

When the menu was made for site 1 were the paths hard coded? Could it be that when you duplicated the template for site 2 that it is not locating a file or files that define the menu items. You can see the variables but it is not picking up the define for it.

Recheck your template for site 2 and I think you will find the problem.

Yes, this was the problem, thank's for the advice

Notyet

18 Jan 2010, 17:16
#1069
notyet avatar

notyet

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/MY_SITE/public_html/admin/multisite.php on line 9

Hello, has anyone come accross this message before?

Notyet

18 Jan 2010, 19:55
#1070
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: MultiSite Module Support Thread

You are running php in safe mode. Switch to normal and the error should go away. See your PHP.ini file.

20 Jan 2010, 19:45
#1071
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I've been searching this forum for days looking for the answer to this simple question.

I've done everything I need to do to get the separate sites up and running with the exception of the SSL Certificate. What exactly is it that I need to do to get SSL's on different domains using this mod, such as:

www .Site1 .com
www .Site2 .com

I tried setting up a multidomain SSL as suggested by my hosting provider and the good folks at GoDaddy, but only the main FQDN jumps to https. Any other site gets redirected back to the unsecure http. If this isn't the right procedure, does anyone here know how to proceed for this kind of setup?

20 Jan 2010, 22:51
#1072
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Please excuse last post. It looks like the problem is a conflict with the SEO Rewrite mod, though I don't fully understand why. But when I disable it everything seems to work.

21 Jan 2010, 02:10
#1073
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Just so you understand, each SSL will require its own dedicated IP. Then just set the proper define within each stores config file.

You may need to move the include_once from the top of your configure.php to the bottom so you can override the HTTPS_SERVER define. Otherwise because the config_sites load first the define in the configure.php is re-defining it.

21 Jan 2010, 18:34
#1074
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Well, I do remember seeing the post about having individual IPs, but nonetheless it still seems to be working with the domains pointed to a single IP and the GoDaddy multi-domain SSL.

Although when I get to the point where I press the button to purchase I'm getting a 1065 error for some reason now. I wasn't thinking that was related to the SSL though.

I tried to follow the directions to the letter; my include_once is at the top where it is supposed to be. However, I installed this initially on top of an installation that was already heavily modded, so I'm discovering some quirks here and there.

21 Jan 2010, 23:13
#1075
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: MultiSite Module Support Thread

An update, though doubtful anyone is concerned, everything is working 100%. Having additional IPs appears to be unnecessary.

BTW, much gratitude is due for this great mod.

22 Jan 2010, 01:26
#1076
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi guys,
I ' ve installed the multisite module some weeks ago and looks fine but i just got this problem now.

I ve two questions:
-1st
site 1 with temp 1
site 2 with temp 2

selected temp1 in admin
i change the content of the page with define page editor and what i see is that i change temp 2 as well. Why?

I ve triple check everything . Any suggestions?

-2nd
How can i see from which website the customer made the order?

Many thanks

22 Jan 2010, 15:01
#1077
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: MultiSite Module Support Thread

i change the content of the page with define page editor and what i see is that i change temp 2 as well. Why?
Do you have individual files on languages for each site?

How can i see from which website the customer made the order?
The order will come the the name of the store.

22 Jan 2010, 18:56
#1078
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

GREAT!!!!!
You are the best!
missing files in languages.

Now I m going to check the problem with the orders.

Many thanks!

22 Jan 2010, 19:25
#1079
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

1)Where can i see the store of the order ?.... in the admin?
Could you please write 2 lines more ?

2)I think I miss a lot of files because how I see:

selected temp1 i change the store name of temp2 as well...
or maybe this has to be changed with commands DEFINE with multisite tool?

Thanks in advance

22 Jan 2010, 22:20
#1080
batterygenie avatar

batterygenie

New Zenner

Join Date:
May 2008
Location:
Thousand Oaks, CA
Posts:
30
Plugin Contributions:
0

Re: MultiSite Module Support Thread

OK, I haven't been able to find an answer to this question yet, though others have posted concerns: How do I stop Google from indexing products that I don't actively have for sale on my different stores?

I'm not even sure how they found me already. I kind of feel violated.:blink: