• Resolved David Bee

    (@davidbawiec)


    Latest version seems to have an issue where attempts to save and retrieve the saved value of the One-Time Payment Confirmation Message fail.

    If you go to WP Simple Pay Lite –> Settings –> Payment Confirmation. Every time I try to update the value of the field, I get the following error:

    Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/class-wp-block-parser.php on line 417
    
    Warning: strlen() expects parameter 1 to be string, array given in /wp-includes/class-wp-block-parser.php on line 489
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/class-wp-block-parser.php:417) in /wp-includes/pluggable.php on line 1265
    
    Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/class-wp-block-parser.php:417) in /wp-includes/pluggable.php on line 1268

    ### WordPress Installation ###

    SSL/HTTPS Enabled: Yes
    Version: 5.3.2
    Locale: en_US
    Multisite: No
    Permalinks: /%postname%/
    WP Memory Limit: 1 GB
    WP Debug Mode: No
    Script Debug: No

    ### WP Simple Pay Lite Settings ###

    WP Simple Pay Lite Lite Version: 2.3.2
    Stripe TLS: TLS 1.2 is supported. No action required.
    Simple Pay Test or Live Mode: Test Mode

    ### Active Theme ###

    Theme: Twenty Fifteen – 2.5
    Child Theme: No
    Parent Theme: –

    ### Active Plugins ###

    Email Testing Notifications: 1.4.1
    WP Simple Pay Lite: 2.3.2
    WP Reroute Email: 1.3.5

    ### Server Environment ###

    Web Server: Apache
    PHP Version: 7.1.33
    MySQL Version: 5.7.23-23
    Server Timezone: UTC
    Display Errors: Yes
    Server PHP Memory Limit: 1024M
    Upload Max Filesize: 64M
    Post Max Size: 64M
    Max Execution Time: 90
    Max Input Vars: 8000
    cURL Enabled: Yes
    cURL Version: 7.67.0
    OpenSSL/1.0.2t
    mbstring (Multibyte String) Enabled: Yes
    fsockopen: Yes
    SOAP: Yes
    SUHOSIN: No
    WP Remote POST: Yes
    WP Remote GET: Yes

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Adam Lea

    (@adamjlea)

    Hello @davidbawiec

    This is due to a change in WordPress core.

    Unfortunately, this causes settings that use a wp_editor() textarea (payment confirmation page body) to save an empty string when saving.

    We are working to get a fix out as quickly as possible.

    For the time being you can either edit the confirmation page’s content directly (you lose the ability to use the confirmation template tags) or temporarily add the following to their theme’s functions.php file:

    remove_filter( ‘pre_kses’, ‘wp_pre_kses_block_attributes’, 10, 3 );

    Then update the payment confirmation page, save it, and then remove the line.

    Thanks for your patience,

    • This reply was modified 4 years, 11 months ago by Adam Lea.

    I have edited the functions.php for all my themes and still having the payment confirmation page give a message of:

    Not Acceptable!
    An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

    Any other suggestions?

    -Jamie

    Plugin Author Spencer Finnell

    (@spencerfinnell)

    Hello @iminbali

    That issue is likely unrelated to saving the payment confirmation message setting mentioned in the original topic.

    Mod_Security is an open source firewall solution used by many hosting providers. It is likely blocking the incoming redirect from Stripe.com once the payment is complete. If you contact your web host they can remove the rule that is causing the issue you are seeing.

    If you or your webhost needs more information please create a new post: https://www.ads-software.com/support/plugin/stripe/#new-post

    Thread Starter David Bee

    (@davidbawiec)

    @iminbali I actually also had exactly the same issue on Bluehost. I contacted them and they disabled that particular firewall rule on our account.

    @adamjlea Thanks for the super quick response! remove_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 ); worked like a charm! Thanks!

    Please help…

    Anytime I want to preview a page or edit a page I get the following:

    Warning: preg_match() expects parameter 2 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 417

    Warning: strlen() expects parameter 1 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 489

    Warning: preg_match() expects parameter 2 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 417

    Warning: strlen() expects parameter 1 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 489

    Warning: Cannot modify header information – headers already sent by (output started at /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php:417) in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/pluggable.php on line 1265

    Warning: Cannot modify header information – headers already sent by (output started at /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php:417) in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/pluggable.php on line 1268

    Can anyone help me with these errors:

    Warning: preg_match() expects parameter 2 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 417

    Warning: strlen() expects parameter 1 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 489

    Warning: preg_match() expects parameter 2 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 417

    Warning: strlen() expects parameter 1 to be string, array given in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php on line 489

    Warning: Cannot modify header information – headers already sent by (output started at /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php:417) in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/pluggable.php on line 1265

    Warning: Cannot modify header information – headers already sent by (output started at /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/class-wp-block-parser.php:417) in /home/vitalvalt/public_html/combatweaponstorage.com/wp-includes/pluggable.php on line 1268

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error saving options to DB’ is closed to new replies.