• A WordPress blogger installed version 1.0.6 of wpmathpub plugin (current version at time of this post) but discovered that math text enclosed between the publish math tag, [pmath…[/pmath], failed to produce math images as a result of conflict with another installed plugin: voicethread

    The problem was resolved following these steps:

    1. verify that wpmathpub plugin installation was done correctly: phpmathpublisher library, img, and font subdirectories exist. img subdirectory has read, write, and execute privilege.

    2. verify that plugin works correctly for comments.

    3. verify that wpmathpub plugin works correctly within a blog post with all other plugins removed – a debug step only. In this blogger’s case, a plugin called voicethread was the conflicting plugin. To be clear, neither voicethread nor wpmathpub plugins are at fault, the add_filter function within WordPress code seems to be the heart of the problem.

    3. If plugin conflict is indeed the cause of the problem based on steps 2 and 3 above, you can fix the problem by changing the priority of the content filter hook within wpmathpub.php as follows (see last line of code)…

    Original:
    add_filter(‘the_content’, ‘to_phpmath’);

    Fixed:
    add_filter(‘the_content’, ‘to_phpmath’, 5); // change priority of content filter to 5

    Note: do not change the priority of the comment filter, just the content filter as described above. That’s it, when you reload the page, your math equations should be correctly displayed as PNG graphics.

    4. re-enable all your plugins. Now wpmathpub and the conflicting plugin (voicethread in this case) should work correctly.

    A new version of wpmathpub plugin will address this issue with a new admin menu in the coming days.

    Best regards,

    Ron

  • The topic ‘[Plugin: wpmathpub] The [pmath] tag does not work’ is closed to new replies.