EllisLab text mark
Advanced Search
     
Channel Module Fails in MSM
Posted: 27 April 2012 02:18 PM   [ Ignore ]
Avatar
Joined: 2009-09-14
168 posts

We are unable to output any channel data in an MSM subsite. 

Here is what we have:

EE 2.3.1 20111017
MSM 2.1.1 Build: 20111011

We are using:

Structure 3.1.3
Adman 1.0.3
DataGrab 1.7.0
Freeform 3.1.1
Wyvern 1.2.7.2

I think we have the preferences set correctly.  The URL to the root directory is set correctly in General Preferences.  We’ve used the same setup before with no problems.

Thanks,
John

 
Posted: 30 April 2012 12:07 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi John,

That is certainly undesirable!

Are you running the second site on a sub-domain or its own full domain?

Is the channel available in the second site’s Control Panel? Can you post an example of the template that is giving you trouble?

Have you checked the MSM values for the second site’s index.php and admin.php?

Cheers,

 Signature 

How may I help you?

 
Posted: 30 April 2012 01:15 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2009-09-14
168 posts

Hi Dan,

Thanks for your reply!

We are running the site on a subdomain.

The channel is available in the control panel of the second site.  Here is a test page:

http://beingwe.constitutioncenter.org/test

Here is the template for the above:

<p>
{exp:channel:entries url_title="asa-baran-18" site="being_we" dynamic="off"}
{if no_results} nada{
/if}
{title}
{
/exp:channel:entries}
</p>

<
p>
{exp:structure:nav start_from="/" show_depth="999" css_class="site-map" site="being_we"}{/exp:structure:nav}
</p>

<
p>
{exp:channel:entries channel="news" dynamic="no" limit="10" site="being_we"}

<div class="list row">

    <
h3><a href="{page_url}">{title}</a></h3>
    <
class="date">{news-post-date format="%F %d, %Y"}</p>
    <
p>{news-short-text} <a href="{page_url}">Read More ></a></p>

</
div>

{/exp:channel:entries} 

As you can see we tried a few ways to display the channel content.

I think we have the index and admin files configured correctly.  The name of the second site is “being_we.”

Each contains:


Thanks again!
John

 
Posted: 01 May 2012 10:53 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hey John,

Since MSM can be a bit tricky, I keep a sample handy for the main files affected:

//CONFIG// - typical config.php
$config['cp_url'"http://engine.dev/admin.php";
$config['doc_url'"http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'"y";
$config['allow_extensions'"y";
$config['site_label'"Test 23";
$config['cookie_prefix'"";
$config['multiple_sites_enabled'"y";

index.php and admin.php site 1
NO CHANGES

index
.php and admin.php site 2
$system_path 
'../system';
/*---------------------------*/
$assign_to_config['site_name']  'msm_test';
$assign_to_config['cp_url''http://msm.dev/admin.php';
$assign_to_config['site_url''http://msm.dev';

--- 
admin ---
$system_path '../system';
/*---------------------------*/
$assign_to_config['site_name']  'msm_test';
$assign_to_config['cp_url''http://msm.dev/admin.php'

Now, that’s a typical set up, with the second site as a sub-domain and its folder in the web-root of the main site.

I do notice that your first channel entries tag isn’t using a channel= parameter, but the second loop should be pulling in entries regardless. I would expect the url_title parameter in the first loop to pull in an entry without the channel parameter too.

But, can you add that in for a test?

If that doesn’t square this, we might need to get a closer look.

Cheers,

 Signature 

How may I help you?

 
Posted: 01 May 2012 04:07 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2009-09-14
168 posts

Hi Dan,

Thanks for your reply.

I’ve checked your sample config setup against ours, and I couldn’t see any major differences:

I did notice that the MSM configuration had not been uncommented in the master admin file.  I removed the comments and applied the values above. This didn’t fix the problem though.

One other thing:

Now, that’s a typical set up, with the second site as a sub-domain and its folder in the web-root of the main site.

The second site in our case does not reside in the web-root of the main site.  It’s in a sibling httdocs directory.  I don’t know why it was set up this way.  I think it has worked in the past.

Thanks,
John

 
Posted: 02 May 2012 03:40 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi John,

Try these changes for me please:

index.php SITE 2

$system_path 
'../httpdocs/avalon';
/*---------------------------*/
$assign_to_config['site_name']  'being_we';
$assign_to_config['cp_url''http://beingwe.constitutioncenter.org/avalon.php';/*is this renamed admin.php?*/
$assign_to_config['site_url''http://beingwe.constitutioncenter.org';

admin.php (avalon.phpSITE 2

//admin//
$system_path '../httpdocs/avalon';
/*---------------------------*/
$assign_to_config['site_name']  'being_we';
$assign_to_config['cp_url''http://beingwe.constitutioncenter.org/avalon.php'

That’s a bit closer to how it should look for your second site.

Let me know the result of those changes.

Cheers!

 Signature 

How may I help you?

 
Posted: 07 May 2012 08:17 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2009-09-14
168 posts

Hi Dan,

I found out the issue was we forgot to add status groups to these channels.  I figured it was something simple like that.

Thank you very much for your help!  Sorry for the confusion.

John

 
Posted: 08 May 2012 12:19 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hey John!

Oh, good! Glad to see you were able to sort it out!

If you need anything else, just let us know.

Cheers,

 Signature 

How may I help you?