WordPress.org

Support

Support » Plugins and Hacks » [Resolved] All line breaks converted to "n" string

[Resolved] All line breaks converted to "n" string

  • Hello,

    I’m using WP 3.5 with multisite option enabled.
    I have a big problem after migration from WP-Table Reloaded.
    All line breaks in cells is converted to “n” character.
    I’ve modified the “n” character to line break again and save the table,
    but line break was converted to “n” character.
    Oddly enough, it occurs in specific site, not in the other site under same multisite installation.

    I hope to fix it, or I want to “downgrade” to WP-Table Reloaded,
    because it has no problem like this.

    Thanks, Isao

    http://wordpress.org/extend/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    @tobiasbg

    Hi Isao,

    thanks for your post, and sorry for the trouble.

    The likely reason for this is another plugin that somehow interferes with the saving process of TablePress, by stripping slashes from the code. This apparently breaks all line breaks (which internally are codes as “\n”).

    My suggestion here is to temporarily deactivate all other plugins and switch to the WordPress Default theme. Then, check if this problem persists, or if everything works as expected. Then, you can activate the other plugins again, one by one, to find the plugin that is causing this.
    If you can’t find anything with this method, I’d be more than happy to take a direct look at your admin area. In that case, please send me an email (the address is in the main plugin file “tablepress.php”).

    Switching back to WP-Table Reloaded is not an option, as WP-Table Reloaded is outdated will no longer be maintained or developed.

    Regards,
    Tobias

    Hello,

    Thanks for your quick and kind reply!
    I could specified the plugin which causes the trouble (“Welcart” e-commerce plugin for Japanese market).
    Unfortunately, I couldn’t figure out the reason after code check of Welcart…

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    great to hear that you found the plugin that causes this!
    After checking the code, I can confirm that “Welcart” causes this.
    The reason is line 2186 in the function main() in the file usceshop.class.php.

    There, the plugin performs a stripslashes() on ALL data that is transmitted! This is a severe problem, and the plugin shouldn’t be doing that! It should only do that with data that is transmitted to its own functions.
    (In fact, this could actually break post content. For example, try writing a post or page with content like “test \n dummy foobar”. After saving that while Welcart is activated, the backslash will be gone.)

    I recommend that you contact the Welcart plugin author about this, as this severe issue must be fixed in the plugin. There’s nothing I can do about this in TablePress 🙁

    Regards,
    Tobias

    Dear Tobias,

    First, I’m very pleased for your kind support.
    And, frankly speaking, I’m surprised for your kindness.
    Thank you so much.

    I will contact Welcart’s author about this problem,
    and report you later.

    Thanks again,
    Isao Yoshikoshi

    Plugin Author TobiasBg

    @tobiasbg

    Hi,

    sure, no problem! You are very welcome!
    I hope that the Welcart author can fix this in his plugin.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hello,

    Welcart’s author have updated the plugin and fixed the problem.
    I confirmed that conflict is solved.

    Thanks again for your kind support!

    Isao

    Plugin Author TobiasBg

    @tobiasbg

    Hi Isao,

    awesome! That’s great news! Good to hear that the Welcart developer could fix this 🙂

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] All line breaks converted to "n" string’ is closed to new replies.