Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Started by gerome on 23 Apr 2007, 10:24 AM · Views: 581,870

Results 1,801 to 1,820 of 2,247
27 Jul 2013, 4:09 PM
#1801
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

MultiSite Module Support Thread

I can't access my sites when I use: "sites1.net" and "site2.net" at multisite.
They are only accessible when I type "www.site1.net" and "www.site2.net"

Can anyone provide some input in this?

I remember Design75 mention something about fixing this at the .htaccess files.

The way I tried to correct this was to create 2 extra "config_sites" files without the "www." in it. It does display the sites but seems to create errors in Paypal and UPS mods. (Please see my previous post for files details)
Is this the way to correct the www. problem or is there a different way?

27 Jul 2013, 6:23 PM
#1802
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Currently, I have 2 .com urls set up with multisite pointing to 2 different templates.

Is it advisable to created multiple "config_sites files" to point 2 other .net urls to the same 2 templates.

eg.
https://www.mysite1.com and https://www.musite1.net pointing to template1
and https://www.mysite2.com and https://www.mysite2.net pointing to template2

any help is appreciated.

31 Jul 2013, 3:28 PM
#1803
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: MultiSite Module Support Thread

twi:

I can't access my sites when I use: "sites1.net" and "site2.net" at multisite.
They are only accessible when I type "www.site1.net" and "www.site2.net"

Can anyone provide some input in this?

I remember Design75 mention something about fixing this at the .htaccess files.

The way I tried to correct this was to create 2 extra "config_sites" files without the "www." in it. It does display the sites but seems to create errors in Paypal and UPS mods. (Please see my previous post for files details)
Is this the way to correct the www. problem or is there a different way?

For the greater good of everyone with this problem and to give back after receiving all the help in zencart forum from various members, I have found out the solution based on others input and solutions given before:

In solving the redirect problem the easy way instead of creating 2 config files, I have added the following code to the ".htaccess" file at the zencart root:

RewriteCond %{HTTP_HOST} ^yoursite.net [NC]
RewriteRule ^(.*)$ [url]http://www.yoursite.net/$1 [L,R=301]

The above code will redirect traffic from the "non www" url to the "www" url

Hope this will help anyone with the problem I was experiencing.

1 Aug 2013, 11:37 AM
#1804
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Trying to activate CJ Loader (css/js minimizer) with Multisite and the combined css file gives the following errors:


Warning: include_once(includes/config_sites/sites_switch.php) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/mydomain.com/includes/configure.php on line 13

Warning: include_once() [function.include]: Failed opening 'includes/config_sites/sites_switch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/mydomain.com/includes/configure.php on line 13

Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in /home/myusername/public_html/mydomain.com/min/config.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/mydomain.com/includes/configure.php:13) in /home/myusername/public_html/mydomain.com/min/index.php on line 61

I think these point to the

include_once('includes/config_sites/sites_switch.php'); which is on line 13 of my configure.php

Rather oddly, the minimizer seems to work on my local server copy without a problem (I'll compare all local files to the live files in case that highlights something).

Anyone have any ideas?

Simon

1 Aug 2013, 11:49 AM
#1805
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

The third warning is not related to the sites_switch.php effect.

I've now sorted it so just have the remaining three to go. Should have added that these errors result in a site with no css being loaded at all (except some externally referenced css files)

Simon

1 Aug 2013, 1:44 PM
#1806
support2 avatar

support2

New Zenner

Join Date:
Feb 2009
Location:
Bangalore India
Posts:
23
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Design75:

Glad you got it fixed.

Standard it is not possible at this moment to ad a custom prefix, but you could ad some if statement to check on de shop id and according to that show a different prefix.

As I have a large range of cat and subcats - was using Click-Show-Hide Category Menu - http://www.zen-cart.com/downloads.php?do=file&id=615.

The default categories.php lists only categories and sub categories from the relevant 2 sites correctly, but when enabling the above in the layout box controller - displays the total list of categories in both sites. This addon is very useful - any possibility of modifying to suit multistore

1 Aug 2013, 1:51 PM
#1807
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

simon1066:

Trying to activate CJ Loader (css/js minimizer) with Multisite and the combined css file gives the following errors:


Warning: include_once(includes/config_sites/sites_switch.php) [function.include-once]: failed to open stream: No such file or directory in /home/myusername/public_html/mydomain.com/includes/configure.php on line 13

Warning: include_once() [function.include]: Failed opening 'includes/config_sites/sites_switch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myusername/public_html/mydomain.com/includes/configure.php on line 13

Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in /home/myusername/public_html/mydomain.com/min/config.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/mydomain.com/includes/configure.php:13) in /home/myusername/public_html/mydomain.com/min/index.php on line 61

I think these point to the

include_once('includes/config_sites/sites_switch.php'); which is on line 13 of my configure.php

Rather oddly, the minimizer seems to work on my local server copy without a problem (I'll compare all local files to the live files in case that highlights something).

Anyone have any ideas?

Have you already checked, if the file is indeed in place?

1 Aug 2013, 5:17 PM
#1808
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Design75:

Have you already checked, if the file is indeed in place?

If you're referring to whether I have the sites_switch.php in place, then yes I have it, I didn't believe that to be the issue - more the effect it's function had on the minimizer (or vice versa).

I was really meaning that I would 'blindly' compare ALL files on the two servers to see if there was any little thing that might be causing it. Still got to to do this though.

Simon

2 Aug 2013, 11:08 AM
#1809
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok, so now I have both live and local copies with the same database and the same files, minimize still breaks my css on the live site.

It must therefore be server related, perhaps to do with the way my subdomains are set up - off to investigate further.

If anyone else has experienced and cured this problem it would be good to hear from you.

Simon

6 Aug 2013, 12:25 PM
#1810
caborela avatar

caborela

New Zenner

Join Date:
Dec 2008
Posts:
36
Plugin Contributions:
0

Re: MultiSite Module Support Thread

hi,
after i installed the multisites for my zencart v1.5.1, the ultimate seo url got problem. when i click any category, it display 404 Error File Not Found but the url is displaying correctly.(i mean the url still can show xxx.com/category-c-1/).
If i disable the ultimate seo url , then the multisites work fine!
Anyone could help me out?
Thanks in advance!

6 Aug 2013, 12:53 PM
#1811
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

caborela:

hi,
after i installed the multisites for my zencart v1.5.1, the ultimate seo url got problem. when i click any category, it display 404 Error File Not Found but the url is displaying correctly.(i mean the url still can show xxx.com/category-c-1/).
If i disable the ultimate seo url , then the multisites work fine!
Anyone could help me out?
Thanks in advance!

I think it might have something to do with .htaccess settings. I only say this because CEON URI Mapping, which I use, has the following code in that file:

## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
#   which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
#   which are not covered by main file extension condition above
#   Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/my_admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite cgi-bin directory
RewriteCond %{REQUEST_URI} !^/cgi\-bin/ [NC]
# Don't rewrite css directory
RewriteCond %{REQUEST_URI} !^/css/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/logs/ [NC]
# Don't rewrite OLD directory
RewriteCond %{REQUEST_URI} !^/OLD/ [NC]
# Don't rewrite sitemap directory
RewriteCond %{REQUEST_URI} !^/sitemap/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]

## END CEON URI MAPPING REWRITE RULE

Removing this gives a 'file not found' error (with the url displaying correctly), so perhaps Ultimate SEO needs something similar?

That's as much as I know.

Simon

6 Aug 2013, 2:36 PM
#1812
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

simon1066:

I think it might have something to do with .htaccess settings. I only say this because CEON URI Mapping, which I use, has the following code in that file:

BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$ [NC]

Don't rewrite any URIs for some, popular specific file format extensions,

which are not covered by main file extension condition above

RewriteCond %{REQUEST_URI} !.(mp3|mp4|h264)$ [NC]

Don't rewrite any URIs for some specific file format extensions,

which are not covered by main file extension condition above

Uncomment the following line to apply this condition! (Remove the # at the start of the next line)

#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/my_admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors/ [NC]

Don't rewrite cgi-bin directory

RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]

Don't rewrite css directory

RewriteCond %{REQUEST_URI} !^/css/ [NC]

Don't rewrite logs directory

RewriteCond %{REQUEST_URI} !^/logs/ [NC]

Don't rewrite OLD directory

RewriteCond %{REQUEST_URI} !^/OLD/ [NC]

Don't rewrite sitemap directory

RewriteCond %{REQUEST_URI} !^/sitemap/ [NC]

Handle all other URIs using Zen Cart (its index.php)

RewriteRule .* index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

> 
> Removing this gives a 'file not found' error (with the url displaying correctly), so perhaps Ultimate SEO needs something similar? 
> 
> That's as much as I know.

Cant help here much either, because I do not use so called SEO modules
6 Aug 2013, 4:20 PM
#1813
caborela avatar

caborela

New Zenner

Join Date:
Dec 2008
Posts:
36
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks trying to help! i really appreicate!

the problem got solved after i re-installed the module. i think somehow i uploaded the wrong .htaccess file before!

6 Aug 2013, 7:11 PM
#1814
caborela avatar

caborela

New Zenner

Join Date:
Dec 2008
Posts:
36
Plugin Contributions:
0

Re: MultiSite Module Support Thread

anyone knows how to configure site1 only for french, site2 only for English???

12 Aug 2013, 8:43 AM
#1815
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: MultiSite Module Support Thread

zc1.5.1 multisite

Can anyone tell me where in admin do see the order is from? Is there a setting in admin that you enable this feature if it exist?

12 Aug 2013, 6:01 PM
#1816
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: MultiSite Module Support Thread

twi:

zc1.5.1 multisite

Can anyone tell me where in admin do see the order is from? Is there a setting in admin that you enable this feature if it exist?

if you find this out let me know please.. i've been told that part or the module doesn't work..

19 Aug 2013, 4:18 AM
#1817
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I really, really want to install this mod... Problem is I'm still on 1.3.9h.

Does anybody have any advice for me besides upgrading to 1.5.1?

19 Aug 2013, 1:26 PM
#1818
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,455
Plugin Contributions:
4

Re: MultiSite Module Support Thread

This module was created originally for 1.3+ so you will find the proper version for you.

IDEASLady
IDEAS Creative Studio

Your image... our business!

19 Aug 2013, 3:41 PM
#1819
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: MultiSite Module Support Thread

lidlchris:

if you find this out let me know please.. i've been told that part or the module doesn't work..

That is because you need some custom coding to make it happen. There are very clear instructions for this in post #636 in this tread.

Upon looking into the files mentioned there, I am able to find all, except for the last piece of code in the instructionse where you have to add the code. (highlighted code in excerpt #636 below) Can anyone point me in the right direction Here?

see except below for post #636:

I have a number of modifications I've made to the orders.php page. I attempted to pull just the code out that will give you the site markers. I believe I got it all, but make sure you backup orders.php before doing all this. Very simple. Just pulls the site name from the orders table and displays it in the HTML table in that page.

Put his in a file called:
<admin folder>/includes/languages/english/extra_definitions/order_site.php

PHP Code:

<?php define('TABLE_HEADING_SITE','Site'); define('HEADING_TITLE_SITE','Site'); ?>

in [admin folder]/orders.php do the following:

find

PHP Code:
$orders = $db->Execute("select orders_id from " . TABLE_ORDERS . "

replace with:

PHP Code:
$orders = $db->Execute("select orders_id,order_site from " . TABLE_ORDERS . "

find:

PHP Code:

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_ORDERS_ID; ?></td> above it add:

PHP Code:

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SITE; ?></td> find:

****PHP Code:

<td class="dataTableContent" align="right"><?php echo $show_difference . $orders->fields['orders_id']; ?></td>** above it add:

PHP Code:

<td class="dataTableContent" align="left"><?php echo $orders->fields['order_site']; ?></td>
19 Aug 2013, 9:35 PM
#1820
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

twi:

That is because you need some custom coding to make it happen. There are very clear instructions for this in post #636 in this tread.

Upon looking into the files mentioned there, I am able to find all, except for the last piece of code in the instructionse where you have to add the code. (highlighted code in excerpt #636 below) Can anyone point me in the right direction Here?

see except below for post #636:

I have a number of modifications I've made to the orders.php page. I attempted to pull just the code out that will give you the site markers. I believe I got it all, but make sure you backup orders.php before doing all this. Very simple. Just pulls the site name from the orders table and displays it in the HTML table in that page.

Put his in a file called:
<admin folder>/includes/languages/english/extra_definitions/order_site.php

PHP Code:

<?php define('TABLE_HEADING_SITE','Site'); define('HEADING_TITLE_SITE','Site'); ?>

in [admin folder]/orders.php do the following:

find

PHP Code:
$orders = $db->Execute("select orders_id from " . TABLE_ORDERS . "

replace with:

PHP Code:
$orders = $db->Execute("select orders_id,order_site from " . TABLE_ORDERS . "

find:

PHP Code:

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_ORDERS_ID; ?></td> above it add:

PHP Code:

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SITE; ?></td> find:

**PHP Code:

<td class="dataTableContent" align="right"><?php echo $show_difference . $orders->fields['orders_id']; ?></td>** above it add:

PHP Code:

<td class="dataTableContent" align="left"><?php echo $orders->fields['order_site']; ?></td>

I will add it to the next release (somewhere in September)