• Resolved Michael

    (@taloscent)


    Hello,
    Wordpress v3.8.2
    Tablepress v1.3
    TablePress Extension: Parse Shortcodes before Formulas v1.0

    I have used =[shortcode] in previous tables and those still work. Creating new tables with this same syntax now errors out with !ERROR! illegal character ‘[‘.

    I have disabled all other plugins and it still is showing same error. It also does not appear to be a theme issue.

    Any ideas? Thanks

    https://wordpress.org/plugins/tablepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Michael

    (@taloscent)

    Followup:
    When previewing an older working table it also errors with !ERROR! illegal character ‘[‘ but the actual page display works.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Is the Extension still activated? And did you add the required parameter to the Shortcodes?

    Regards,
    Tobias

    Thread Starter Michael

    (@taloscent)

    Yes to both. Would you like admin login?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that would probably be good. Please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”). That way, I can investigate this directly.

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the account! I now had the time to take a look at this.
    From what I can see, the Extension is installed and activated, but the necessary parameter was not added to the Shortcode.
    I fixed this now by globally enabling that parameter, so that Shortcodes in table cells will always be evaluated before formulas.
    The table from the link you sent me does work again now 🙂

    Regards,
    Tobias

    Thread Starter Michael

    (@taloscent)

    I am confused. Are you saying that the shortcode of [tuitionrate] was not correct? What do you mean by …”but the necessary parameter was not added to the Shortcode.”

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, that one is fine. The [table] Shortcode needed the parameter shortcodes_before_formulas=true to actually enable the Extension’s functionality on that table. Instead of adding that to the table, I simply modified the Extension so that this parameter is now implied automatically on your site.

    Regards,
    Tobias

    Thread Starter Michael

    (@taloscent)

    I see. So to understand then the problem is that the plugin should have added that when it was activated and for some reason did not?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    not directly. The Extension just registers that parameter (with a default value of “false”) and makes it available in the Shortcode. One can then set the parameter to “true” in the Shortcode for those tables where Shortcodes shall be evaluated before formulas. (This is not the default, as there can be a small performance penalty in tables where there are no formulas for which this might be necessary.)
    With the small code change I now simply set the default value to “true”, so that the parameter does not have to be added manually.
    I guess this I should finally write the documentation for this on the Extension’s web page…

    Regards,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Shortcode before formula stopped (sort of)’ is closed to new replies.