dbfm's in tinymce shows a standard page

geofs - May 25, 2008 - 16:09
Project:DataBase File Manager
Version:5.x-3.3
Component:Code
Category:bug report
Priority:normal
Assigned:nurmanx
Status:closed
Description

see screenshot. I expect to see dbfm only, not all the menus,...

AttachmentSize
dbfm.PNG33.84 KB

#1

rooey - May 25, 2008 - 17:51

This looks like a TinyMCE configuration issue. Ensure that you haven't enabled it for all text boxes!

#2

rooey - May 25, 2008 - 17:51
Status:active» postponed (maintainer needs more info)

#3

rooey - May 25, 2008 - 17:52

Ah, have you just clicked the "DBFM" icon within TinyMCE?

Please ensure you have used the built-in button and not the one below the node.

What versions of Drupal, PHP are you running - what webserver, server OS, etc.

#4

geofs - May 26, 2008 - 07:47

hello,

Yes, I've clicked the icon within tinymce's toolbar.
Drupal 5.7
DBFM 3.2-RC0
DBFM greybox 5.x-2.0
DAPI 5.x-1.0
TinyMCE module 5.x-1.9 with TinyMCE 2.1.2

Note: I just noticed that TinyMCE 2.1.3 was out. I'll install it and report results ASAP.

I did not install organic groups (yet).

This is a RedHat Enterprise Linux 4, update 6 with PHP5 from CentOS.

MySQL database 5.0.58
PHP 5.1.6
Web server Apache/2.0.59 (CentOS)

Browsers Firefox 2.0.0.14 and 3.0 RC1

edit: also checked with IE 7 : same result

#5

geofs - May 26, 2008 - 08:08

Same issue with TinyMCE 5.x-dev/2.1.2, 5.x-dev/2.1.3 and 5.x-1.9/2.1.3

#6

geofs - May 26, 2008 - 09:12

1) I also checked with different versions of jstools (as you mention that only 0.6 works, i dowgraded from 0.8 and also tried with 1.1) but no difference. I also tried different themes.

2) You mention the button below the edit box: when I "disable rich-text" and click on the icon, i get a nice DBFM popup! So this works...

#7

rooey - May 27, 2008 - 14:19
Version:5.x-3.2-rc0» 5.x-3.2-rc1

#8

rooey - May 27, 2008 - 14:20

Noted as a known issue. We know what's causing it, will get a fix out for RC2.

#9

rooey - May 29, 2008 - 09:29
Status:postponed (maintainer needs more info)» needs review

#10

d.patchett - June 11, 2008 - 15:28
Status:needs review» fixed

Re-tested 11/06/08 and OK.

#11

geofs - June 12, 2008 - 08:31
Version:5.x-3.2-rc1» 5.x-3.3
Status:fixed» active

Problem still there. I tested with IE7, FF2, FF3. What am I missing?

Drupal 5.7
DBFM 3.3
DBFM greybox 5.x-3.0
DAPI 5.x-1.0
TinyMCE module 5.x-1.9
TinyMCE 2.1.3

#12

rooey - June 12, 2008 - 10:53

We must have missed something.. It's a drupal thing - we're gearing up for 5.7 so it should be fixed soon (5.4) If you can give us more detailed instructions on how to re-produce it using 5.x.3.0 that'd be good.

#13

rooey - June 12, 2008 - 10:53
Status:active» postponed (maintainer needs more info)

#14

geoff_eagles - June 12, 2008 - 11:16
Status:postponed (maintainer needs more info)» active

Hi,
When I first wrote the code I tried using a standard popup window rather than the dbfm greybox. In my development directory I still have a couple of my failed attempts: editor_plugin.worksToPopup and editor_plugin_src.js
The files ended up being committed to cvs even though they shouldn't be part of the distribution. Looking at your screenshot there's no greybox - this tells me that you're almost certainly running editor_plugin_src.js rather than the correct editor_plugin.js.
Hope this helps

Geoff

#15

rooey - June 12, 2008 - 13:07

Check the readme file included with the module - there are instructions for installing the TinyMCE components!!!

You must use these for it to work correctly with TinyMCE

#16

geoff_eagles - June 12, 2008 - 14:39

Though the readme file doesn't actually mention anything about the .js files....

I guess for the next release some tidying is needed! There are also loads of icons that aren't in use anymore - we could probably strip out quite a bit (as well as tidying the comments!).

One thing you might try - in dbfm.module somewhere around line 1030 (at the end of the attachit function) can you change "print $output" to "echo $output". See if that helps. I know that if you put "return $output" you'll certainly get the effect your screenshot shows (although in a greybox if you're using the correct .js)

#17

rooey - June 13, 2008 - 09:22

You are using the DBFM icon on the TinyMCE toolbar? or the one below the node input form?

M.

#18

nurmanx - June 29, 2008 - 09:12
Component:User interface» Code
Assigned to:Anonymous» nurmanx

DBFM not appear if you use garland theme, try to use another...
Good Luck

#19

geoff_eagles - June 30, 2008 - 10:44

Nope - I can't agree with you there. My development machine runs garland and it runs dbFM fine. We'll have to look elsewhere for the problem!

#20

geofs - June 30, 2008 - 14:57

hello

I moved these two files out of the way. Same behavior.

Geof

#21

geofs - June 30, 2008 - 15:12

@rooey

Of course I double-checked the readme.txt and followed instructions there. I added the plugin initialization stuff and also checked the path in editor_plugin.js.

The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));

Is this correct?

As mentioned earlier, I'm using the icon included in tinymce's toolbar, NOT the button below the editor box. This button (the one below the editor box) works fine. IE I "disable rich-text" and click on the button below the editor box and I've got a pretty greybox with dbfm in it.

note: just noticed it is not necassary to disable rich-text anymore...

#22

geofs - June 30, 2008 - 15:14

@nurmanx

check with serveral other themes... same problem.

#23

geoff_eagles - June 30, 2008 - 15:32

"The plugin is in 'sites/all/modules/dbfm' and base_url = base_url.substring(0, base_url.indexOf('sites'));

Is this correct?"

Although in drupal 5 you're supposed to put non-core modules in the sites directory, in practice some sites still have ALL the modules under the modules directory. If you're in that category then you should replace 'sites' with 'modules' in the line above.
I'm guessing (from your original screenshot) that everything's fine there.

Do you run firebug? Are there any errors when you're on a node add or node edit page?? Gotta say this one's really got me puzzled!

#24

geoff_eagles - June 30, 2008 - 15:49

Just a thought - After changing the js code in the tinymce/jscripts/plugins/drupaldbfm directory did you remember to trash your browser cache??

#25

geoff_eagles - June 30, 2008 - 15:52

sorry - that should have read tinymce/jscripts/tinymce/plugins/drupaldbfm

#26

geofs - July 3, 2008 - 18:43

The problem comes from tinymce's compression plugin!

Do you run firebug? Are there any errors when you're on a node add or node edit page?? Gotta say this one's really got me puzzled!

Well, very good suggestion. I did not. I installed it and I'm getting this error when I click on tinymce's dbfm button:

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/bindings/browser.xml ::  :: line 644"  data: no]
http://w3.cbss.inet/sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=true&plugins=contextmenu%2Cdrupalbreak%2Cdrupaldbfm%2Cemotions%2Cfullscreen%2Cinlinepopups%2Csearchreplace%2Cstyle%2Ctable&themes=simple%2Cadvanced&languages=en&diskcache=true
Line 1957

I googled a bit for NS_ERROR_FAILURE and found that it is not so informative...

But I also noticed this "tiny_mce_gzip.php" in the error message. So I removed tinymce's gzip plugin and it worked!

If I enable the gzip plugin again, the button doesn't work anymore!

#27

geoff_eagles - July 4, 2008 - 10:15

I'm afraid you're on your own with that one.

#28

rooey - July 4, 2008 - 10:19

be advised that you'll need to run drupal in the root of your webserver for this to work correctly.

You also have to go to the settings pages for DBFM and DBFMgreybox and "Save" the settings before running the tool.

#29

geoff_eagles - July 4, 2008 - 13:27
Status:active» won't fix

#30

geoff_eagles - January 26, 2009 - 12:00
Status:won't fix» closed

Heard of no other users with the same problems - hope the problem's gone away for good?

 
 

Drupal is a registered trademark of Dries Buytaert.