cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




cforms crash tinyMCE editor

Add a New Topic Reply to Post
Post

derGepard - Guest

4:09 pm - November 13, 2007

Hi,

my tinyMCE editor (e.g. when writing or editing posts or pages) doesn’t work properly after the installation of cforms 6. The editor doesn’t show any content and it’s not possible to ‘activate’ the textarea by clicking in the field.

Firebug says:


purl is not definedgetInfo(Object undoRedoLevel=true isTinyMCE_Control=true)editor_plugin.js (line 1)evalFunc(function(), 3, [Object undoRedoLevel=true isTinyMCE_Control=true, "init_instance_callback", "initInstance", 1 more…], Object)tiny_mce_gzip.php (line 96)callFunc(Object undoRedoLevel=true isTinyMCE_Control=true, "init_instance_callback", "initInstance", 0, [Object undoRedoLevel=true isTinyMCE_Control=true, "init_instance_callback", "initInstance", 1 more…])tiny_mce_gzip.php (line 100)dispatchCallback(Object undoRedoLevel=true isTinyMCE_Control=true, "init_instance_callback", "initInstance")tiny_mce_gzip.php (line 97)setupContent("mce_editor_0")tiny_mce_gzip.php (line 44)_onAdd(textarea#content.mceEditor, "content", undefined)tiny_mce_gzip.php (line 183)addMCEControl(textarea#content.mceEditor, "content", undefined)tiny_mce_gzip.php (line 29)onLoad()tiny_mce_gzip.php (line 63)onLoad()


The problem concerns the Firefox. In the IE the tinyMCE editor is working, but the popup after clicking the cforms button is empty.
TinyMCE still doesn’t work btw after uninstalling cforms. The tinyMCE button isn’t deleted.


Can the problem be arose because I updated cforms from v5.x to v6 without uninstalling it before?


What can I do now? My tinyMCE is complete broken in FF :/

Thanks for support 

 

EDIT: Resolved! can be deleted! thx

Oliver - Admin

5:59 pm - November 13, 2007

posts 3562

EDIT: What was the issue? 

 

I've not seen this error before and cforms doesn't make any permanent changes to TinyMCE. If you had enabled Button Support in cforms all it would do is -at run-time- add a cforms button. Disabling "Button Support" simply will not add the button.

Before you remove cforms, you can use "DELETE ALL cforms DATA" under "Global Settings" to make sure nothing is left behind.

For the upgrade the only thing you should be considering is a DB Backup (which with any upgrade is a good thing to do), de-activate cforms and reactive the new one.

Have you tried clearing your browser cache?

Do you run special WP caching?

BLUEFUZE - Guest

6:44 pm - November 13, 2007

I think I'm getting something similar. I've just installed this for the first time... and when I'm trying to insert a form into the edit window when creating a "Contact Page" for example... I click the little icon to insert a form, then a pop-up comes up that is empty. I've tried in FF and IE, and same thing.

Can you help?

HobbesPDX - Guest

2:23 am - August 10, 2008

I am DEFINETLY experiencing this, using the latest version, cForms 8.6.1.

I'm using WordPress Mailing List plugin, and when it invokes the TinyMCE the first time, it's fine, but when you switch from visual back to HTML, the whole thing disappears, and the Firefox Error Console says

Error: purl is not defined
Source File: http://www.valeriedaysings.com/wp-content/plugins/cforms/js/editor_plugin25.js?ver=311
Line: 1

Error: t.dom is undefined
Source File: http://www.valeriedaysings.com/wp-includes/js/tinymce/tiny_mce_config.php?ver=20080710
Line: 36


What's the deal?

Oliver - Admin

8:38 am - August 10, 2008

posts 3562

Interesting, since the purl variable ought to be set by the admin part of cforms.

It seems like this is an odd server issue (2nd time I'm hearing this), and may require your provider to look at the web server log files (any 404/403?).

It may also be that some other plugin causes a JS problem which hinders cforms to properly set purland therefore causes more issues down the road.

If you still have issues, feel free to send me login details via my contact form and I can take a quick look.

HobbesPDX - Guest

6:12 pm - August 10, 2008

There are no 403/404 errors that I'm aware of.

please email me at

webmaster*A**T*valeriedaysings*COM

Tribulant - Guest

7:31 pm - August 10, 2008

Basically the cForms plugin is trying to use a variable "purl" before it has been defined. Due to the fact that a function/method depends on the undefined "purl" variable, it raises a Javascript error on the page and prevents execution of all other scripts. If you could define the "purl" variable before you use it, it will sort out all your problems.


Best,

Antonie

Oliver - Admin

7:21 am - August 11, 2008

posts 3562

Thanks Antonie for helping out.

In this case the source of the issue is that another plugin is using a TinyMCE editor instance outside of the Write/Edit Post/Page context.

Since cforms doesn't add its admin header to all admin pages (for good reasons) it however breaks the other plugin.

I'll add a fall back routine going forward.

Joe - Guest

8:47 pm - August 20, 2008

Hello,

I'm also having the purl is not defined error. I tried to disable this plugin (after clicking the "DELETE ALL cforms DATA") but I'm still getting the error. My WP is a fresh install (about 2 days old now) with the following plugins:

  • WP Paypal Donate Widget R2.0
  • WordPress.com Stats
  • Akismet

Please advise.


Thanks

Oliver - Admin

9:03 pm - August 20, 2008

posts 3562

"DELETE ALL cforms DATA" only deletes all cforms data.

You need to disable the plugin under 'plugins'.

Jay - Guest

8:50 pm - August 22, 2008

Hi,

Great plugin and finding it usefull but I am have a problem with a similar thing to. Basically If I have cforms and Mailpress plugins both activited I lose the TinyMCE Bold, italic etc functions on the post, page and mailpress creation pages. Comes up with that 'purl' error.

When you said "I'll add a fall back routine going forward" do you mean on your next realese? Out of interest is that likely to be soon?

Cheers Jay

HobbesPDX - Guest

6:51 am - August 23, 2008

I believe the current workaround is in the cforms settings, to disable Button Support.  This will cause cforms to *NOT* modify TinyMCE (add in it's button), and things should work again....

Oliver - Admin

11:48 am - August 23, 2008

posts 3562

correct, see this thread, too.

Jay - Guest

12:50 pm - August 28, 2008

8.7 has seemed to fix the problem! great work!


Jay

Add a New Topic Reply to Post


Reply to Topic: cforms crash tinyMCE editor
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 12        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)