1
LordPeter
wf-channel v2.02
  • 2008/9/4 11:19

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Hi,

I installed the module and the resource to, when i try to create a page in admin index it gives me the next error ( Fatal error: Cannot redeclare class XoopsFormEditor in /usr/home/xxxxx/domains/xxxxx.eu/public_html/forum/modules/wfresource/class/xoopsforms/formeditor.php on line 76 )
What can i do to solve this?

thanx and greets,
Peter

2
LordPeter
Re: wf-channel v2.02
  • 2008/9/10 9:25

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Fix it, found out that my ftp client made the upload files corrupt, now i want to create a new page in admin index. i see the buttom create page but then it gives me only

Page Management
Edit Mode: You can edit this pages properties here. Click the submit button to make your changes permanent or click Cancel to return you were you where.


When i go to permission i'll get

Permission Management
Manage all your Refer page from this area.


What can i do to solve this

Xoops version - 2.3.0 rc2
PHP Version - 5.2.6
MySQL Version - 5.0.22

3
LordPeter
Re: wf-channel v2.02
  • 2008/9/11 10:17

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Nobody knows the answer, i lookt arround on the site but didn't found anything about this.
So is there somebody with a answer or solution...Please help

4
Mamba
Re: wf-channel v2.02
  • 2008/9/11 15:30

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I've installed on XOOPS 2.3 RC2, and it gives me the same error as you, i.e. there is a conflict with the XoopsFormEditor being redeclared. I commented it out (file formeditor.php, lines 50-76), and then I got error with XoopsFormSelectEditor being redeclared. I commented it out as well (file formselecteditor.php, lines 46-70), and now I was able to add a new page.

However, for the new page, the Extended DHTML buttons are not there (they are visible in the Referrer and Links pages). It's just a plain text window, but the XOOPS codes, e.g. [ b ]bold[ /b ] are working.

Also, once you add the first custom page, the permissions are working.

I guess, we'll have to take a closer look into making it work with 2.3.

But try to make those changes and let us know if it also works on your XOOPS.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
LordPeter
Re: wf-channel v2.02
  • 2008/9/12 7:57

  • LordPeter

  • Just popping in

  • Posts: 48

  • Since: 2008/2/29


Hi Mamba,

I deleted the lines 50-51-52-76 out of formeditor.php

now it looks like this :

/**
* XoopsEditor hanlder
*
* @author D.J.
* @copyright copyright (c) 2000-2005 XOOPS.org
*
* @package kernel
* @subpackage form
*/
/**
* Constructor
*
* @param string $caption Caption
* @param string $name "name" attribute
* @param string $value Initial text
* @param array $configs configures
* @param bool $noHtml use non-WYSIWYG eitor onfailure
* @param string $OnFailure editor to be used if current one failed
*/
function XoopsFormEditor($caption, $name, $editor_configs = null, $noHtml=false, $OnFailure = "")
{
require_once XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php';
$this->XoopsFormTextArea($caption, $editor_configs["name"]);
$editor_handler =& new XoopsEditorHandler();
$this->editor =& $editor_handler->get($name, $editor_configs, $noHtml, $OnFailure);
}

function render()
{
return $this->editor->render();
}
?>

Also i deleted the lines 46-47-70 in formselecteditor.php

Looking like this :

* A select box with available editors
*
* @package kernel
* @subpackage form
*
* @author phppp (D.J.)
* @copyright copyright (c) 2000-2003 XOOPS.org
*/
/**
* Constructor
*
* @param object $form the form calling the editor selection
* @param string $name editor name
* @param string $value Pre-selected text value
* @param bool $noHtml dohtml disabled
*/
function XoopsFormSelectEditor(&$form, $name="editor", $value=null, $noHtml=false)
{
$this->XoopsFormElementTray(_SELECT);

$editor_handler =& new XoopsEditorHandler();
$option_select = new XoopsFormSelect("", $name, $value);
$extra = 'onchange="if(this.options[this.selectedIndex].value.length > 0 ){
window.document.forms.'.$form->getName().'.submit();
}"';
$option_select->setExtra($extra);
$option_select->addOptionArray($editor_handler->getList($noHtml));

$this->addElement($option_select);
}
?>
The results of that are, i can see all the pages within the admin section, create a new pages, set permisions for vieuwing the page(s)and so on..
When vieuwing the created pages i notice that when creating an pages and inserting a emocon it won't show the emocon in the created page. Swf files is no problem at all.
That's all the things i found out till know.

Greetz,
Peter

6
anderssk
Re: wf-channel v2.02
  • 2008/9/20 20:38

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


I get same error on 2.3.0 RC3

I deleted formeditor.php

and the only line in formselecteditor.php is
include_once XOOPS_ROOT_PATH.'/class/xoopseditor/xoopseditor.php';

Really bad, this module not work with 2.3.0

Login

Who's Online

129 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 129


more...

Donat-O-Meter

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

Latest GitHub Commits