Tiny mce editor doesn't work for QA plugin

I don't know why I'm getting these javascript errors... because of these errors, I can't get the tiny mce editor to work anywhere within the Ask a Question section. Here's a screencap of the the errors I'm getting: https://dl.dropbox.com/u/53096215/2012-09-17_150146.jpg

Need help ASAP because I'm launching soon. Thanks!

  • mwise
    • New Recruit

    I'm not developing locally and the files do exist where they should. I think the problem is that the QA plugin is trying to load the files with incorrect URLs:

    /wp-admin/js/word-count.jsver=3.4.2?ver=3.4.2
    /wp-admin/js/media-upload.jsver=3.4.2?ver=3.4.2
    /wp-admin/js/editor.jsver=3.4.2?ver=3.4.2

    When it should be:

    /wp-admin/js/word-count.js?ver=3.4.2
    /wp-admin/js/media-upload.js?ver=3.4.2
    /wp-admin/js/editor.js?ver=3.4.2

    Can you please tell me where in the QA plugin files these scripts are being called? I've been searching for an hour and I can't find them.

  • mwise
    • New Recruit

    Hi Kimberly – I tried flushing permalinks and no luck. I'm using jQuery 1.8.1 (Google-hosted) and my permalink structure is /%year%/%monthnum%/%day%/%postname%/.

    The tiny mce editor works fine on the backend (no js errors) so it's obviously something to do with this plugin. The utils.js, word-count.js, media-upload.js, and edtior.js files are all loading on the page, but they're being called by the wrong URL by the QA plugin.

  • mwise
    • New Recruit

    Yes, the frontend "ask a question" editor (along with the editor for supplying answers to questions) is the only one that doesn't work.

    My theme has been debugged and passed Theme Check 100% so I don't know what kind of conflict could exist.

    Again, I really think this has something to do with the URLs not being written correctly (see screenshot). Thanks.

  • Hakan
    • The Incredible Smush

    Hi,

    but they're being called by the wrong URL by the QA plugin.

    As maxaud pointed out, these are WP core js files and Q&A does not call these javascript files, it simply calls the wp_editor function to use tinyMCE. So this issue does not seem to be related to Q&A.

    It is difficult to diagnose the issue though, because you have no link to your website. Try to disable wp_editor by checking "Disable wp editor" setting to see if errors disappear.

    Try deactivating all other plugins and switching to the default theme too.

    For further help, we will need a link to your website and, better, your login credentials. You can safely use our contact form.
    https://premium.wpmudev.org/contact/

    Cheers,
    Hakan

  • mwise
    • New Recruit

    Access to the site is currently restricted to in-house only (by my IT department) because it is still on a development server, so I can't share a link at this time... otherwise I would have shared that instead of screenshot in my original post. I have tried deactivating plugins, re-installing the Q&A plugin, updating WordPress, etc. and I still have the same problem. Yes, disabling the WP editor and replacing it with the plain text area works, but it's unfortunate that this is the only solution (esp. when I had no problems getting the WP editor to work when I was testing with Q&A Lite).

  • Hakan
    • The Incredible Smush

    Hi,

    This is what I see about those javascript files on my page:

    <script type='text/javascript' src='http://example.com/wp-admin/js/word-count.js?ver=3.4.1'></script>
    <script type='text/javascript' src='http://example.com/wp-admin/js/utils.js?ver=3.4.1'></script>
    <script type='text/javascript' src='http://example.com/wp-admin/js/editor.js?ver=3.4.1'></script>

    As I wrote before, Q&A does not call the above js files itself.

    I am sorry but I don't know how to help you further. From now on I can only guess.

    There may be a problem in your WordPress installation.

    I understand that you updated to WordPress V3.4.2. Are you sure that all new version files are uploaded? Did you make a manual update or an automatic one? You can check timestamps of files in wp-includes folder.

    Cheers,
    Hakan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.