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

MultiSite Module Support Thread

Views: 580,173

Results 1,641 to 1,660 of 2,247
9 Feb 2013, 9:52 PM
#1641
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

MultiSite Module Support Thread

Design75:

the obvious answer to that would be NO! :no:

Are there any error-logs, that can help to analyse this error?

Cannot modify header information - headers already sent by (output started at /home/medco/public_html/includes/configure.php:2) in /home/medco/public_html/includes/init_includes/init_templates.php on line 78

9 Feb 2013, 9:58 PM
#1642
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

yikes i found it.. i mistakenly added a blank line at the top of the configure.php file..

10 Feb 2013, 6:04 AM
#1643
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

tyankee:

yikes i found it.. i mistakenly added a blank line at the top of the configure.php file..

thanks for the feedback :thumbsup: , and glad you solved it

10 Feb 2013, 10:29 PM
#1644
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Magnus Wester:

The MultiSite module knows what site to show

When the web server receives a page request, the environment variable $_SERVER['HTTP_HOST'] contains the domain name that was used (e.g. "site2.com"). The MultiSite module uses this information to use the right settings, fetch the right template, show the right categories etc. If the domain name is not correctly defined in the /includes/config_sites/ folder, there is no default - the screen will be blank except for a brief "undefined site" message.

having trouble with this.. main site is http://www.swordsofhonor.com. added site is http://medievalclothing.co. have the following file setup under includes/config_sites/medievalclothing.co_config.php

here are the contents of that file:

<?php define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); $template_dir = "andover_modern"; define('SITE_NAME','Medieval Clothing Co'); ?>

also have the include statement in my configure.php file right at the beginning.. but when i try to access http://medievalclothing.co, it seems like it's looking for a file on that domain.. and there aren't any.. i have both domains pointed to the same dns. am i missing something?? do i need files in my medievalclothing.co account??

10 Feb 2013, 10:59 PM
#1645
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: MultiSite Module Support Thread

do i need files in my medievalclothing.co account?
Yes you do - a full set of ZenCart files
The only thing shared is the database

10 Feb 2013, 11:21 PM
#1646
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

kobra:

Yes you do - a full set of ZenCart files
The only thing shared is the database

yikes, i was going by what Magnus Wester said that they all shared the same files also..

11 Feb 2013, 12:44 AM
#1647
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

kobra:

Yes you do - a full set of ZenCart files
The only thing shared is the database

don't they at least share the same admin area??

11 Feb 2013, 1:46 AM
#1648
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

ok, i've read through dozens of pages and still don't know how this parts works:

how to add/modify the template for the 2nd or 3rd stores?? is it added to the /includes/templates/ folder of the FIRST store or is it added that folder for each of the stores.. some people say you only need ONE install and ONE set of files while others say you need the zen cart files in all your other domains as well. i have my main site working with this module and 1.5 but not sure how to get the 2nd or 3rd sites working..

11 Feb 2013, 7:37 AM
#1649
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

I think it depends on how your hosting account is set up.

My account is one public_html folder with multiple domains on it.
I this case I have one file-set, with one database, each domain will be assigned to its own template in the configure files.

It looks like there are also people who have a multiple file-sets each with its own domain assigned to it. I never used the multi-site this way, so i can not give any useful information about this method.

11 Feb 2013, 7:37 PM
#1650
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

my domains are all on a VPS so each domain has it's own account and own 'path' - e.g. /home/accountname/public_html/

i tried to get this to work WITHOUT the wnd and 3rd stores having any zen cart files in them - but it does not work.. i had to move all the zen cart files to each domain for it to work.. but it still leaves the question of 'which files are shared' - if any.. i think the template files MUST go on the main domain - but i can't get an answer from anyone and it's nowhere in the documentation.

11 Feb 2013, 7:38 PM
#1651
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Design75:

I think it depends on how your hosting account is set up.

My account is one public_html folder with multiple domains on it.
I this case I have one file-set, with one database, each domain will be assigned to its own template in the configure files.

It looks like there are also people who have a multiple file-sets each with its own domain assigned to it. I never used the multi-site this way, so i can not give any useful information about this method.

but where do the template files reside??

12 Feb 2013, 5:14 AM
#1652
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

anyone know how to uninstall this module?? i can't get answers and can't get it to work and now that it's partially working, it's more of a pain. is it as simple as removing the one database field and removing the include statement??

12 Feb 2013, 8:22 AM
#1653
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

I am sorry you can't get it working. my English isn't good enough to give you a better explanation, to help.
Below is the uninstall statement for the module

ALTER TABLE `orders` DROP `order_site`;
DELETE FROM admin_pages WHERE page_key = 'toolsMultiSite' LIMIT 1;
13 Feb 2013, 11:00 PM
#1654
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Design75:

I am sorry you can't get it working. my English isn't good enough to give you a better explanation, to help.
Below is the uninstall statement for the module

ALTER TABLE orders DROP order_site;
DELETE FROM admin_pages WHERE page_key = 'toolsMultiSite' LIMIT 1;


i've done this - double checked that field name is gone and the record from admin_pages is gone BUT something is still wrong..     i originally tied <http://medievalclothing.co> as 'site 2' into the main site <http://www.swordsofhonor.com> - and now i just can't get it out..    DNS is pointing to the right server..  i removed the include statement in the config file..  i ran the mysql queries above..   i removed the specific entry for medievalclothing.co_config.php from the config_sites folder..  still is tied into the main site

i also tried removing the config_sites folder and my main site brought up some strange default looking template - so i put it back.

how to i get rid of this module??
13 Feb 2013, 11:15 PM
#1655
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

tyankee:

i've done this - double checked that field name is gone and the record from admin_pages is gone BUT something is still wrong.. i originally tied http://medievalclothing.co as 'site 2' into the main site http://www.swordsofhonor.com - and now i just can't get it out.. DNS is pointing to the right server.. i removed the include statement in the config file.. i ran the mysql queries above.. i removed the specific entry for medievalclothing.co_config.php from the config_sites folder.. still is tied into the main site

i also tried removing the config_sites folder and my main site brought up some strange default looking template - so i put it back.

how to i get rid of this module??

i miscommented above.. i CAN NOT remove the include statement in the config file or the site brings up default template..

14 Feb 2013, 7:59 AM
#1656
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

tyankee:

i miscommented above.. i CAN NOT remove the include statement in the config file or the site brings up default template..

Did you check the file is writeable on the server when you are editing it (chmod 644, 664 or even 666)

14 Feb 2013, 8:07 PM
#1657
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Design75:

Did you check the file is writeable on the server when you are editing it (chmod 644, 664 or even 666)

yes of course.. so i hired a programmer and finally got it working.. this is NOT in the instructions (as there is a lot of stuff inaccurate there i found), so for anyone else having trouble here is what i had to do:

installed all of the modules per the instructions in the readme file. don't be concerned that some files don't exist that they say to overwrite, just move all of the files.

in the includes/config_sites folder do NOT use the example file or it will not work. use this:

<?php $template_dir = "template_name"; define('SITE_NAME','Site 2'); define('HTTP_SERVER', 'http://site2.com'); define('HTTPS_SERVER', 'https://site2.com'); ?>

the define http statements are not in their example and ARE needed if your multi sites are stand alone domain names on the same server.

the next step, and this is NOT documented anywhere, is to update the includes/configure.php on the multi sites - site2, site3, etc to point to the database for site1: these statements need to be changed or used when you install zen cart on the additional sites:
define('DB_SERVER_USERNAME', 'username');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'database_name');
they need to point to the main database in site 1 for all additional sites..

hope this helps someone avoid the 5 days of frustration and cost of a programmer that i endured.. :ohmy:

14 Feb 2013, 8:59 PM
#1658
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

Glad you finally have it working.

in the includes/config_sites folder do NOT use the example file or it will not work. use this:

<?php $template_dir = "template_name"; define('SITE_NAME','Site 2'); define('HTTP_SERVER', 'http://site2.com'); define('HTTPS_SERVER', 'https://site2.com'); ?>

the define http statements are not in their example and ARE needed if your multi sites are stand alone domain names on the same server.

I'll put it in the next version off th readme.

the next step, and this is NOT documented anywhere, is to update the includes/configure.php on the multi sites - site2, site3, etc to point to the database for site1: these statements need to be changed or used when you install zen cart on the additional sites:
define('DB_SERVER_USERNAME', 'username');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'database_name');
they need to point to the main database in site 1 for all additional sites..

That probably has to do with the way your server is set up. I never had to do this, and can't remember any posts about it. But it is useful information. Thank you for the feed back.

17 Feb 2013, 11:39 AM
#1659
pearcestephens avatar

pearcestephens

New Zenner

Join Date:
Nov 2012
Posts:
69
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hey Guys,

Im getting this error in my MultiSite log files, any clues to what would be causing it?

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name
17 Feb 2013, 2:56 PM
#1660
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

PearceStephens:

Hey Guys,

Im getting this error in my MultiSite log files, any clues to what would be causing it?

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name

Query not changed:
select manufacturers_id, manufacturers_name from manufacturers order by manufacturers_name

I am not entirely sure, but I think you can safely ignore it. I left the log file function in the module, because I was not sure why and what it was used for.