Title: fix for javascript error &#8220;ffwd_plugin_url&#8221; in ffwd_editor_button.js
Last modified: July 11, 2017

---

# fix for javascript error “ffwd_plugin_url” in ffwd_editor_button.js

 *  Resolved [hippeet](https://wordpress.org/support/users/hippeet/)
 * (@hippeet)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/)
 * I fixed a javascript error on “undefined var ffwd_plugin_url” in ffwd_editor_button.
   js. Maybe this can be of help to somebody else.
    This does not seem to affect
   the facebook feed plugin but it caused an other plugin to malfunction.
 * Here’s the fix:
 * \wp-content\plugins\wd-facebook-feed\js
 *     ```
       (function () {
         tinymce.create('tinymce.plugins.wd_fb_mce', {
           init:function (ed, url) {
             var c = this;
       # add the next line
             var ffwd_plugin_url = plugin_url:url;
             c.url = url;
             c.editor = ed;
       ```
   
 * So you basically need to add juts a single line of code at line 5.
 * Hope this helps anyone.
 * With regards,
 * Peet
    -  This topic was modified 8 years, 11 months ago by [hippeet](https://wordpress.org/support/users/hippeet/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [WD Support](https://wordpress.org/support/users/wdsupport/)
 * (@wdsupport)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9308469)
 * Hello, [@hippeet](https://wordpress.org/support/users/hippeet/)!
 * We greatly appreciate your time finding out the solution to this conflict, and
   sharing it with us!
 * Could you please let us know which plugin was affected by Facebook Feed WD?
    
   Thanks! Have a great day!
 *  Thread Starter [hippeet](https://wordpress.org/support/users/hippeet/)
 * (@hippeet)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9309325)
 * The affected plugin in my case was WP Adverts.
    However, I suspect this would
   possible influence more plugins.
 *  Plugin Contributor [WD Support](https://wordpress.org/support/users/wdsupport/)
 * (@wdsupport)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9312066)
 * Hi, [@hippeet](https://wordpress.org/support/users/hippeet/)!
 * Thank you so much for the information!
 * I have reported this to our development team. They will investigate further and
   fix the bug in one of the next few updates of Facebook Feed WD plugin.
 * Cheers!
 *  Thread Starter [hippeet](https://wordpress.org/support/users/hippeet/)
 * (@hippeet)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9732235)
 * It seems that this has not been fixed yet.
    I fixed the problem earlier, but 
   now the error has returned. But also something else has changed: the fix that
   worked for me earlier does not work anymore. “var ffwd_plugin_url = plugin_url:
   url;” Leads to an error itself. Something with a missing “;”.
 * Please help, now I don’t know how to fix this (in reasonable time)
 * Cheers!
 *  Thread Starter [hippeet](https://wordpress.org/support/users/hippeet/)
 * (@hippeet)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9733431)
 * I am very sorry, but the above comment is not correct.
    The plugin works just
   fine!
 * Cheers again!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘fix for javascript error “ffwd_plugin_url” in ffwd_editor_button.js’ 
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wd-facebook-feed_e0e3e1.svg)
 * [10Web Social Post Feed](https://wordpress.org/plugins/wd-facebook-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wd-facebook-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wd-facebook-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/wd-facebook-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wd-facebook-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wd-facebook-feed/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [hippeet](https://wordpress.org/support/users/hippeet/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/fix-for-javascript-error-ffwd_plugin_url-in-ffwd_editor_button-js/#post-9733431)
 * Status: resolved