WYSIWYG and permission problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
platine

WYSIWYG and permission problem

Post by platine »

Hi there,

with IE6 I have a javascript error telling me that access is denied in editcontent.php when editing content and Firefox does not even show the editor. I've upgraded from 0.10.3 to 0.10.4 and CMS ist running on a hosted server. On my local PC TinyMCE and FCKeditorX are working fine with IE and Firefox. Cookies are enabled and config.php has almost same settings. What can this be?
triggerhippie

Re: WYSIWYG and permission problem

Post by triggerhippie »

yep - same problems here - localy all is fine and on server firefox doesnt show but ie does ? can anyone explain what the problem iswith firefox and or server permisssions, as I see a lot of questions about these sorts of errors.

Additionaly I came accross quite a few errors on intial load due to what seems like code problems - wss anyone coding using wordpad or soemthing ?? as I sorted these by simply opening up the files in ultra edit and re-typing the code that throws up errors ???

I also do not expest an answerso anyone reading this should find there is no answer below - shame as having worked with mambo years ago in the Dev team with EmirSacic and Robert Castley - bles them good guys, I was quite happy when I came accross this little system as its simple and easy to use (when it worked localy) for sites that dont need al that extra stuff. Please clean the code and ensure it works fully with Firefox ect, also a simple FAQ for common problems ould be good and my apologies if I have missed this anywhere

dedicated server:

Code: Select all

reg globals - off
able to use htaccess - mod rewrite on or off

Operating system  	Linux
Service Status 	Click to View
Kernel version 	2.4.20-021stab028.16.777-enterprise
Machine Type 	i686
Apache version 	1.3.33 (Unix)
PERL version 	5.8.7
Path to PERL 	/usr/bin/perl
Path to sendmail 	/usr/sbin/sendmail
Installed Perl Modules 	Click to View
PHP version 	4.4.0
MySQL version 	4.1.13-standard
cPanel Build 	10.8.1-STABLE 114
Theme 	cPanel X v2.5.0
Documentation 	Click to View
triggerhippie

Re: WYSIWYG and permission problem

Post by triggerhippie »

sorry - using cmsms v0.12 stable
triggerhippie

Re: WYSIWYG and permission problem FCKeditor

Post by triggerhippie »

FCKEDITOR fix for firefox, ie

Ok - hacked and playe with it a while and got the editor to work in Firefox... this is what I did:

not sure this is needed but it seemed to work abit lol:

Code: Select all

fckeditor permissions:

modules/FCKeditorX/FCKeditor/editor/js

chmod all to 755
The real culprit (problem) was with the .htaccess file - here is what I have used, and you will see that there is also an extensive blocking list to prevent nasty Bots from getting you! the bit that is pertinent to cmsms is commented - use this freely it should work for most people, but be aware that the rewrite condition is relevant to your hosting setup.

This is placed in the root of my hosting (public_html) and for those that don't know it acts on all fiels and folders below where the .htacess file is placed recursively.

Code: Select all

SetEnvIf User-Agent (.){150} ban
SetEnvIf User-Agent ^$ ban
SetEnvIf User-Agent ^([A-Z]+)$ ban
SetEnvIfNoCase Request_URI (.){150} ban
SetEnvIfNoCase Request_URI \.ht(access|passwd)$ ban
SetEnvIfNoCase Request_URI ^/[a-z]/winnt ban
SetEnvIfNoCase Request_URI ^/_mem_bin ban
SetEnvIfNoCase Request_URI ^/_vti_bin ban
SetEnvIfNoCase Request_URI ^/default\.ida ban
SetEnvIfNoCase Request_URI ^/exchange ban
SetEnvIfNoCase Request_URI ^/msadc ban
SetEnvIfNoCase Request_URI ^/msoffice ban
SetEnvIfNoCase Request_URI ^/null\. ban
SetEnvIfNoCase Request_URI ^/script ban
SetEnvIfNoCase Request_URI formmail ban

<Files ~ "^.*$">
order allow,deny
allow from all
deny from env=ban
</Files>

<Files ~ "^robots\.txt$|^favicon\.ico$">
order allow,deny
allow from all
</Files>

RewriteEngine on
Options +SymlinksIfOwnerMatch
#
# CMSMS REWRITE RULE
# Rewrites SEF and removes file extension in url (must have no extension set in config.php)
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+) index.php?page=$1 [QSA]
RewriteBase /
# END CMSMS REWRITE RULE
#
#
RewriteCond %{HTTP_USER_AGENT} ^attach [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BackWeb [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Bandit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BatchFTP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Buddy [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Collector [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Copier [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Crescent [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DA [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo\ Pump [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DIIbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Wonder [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Downloader [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Drip [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} e?mail.?(collector|magnet|reaper|siphon|sweeper|harvest|collect|wolf) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FileHound [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FrontPage [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GetSmart [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^gotit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Grabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [NC,OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^InterGET [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InternetSeer [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Iria [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ia_archiver [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^JustView [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^LinkWalker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^lftp [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^LmCrawler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^likse [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Magnet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mag-Net [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Memo [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*Indy [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^MSFrontPage [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mirror [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZip [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Ninja [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Pockey [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^psbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Pump [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Reaper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Recorder [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Seekbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Siphon [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^sitecheck.internetseer.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Snake [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SpaceBison [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Stripper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Sucker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Teleport [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Twiceler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Vacuum [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} web.?(auto|bandit|collector|copier|devil|downloader|emailextrac|fetch|hook|image|mole|miner|mirror|reaper|sauger|sucker|site|snake|ster|stripper|weasel|whacker|zip) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Whacker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [NC,OR] 
RewriteCond %{HTTP_USER_AGENT} ^Zeus [NC,OR]
# Blocks Googles Web Accelerator GWA
RewriteCond %{REMOTE_ADDR} ^(72.14.192.|72.14.194.)
RewriteRule ^.* - [F,L]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?iaea\.org [NC]
RewriteRule .* - [F,L]
# ATTENTION - place your site domain below as in yoursite.net below
# RewriteRule !^http://[^/.]\.yoursite.net.* - [F,L]

# ATTENTION Safer Anti HOTLINKING code - list the sites you allow to link such as friendlydomain.net below
RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png$|.*bmp$ [NC]
RewriteCond %{HTTP_REFERER} !^$ 
RewriteCond %{HTTP_REFERER} !friendlydomain\.net [NC] 
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule (.*) /htaccess/showpic.php?pic=$1

#redirect 301 /oldfolder http://www.site.co.uk/newfolder
triggerhippie

Re: WYSIWYG and permission problem

Post by triggerhippie »

Sorry, keep remembering to mention things that may help - additonaly if you use the htaccess above, you should turn on rewrite in the "config.php" file in the root of your cmsms install:

Code: Select all

$config['assume_mod_rewrite'] = true;
Good luck, and I hope this helps some people out,

just a BTW as I gave my work freely - I noticed that the page titles have to be changed in every template to change site wide - would be good to have a default "tag" or similar where you can simply enter the general text you want in the page titles, with the code already in the templates distributed by default. - my 2pence worth ;) good job and well done for a nice clean little cms  :)
Locked

Return to “CMSMS Core”