<![CDATA[ 2.2.0-pl2, cannot change template on new resource, console errors - My Forums]]> https://forums.modx.com/thread/?thread=73018 <![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-426717
But in my account I have added 2 more separate contexts with a domain associated with each one, I used this installation method here to get it to work:

http://www.belafontecode.com/modx-revolution-hosting-multiple-domains/

I used Option 2 on that installation page so they go in separate folders. And now I cannot get these 2 contexts to change templates (but I can still get the template to change on the first "web" context by using quick update).

Anyway, if anyone wants to help me troubleshoot this here is what my files look like:

/modx-2.2.3-pl/ht.access :


#MAP TLD TO CUSTOM SUBDIRECTORY
RewriteCond $1 !^context2domain/
RewriteCond %{HTTP_HOST} ^www\.context2domain\.com
RewriteRule (.*) /context2domain/$1 [L]

#MAP TLD TO CUSTOM SUBDIRECTORY
RewriteCond $1 !^context3domain/
RewriteCond %{HTTP_HOST} ^www\.context3domain\.com
RewriteRule (.*) /context3domain/$1 [L]

# The Friendly URLs part
RewriteCond %{HTTP_HOST} ^www\.maindomainofhostingaccount\.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

/modx-2.2.3-pl/config.core.php :

<?php
define('MODX_CORE_PATH', '/home/user/public_html/modx-2.2.3-pl/core/');
define('MODX_CONFIG_KEY', 'config');
?>


/modx-2.2.3-pl/context2domain/ht.access :

RewriteEngine On
RewriteBase /
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


/modx-2.2.3-pl/context2domain/config.core.php :

<?php
define('MODX_CORE_PATH', '/home/user/public_html/modx-2.2.3-pl/core/');
define('MODX_CONFIG_KEY', 'config');
?>


/modx-2.2.3-pl/context2domain/index.php :

}

/* Set the actual start time */
$modx->startTime= $tstart;

/* Initialize the default 'web' context */
$modx->initialize('context2domain');

/* execute the request handler */
if (!MODX_API_MODE) {
$modx->handleRequest();
}



The other domain is setup the same way. I can get the domains to load with the appropriate document, its just I cant get the template to update.

If someone has any advice on this that would be great.

I did read this whole forum topic and tried everything mentioned, but no luck. And yes the time zone is the same across everything. It's weird I can get the template to change on the default "web" context but not any of the other contexts I made with other domain names.

I've been trying to get this to work non-stop for 3 days now and I am about to give up and go to another CMS..

UPDATE: I just solved the problem!!! All I had to do was rename all my ht.access files to .htaccess and now I can change the templates for anything!!!! PHEW... (but only with the "quick update Resource" function though)

]]>
couvier Jun 14, 2012, 09:41 PM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-426717
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-418632
Corrected timezone issue on servers where PHP settings are incorrect.

http://modx.com/blog/2012/04/03/revolution-2.2.1-readies-for-modx-cloud-and-more/?utm_source=facebook&utm_medium=social&utm_content=revo221&utm_campaign=revo221]]>
mitchmodx Apr 03, 2012, 12:23 PM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-418632
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-418414
Maybe a ticket needs to be sorted to get this bug sorted.]]>
mitchmodx Apr 02, 2012, 08:31 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-418414
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-417968 kevince52 Mar 29, 2012, 05:19 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=8#dis-post-417968 <![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-417930 kevince52 Mar 28, 2012, 08:36 PM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-417930 <![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-417222
BUT...this is a crazy bug and should have been fixed by now]]>
xxxmicrobexxx Mar 23, 2012, 04:26 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-417222
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-416088
Like kevince52, I am a huge fan of Modx. The majority of my problems have been my lack of knowledge or understanding.

The last few sites where I've installed MODX Revolution 2.2.0-pl2 or upgraded to it, I've had this problem changing templates, but I never had the problem with older versions of revolution. The problems have always been solved by setting the date_timezone correctly.

This week I started a new Revo 2.2 site and had the same problem, but changing the date_timezone did not solve the problem. I did not worry and just used Quick update to change templates, because I did not have time to look into it further until today.

This site is on the same server where I just finished 2 Revo sites last week and they could change templates after changing date_timezone, so I was confused?

After reading everything here, comparing this install to the 2 from last week, reinstalling, and trying everything I could think of, I noticed the 2 sites from last week could no longer change templates?

Then I tried 2 sites on a different server from right before those sites and they still worked. They were set to America/Chicago, but the 3 latest sites on a different server were set to America/Denver?

The 2 sites that work (America/Chicago) are on a Rackspace server and the 3 that no longer can change templates (America/Denver) are on a Virtual dedicated Server from Godaddy.

Then it occured to me that Godaddy is in Arizona and Arizona does not follow Daylight Saving Time, which was last Saturday.

I changed the 3 sites that had a problem to America/Phoenix and now they can all change templates correctly.

I don't know why phpinfo() said the Default timezone was America/Denver in the first place, but if anyone has a Godaddy server try changing to America/Phoenix.

I hope this helps someone.]]>
rstar007 Mar 14, 2012, 09:09 PM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-416088
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415671 mitchmodx Mar 12, 2012, 06:12 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415671 <![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415427
I sure that you're not questioning that graves007. I just wanted to speak up in case someone reads this who might be wavering on what CMS to choose. I believe on the whole Modx is the best option out there.

This issue is a bit frustrating when it does pop up. Our conversation hopefully is part of the solution.

For what it's worth I do have a value of 1 in the server offset settings on one of my production servers. 0 on at least one site on my dev server and blank on another site on the same dev server. Neither has an issue now but the one that's blank did until I followed the steps I outlined above. I know there's and answer to this but the server offset doesn't seem to be a consistent variable.]]>
kevince52 Mar 09, 2012, 09:30 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415427
<![CDATA[Re: 2.2.0-pl2, cannot change template on new resource, console errors]]> https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415416 What I dont like and what doesnt fill me with confidence regarding MODx is, major issues like this just seem to pop up out of nowhere. One day its working fine, next day you cant change templates. Doesn't exactly fill one with confidence, which I think is what kevince52 is eluding to?]]> graves007 Mar 09, 2012, 08:05 AM https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors?page=7#dis-post-415416