22977 Posts in 11667 Topics by 2827 members
|Go to End|
9 October 2009 at 8:40am Last edited: 9 October 2009 8:40am
I'm currently running a site with SilverStripe v2.3.0-rc2 without problems. Recently, I've installted v2.3.3 on a testing machine with the DB content of the productive site and further customized the new site. After everything was done, I wanted to move replace the older verison with the new version on the productive server. Here is what I did:
1. TARed the new source tree
2. Dumped the new DB
3. Created a new DB on the productive system and restored the DB dump
4. Untared the source tree to the web server
5. Changed user of all files to root except assets, silverstripe-cache, .htaccess, mysite/_config.php
6. Changed DB password in mysite/_config.php to the local one
7. Changed DocumentRoot in Apache config
8. Reloaded Apache
9. Opened /dev/build?flush=1 in browser
Everything seems to work fine though, except TinyMCE. I only see the plain textarea with HTML-code instead of the editor. However, TinyMCE is working with the older version (v2.3.0-rc2) on the productive system and with the newer version (v2.3.3) on the testing box.
9 October 2009 at 10:08am
Have you deleted the content of silverstripe-cache?
9 October 2009 at 10:16am
Yes, I deleted the cache, including the hidden .cache* files.
To make sure I didn't do any error during the procedure, I repeated the procedure on another test machine. There everything went fine, TinyMCE works. So I once again repeated the procedure on the production machine, with the same result as before: TinyMCE is NOT working.
9 October 2009 at 10:56am
I was able to track the problem down to the developer mode of silverstripe. TinyMCE only doesn't work if the IP address of the requesting host is not in the list of dev-hosts. I was able to reproduce the problem locally by commenting out "localhost" in the _config.php file:
With that, TinyMCE showed up and disappeared again, when I appended ?isDev=1 or ?isDev=0 to the admin-URL. This also works for the productive server: isDev=1 and TinyMCE works, isDev=0 and TinyMCE load. Is this intentional behavior???
|Go to Top|