1
Axxxxxl
Re: restricted access Problem
  • 2009/11/16 11:54

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


STRIKE!

If you tell me your last post a little bit earlieer, we dont had write so much lines

But, IT WORKS! I add just this simple line
include '../../../../../../../../mainfile.php';

in the config.php of FCKEditor and even if i loged in, it works fine like in the "goog old days"

And for security i testing also without login -> the connector is diasable and nobody can upload me bad stuff.

So many thanks for your help and we´ll see us here, sure!!!

Greetings from the cold Germany!!!!!!!!!!!!!!!

PS1: the old FCK with XOOPS 2.3.3 works without that line, but i add it for more security!

PS2: If you find a working CKEditor where the upload is enabled and work, please send me the configuration!



2
Axxxxxl
Re: Date selector does not work!
  • 2009/11/15 18:52

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


I had this same error some months ago. My reason was some missing line in the theme.html file of my own Theme, that i create. So the Javascript was not load correctly.
The best way, verify every line from a default theme.html and yours. Maybe you can find some differents, especially at the beginning of this file, where the html settings are written.

Good Luck!!



3
Axxxxxl
Re: restricted access Problem
  • 2009/11/15 18:45

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


If i try /class/xoopseditor/fckeditor/formfckeditor.php manually i get:
Fatal errorCall to undefined function xoops_load() in /var/www/vhosts/web7/html/test/class/xoopseditor/fckeditor/formfckeditor.php on line 24
The content of this file is:
<?php  /*  You may not change or alter any portion of this comment or credits  of supporting developers from this source code or any supporting source code   which is considered copyrighted (c) material of the original comment or credit authors.    This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */  /**  *  FCKeditor adapter for XOOPS  *  * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/  * @license         http://www.fsf.org/copyleft/gpl.html GNU public license  * @package         class  * @subpackage      editor  * @since           2.3.0  * @author          Taiwen Jiang <phppp@users.sourceforge.net>  * @version         $Id: formfckeditor.php 2154 2008-09-22 02:38:32Z phppp $  */  xoops_load('XoopsEditor');  class XoopsFormFckeditor extends XoopsEditor {     var $language;     var $upload true;     var $width "100%";     var $height "500px";     var $toolbarset "Xoops";      /**      * Constructor      *      * @param    array   $configs  Editor Options      */     function __construct($configs)     {         $this->rootPath "/class/xoopseditor/fckeditor";         parent::__construct($configs);         $this->width = isset($this->configs["width"]) ? $this->configs["width"] : $this->width;         $this->height = isset($this->configs["height"]) ? $this->configs["height"] : $this->height;         $this->upload = isset($this->configs["upload"]) ? $this->configs["upload"] : $this->upload;         $this->toolbarset = isset($this->configs["toolbarset"]) ? $this->configs["toolbarset"] : $this->toolbarset;     }          function XoopsFormFckeditor($configs)     {         $this->__construct($configs);     }      /**      * get language      *      * @return    string      */     function getLanguage()     {         if ($this->language) {             return $this->language;         }         if (defined("_XOOPS_EDITOR_FCKEDITOR_LANGUAGE")) {             $this->language strtolower(constant("_XOOPS_EDITOR_FCKEDITOR_LANGUAGE"));         } else {             $this->language str_replace('_''-'strtolower(_LANGCODE));         }                  return $this->language;     }      /**      * prepare HTML for output      *      * @param   bool    decode content?      * @return  sting HTML      */     function render($decode true)     {         $ret '';         $oFCKeditor = new FCKeditor($this->getName());         $oFCKeditor->BasePath    XOOPS_URL $this->rootPath"/fckeditor/";         $oFCKeditor->ToolbarSet    $this->toolbarset;         $oFCKeditor->Width        $this->width;         $oFCKeditor->Height        $this->height;         if ($decode) {             $ts =& MyTextSanitizer::getInstance();             $oFCKeditor->Value $ts->undoHtmlSpecialChars$this->getValue() );         } else {             $oFCKeditor->Value $this->getValue();         }          if (is_readable(XOOPS_ROOT_PATH $this->rootPath'/fckeditor/editor/lang/' $this->getLanguage() . '.js')) {             $oFCKeditor->Config['DefaultLanguage'] = $this->getLanguage();         }          if (defined("_XOOPS_EDITOR_FCKEDITOR_FONTLIST")) {             $oFCKeditor->Config['FontNames'] = _XOOPS_EDITOR_FCKEDITOR_FONTLIST;         }                  $dirname is_object($GLOBALS["xoopsModule"]) ? $GLOBALS["xoopsModule"]->getVar("dirname""n") : "system";          if (!file_exists($config_file XOOPS_ROOT_PATH "/cache/fckconfig.{$dirname}.js")) {             if ( $fp fopen$config_file "wt" ) ) {                 $fp_content "";                 if ($xoopsconfig implode(""file(XOOPS_ROOT_PATH $this->rootPath'/fckconfig-xoops.js'))) {                     $fp_content .= "/* FCKconfig custom configuration */n";                     $fp_content .= $xoopsconfig "nn";                 }                 $fp_content .= "/* FCKconfig module configuration */n";                 if (is_readable($config_mod XOOPS_ROOT_PATH "/modules/{$dirname}/fckeditor.config.js")) {                     $fp_content .= "/* Loaded from module local config file */n" implode(""file($config_mod)) . "nn";                 }                 if (is_readable(XOOPS_ROOT_PATH "/modules/{$dirname}/fckeditor.connector.php")) {                     $fp_content .= "var browser_path = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=" XOOPS_URL "/modules/" $GLOBALS["xoopsModule"]->getVar("dirname""n") . "/fckeditor.connector.php';n";                     $fp_content .= "FCKConfig.LinkBrowserURL = browser_path ;n";                     $fp_content .= "FCKConfig.ImageBrowserURL = browser_path + '&Type=Image';n";                     $fp_content .= "FCKConfig.FlashBrowserURL = browser_path + '&Type=Flash';nn";                 }                 if (is_readable(XOOPS_ROOT_PATH "/modules/{$dirname}/fckeditor.upload.php")) {                     $fp_content .= "var uploader_path = '" XOOPS_URL "/modules/{$dirname}/fckeditor.upload.php';n";                     $fp_content .= "FCKConfig.LinkUploadURL = uploader_path;n";                     $fp_content .= "FCKConfig.ImageUploadURL = uploader_path + '?Type=Image';n";                     $fp_content .= "FCKConfig.FlashUploadURL = uploader_path + '?Type=Flash';nn";                 }                 if (empty($this->upload)) {                     $fp_content .= "FCKConfig.LinkUpload = false;n";                     $fp_content .= "FCKConfig.ImageUpload = false;n";                     $fp_content .= "FCKConfig.FlashUpload = false;nn";                 }                                  fwrite$fp$fp_content );                 fclose$fp );             } else {                 trigger_error"Cannot create fckeditor config file"E_USER_ERROR );             }         }                  if (is_readable($config_file)) {             $oFCKeditor->Config['CustomConfigurationsPath'] = XOOPS_URL "/cache/fckconfig.{$dirname}.js";         } else {             $oFCKeditor->Config['CustomConfigurationsPath'] = XOOPS_URL $this->rootPath'/fckconfig-xoops.js';         }                  foreach ($this->configs as $key => $val) {             if (isset($this->{$key})) continue;             $oFCKeditor->Config[$key] = $val;         }                  $ret $oFCKeditor->CreateHtml();         return $ret;     }      /**      * Check if compatible      *      * @return      */     function isActive()     {         if ( ! @include_once XOOPS_ROOT_PATH $this->rootPath"/fckeditor/fckeditor.php" ) {             $this->isEnabled false;         } else {             $this->isEnabled FCKeditor::IsCompatible();         }         return $this->isEnabled;     } } ?>
I test on my clean test site with XOOPS 2.4.1: - the FCK Editor from my 2.3.3 install that works -> dont work here - the FCK Editor from the XOOPS 2.3.3 install dir -> dont work - the FCK Editor from Simple XOOPS (2.40) -> dont work "restricted access" I also use the change settings from your links in your last post, but the CKEditor doesnt show me the "search..." Button, see here: Resized Image an i miss the "upload" tab in this window above. I will cry if i cant use one of this editors. So the Text Features works fine but without image upload i isnt a good working. I dont want upload all the files manually. And im still sure, that the main problem that FCKEditor doesnt work is this new "Restricted Access" Feature in XOOPS 2.4.x!!! If anybody can do a clean test install of XOOPS 2.4 WITH FCKeditor OR CKEditor FULL working (with Fileuploads!!) please send me the config files of this working installation! Ask for my Mail with PN!



4
Axxxxxl
Re: restricted access Problem
  • 2009/11/14 17:47

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


Me again,

for testing i do a fresh XOOPS 2.4.1. installation only with news 1.64 and FCKEditor from my other site, where it works.
But im sure now, that is a main problem since XOOPS 2.4 that the FCKEditor also on this fresh site say "Restricted Access" and in the CKEditor i can open the popup for insert images but i miss the "Search Server" Button to search my images.

Please give this information to the official XOOPS Team for Fixing!!!



5
Axxxxxl
Re: restricted access Problem
  • 2009/11/14 16:21

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


I modificate nothing. I use XOOPS from 2.0.18 to 2.3 together with the FCEditor, i think the version from myxoops.de or simple-xoops.de and the Upload was enabled all the time!
I know only, that when in XOOPS the option "gzip compression" is activated, the FCKEditor dont work, but i have the option disabled.

Also in the CKeditor all works fine, but if i try to upload, it came a message in the CK Popup Window that say (in german): "The Filemanager is disabled. Please contact the Administrator or change it in the configuration".

Mysterios! But the Debug Mode say nothing like "missin a include file" and so on. We must find a solution because i need my lovely FCKEditor. If i find it by myself, i will write your a message here.



6
Axxxxxl
Re: restricted access Problem
  • 2009/11/14 9:51

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


In the Popup of the FCKEditor when i want to upload a picture there is the following URL:

http://www.myurl/class/xoopseditor/fckeditor/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=http%3A%2F%2Fwww.myurl%2Fclass%2Fxoopseditor%2Ffckeditor%2Ffckeditor%2Feditor%2Ffilemanager%2Fconnectors%2Fphp%2Fconnector.php


I got the same error if i use the Testpage of FCKEditor in
../class/xoopseditor/fckeditor/fckeditor/editor/filemanager/connectors/test.html


everytime "restricted access"

So i ask myself, what means the new code
defined('XOOPS_ROOT_PATH') or die('Restricted access');

in many pages of XOOPS 2.4.1, because i think there is the main problem?!?!



7
Axxxxxl
restricted access Problem
  • 2009/11/14 1:19

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


Hi,

im from Germany and have the following problem. I update one of my XOOPS site from 2.3 to 2.4.0 and today to 2.4.1 and the system itself works fine. I use now the news modul 1.64 and can change all available editors. My favorit FCKeditor (NOT CKEditor) works also but even if i click the button for insert a image and then "search on server (in german: "Durchsuchen") i get the error "restricted access". The same FCK on a "old" 2.3 site works fine.

I found in many files of 2.4.x e.g. /class/xoopseditor/xoopseditor.php the new line:
defined('XOOPS_ROOT_PATH') or die('Restricted access');


I think here is the main problem?! But i am right, that the XOOPS_ROOT_PATH is defined in my mainfile.php? I never change this file and it works great with 2.3 but now i get the "restricted access" error. Also all CHMOD Settings for Cache and the other tempfiles are correct, im sure!

Can you help me with this problem? I need the upload of images in FCKeditor! THANKS!



8
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 20:10

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


@ghia:
Im sure a older version of NEWS had this option, but with V1.63 i have under the text areas only this options:

=> ...E-Mail if the article will be public
=> disable HTML
=> disable Smilies
(i have this options free translate from german!)

There is no line-break option! The "disable HMTL" option is only for ignore any html code in the textboxes or from the editors.



9
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 15:22

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


IT WOOOORKS !!!

@nmshah:
Many, many thanks for this information. This was the right answer for my problems. Thank you.

Waht do you think, we have to tell this "bug" the "News Module" team?



10
Axxxxxl
Re: FCKEditor inserts extra br in News and AMS
  • 2009/4/4 11:51

  • Axxxxxl

  • Just popping in

  • Posts: 12

  • Since: 2009/4/1 2


@nmshah:

Thanks for the moment. I can test it not befor this evening (here in Germany) but i hope it will work also for me.

But can you tell me, what the "1" and "0" at the end of the variables do or change?

Thanks.




TopTop
(1) 2 »



Login

Who's Online

228 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 228


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits