Follow up from http://drupal.org/node/123857.
Error: $("#statusImg").top is not a function
Code: http://www.example.com/modules/tinymce/tinymce/jscripts/tiny_mce/plugins... Line: 41
Ah, "misc/jquery.js" doesn't seem to be loaded. Could you please open the popup window and then view the source (Firefox: "view -> show source"). There should be a line like
<script type="text/javascript" src="http:///www.example.com/misc/jquery.js"></script>
If its not there there is a problem with generating your drupal url.
To see whats wrong please follow these steps:
1. open modules/tinymce/.../plugins/linktomenu/popup.php in an editor
2. insert alert(url); after line 26 and save popup.php
3. go to your site and click the button "linktomenu" in tinymce
Now a message with the generated drupal-url should popup. Does this url equals your real url?
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | ltc_1.html | 867 bytes | stborchert |
Comments
Comment #1
dcoun commentedI have the following instead:
When inserting
alert(url);I get an error in console "url is not defined"Comment #2
stborchertHm, youre right.
Youre code (in popup.php) should look like this:
Comment #3
dcoun commentedI got : http://www.example.com/
This is the main page in my drupal (The domain changed to "example")
Comment #4
dcoun commentedSo what is next ? Any idea how to solve it? Thank you in advance
Comment #5
stborchertThe path is correct, so jquery.js should be loaded.
Hm, what does
alert($('#statusImg'));display if you insert this into functions.js line 40?Comment #6
dcoun commentedit is shown: [object Object]
Comment #7
stborchertLooks good.
And what about
alert($('#statusImg').top());oralert($('#statusImg').top);?What version of jquery.js do you have (misc/jquery.js)?
// $Id: jquery.js,v 1.6 2006/12/23 21:46:35 dries Exp $In newer versions
.top(...)isn't defined anymore. There is.css({top: ...});instead.Comment #8
dcoun commentedThe first shows nothing but the same error exist in firefox's error console.
The second shows a message: undefined
I had the above with // JQuery 1.1.2 from jquery_update module
I change it with jquery.js,v 1.6 2006/12/23 from original Drupal 5.1 tarball
I am getting now in firefox's error console but the user waits again in the "Loading" ball:
Error: missing ) in parenthetical
Code: http://www.enosigi.gr/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/...
Line: 51, Col: 31
Code: "hasChildren": true } } }
Comment #9
dcoun commentedHow we can change the domain in the above comment to show : example.com ?
Comment #10
stborchertI worry we can't. But you may ask one of the webmasters to change this.
Ha! I knew you didn't tell me all your config :-)
I'm trying to update my js-files to work with the newer jquery. Until its done you could try to replace
$("#statusImg").top(top + "px").show();with$('#statusImg').css({top: top + "px"}).show();(in functions.js).Don't know if its the only change but it could work (uh, I see I'll have to rewrite at least dropdown.js: its only partially using jQuery magic).
You've got devel.module activate, right!?
Please disable it and try again. Its printing some infos at the bottom of each output page, so it does with the result page wich is sent to the plugin-window. Therefore the data has the wrong format and the error occurs.
greetings,
Stefan
Comment #11
dcoun commentedthank you Stefan,
I disabled the devel module and I use the original jquery for the moment and linktomenu works ok for now. I have many modules and a lot of things can happen, sorry...
The linktonode does the same and gives the error in firefox's error console:
Error: missing ) in parenthetical
Code: http://www.example.com/modules/tinymce/tinymce/jscripts/tiny_mce/plugins...
Line: 57, Col: 20
Code:
({ "message": null }{ });
Comment #12
stborchertNo, you don't have to be sorry. I can't test all possibilities and am happy if someone finds an error (that can be fixed).
Ok, I'll change the code to work with newer versions of jquery.
Argh.
Hm, don't know why this error is given. The string looks fine (although there is an other error).
Could you please try the attached file, insert your url into the source (line 9:
<form action="...". Insert a vocabulary-id and submit this form. It should at least display something like this:{ "categories": {...}, "nodes": {...} }hth,
Stefan
Comment #13
stborchertforgot the file...
Comment #14
dcoun commentedThe page source result from the attached page is:
{ "message": null }{ }But at the same time, I get the following errors in the admin/settings/linktocontent page:
Comment #15
stborchertAh, we're getting closer.
Could you please do a query on your database (using phpMyAdmin or something similar):
SELECT * FROM variable WHERE name = 'linktocontent_registered_plugins';It should look like
If you'd like to you could send me the results via mail.
Hm, did you install and activate this?
Don't wonder if you can't find plugin-files for linktocontent_category: there aren't any (its only an extension of linktocontent_node).
very weird...
Comment #16
dcoun commentedIt gave me:
I had installed in the past the category module but I disabled it.
Comment #17
stborchertHave you disabled linktocontent_category, too?
Comment #18
dcoun commentedI enabled category and taxonomy-wrapper, I disabled taxonomy-wrapper & all linktocontent modules and I enabled again all linktocontent except the linktocontent-category module.
I tryied to update variable table with content from http://drupal.org/node/147025#comment-252208
I always get the error described in http://drupal.org/node/147025#comment-251638 and the above errors in the admin/settings/linktocontent page
Comment #19
dcoun commentedForgot to say that all category modules are disabled
Comment #20
stborchertOk, lets start a new try. Please reinstall all linktocontent* modules:
1. go to admin/build/modules
2. unselect linktocontent and all of its submodules (...node, ...menu, ...category).
3. go to admin/build/modules/uninstall
4. select all modules (linktocontent*) and submit this page
5. look into tinymce/plugin_reg.php if the linktocontent-specific strings are removed
6. go to admin/build/modules again and install linktocontent, linktocontent menu and linktocontent node again
7. enable linktonode and linktomenu on admin/settings/linktocontent and set up the content types and menus you'd like to
(8. check the variable-table in your database
SELECT * FROM variable WHERE name LIKE 'linktocontent%';)Hopefully its now working.
Comment #21
dcoun commentedI re-installed linktocontent modules after deleting and cleaning in DB the previous installation.
Everything is working ok now.
Thank you very much for your time.
Comment #22
stborchertGood to here. I will create a new version to work with newer jquery version within the next days.