Viewing 10 replies - 1 through 10 (of 10 total)
  • The seems to be related to the “Buttonverhalten” option. If it’s set to “Zeige sämtliche App-Store-Buttons im Editor”, TinyMCE works fine, but if it’s set to “Zeige sämtliche App-Store-Buttons im Editor innerhalb des Appbox-Buttons”, the “Visual” Tab is blank afterwards.

    The URL mentioned above

    http://wordpress.hackerspace-bremen.de/wp-content/plugins/wp-appbox/buttons/combined.btn.js.php?ver=359-20131026

    returns a 404 error (according to apache log), but some content is returned, starting with “function wpAppbox_amazonapps_button() { return…” and ending with ” tinymce.PluginManager.add(‘wpAppboxCombined’, tinymce.plugins.wpAppbox_CombinedButton); })();”.

    Hope it helps.

    Plugin Author Marcelismus

    (@marcelismus)

    Yep, some WordPress-installations seems didn’t support the .js.php, which is necessary for the combined button. Just don’t use the Appbox-Button… I’m working on it, but no solution yet. :-/

    Thread Starter jh0ker

    (@jh0ker)

    Alright, thanks for the answer and for your work with this plugin 🙂

    Marcelismus, jh0ker,

    I’ve update files combined.btn.js.php and single.btn.js.php with:

    header("HTTP/1.1 200 OK");
    header("Status: 200") ;

    at the beginning and now it works correctly.

    Also, you should set this header:
    header('Content-type: text/javascript');
    Because at the moment you will get text/html, which is obviously wrong.

    Can you push an update with the three new headers please?

    Plugin Author Marcelismus

    (@marcelismus)

    Coming. // Live.

    Great, thanks a lot! 🙂

    Wait, this is NOT resolved.

    You need to add the headers AFTER the wordpress-include, not at the very top before the wordpress-includes. Sorry if I ask and I don’t want to sound rude/annoyed, but did you even test this?

    Do this:
    curl -I http://<yourblog>/wp-content/plugins/wp-appbox/buttons/combined.btn.js.php
    or
    wget --spider -H http://<yourblog>/wp-content/plugins/wp-appbox/buttons/combined.btn.js.php
    to test the request. Watch for the httpstatuscode and Content-Type.

    Please be so kind to push another fix, with the new headers-block moved past the wordpress-includes.

    Thanks a lot! 🙂

    Plugin Author Marcelismus

    (@marcelismus)

    I couldn’t test it, because nobody in of my distant contacts has the fault or could reproduce the fault. Just built in, which has helped, according to xeskor. 😉

    That’s odd. My host’s name is uberspace – they usually do have a very good configuration. On the other hand, this doesn’t happen with my installation, just with my colleague. On the same host. So it’s probably a plugin, which breaks appbox.

    I used the plugin editor to move the three new headers past the include lines, now it works.

    If you need further testing, please don’t hesitate to contact me.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP-Appbox breaks TiniMCE’ is closed to new replies.