• Resolved derrida

    (@derrida)


    hi
    i want to test surecart. so i have my own custom theme, and after i install and activate i get these error messages:

    Warning: array_merge(): Expected parameter 1 to be an array, bool given in C:\Users\me\Local Sites\surecart\app\public\wp-content\plugins\surecart\app\src\WordPress\ThemeServiceProvider.php on line 95

    Warning: Cannot modify header information – headers already sent by (output started at C:\Users\me\Local Sites\surecart\app\public\wp-content\plugins\surecart\app\src\WordPress\ThemeServiceProvider.php:95) in C:\Users\me\Local Sites\surecart\app\public\wp-admin\includes\misc.php on line 1416

    Warning: Cannot modify header information – headers already sent by (output started at C:\Users\me\Local Sites\surecart\app\public\wp-content\plugins\surecart\app\src\WordPress\ThemeServiceProvider.php:95) in C:\Users\me\Local Sites\surecart\app\public\wp-includes\functions.php on line 6865

    Warning: Cannot modify header information – headers already sent by (output started at C:\Users\me\Local Sites\surecart\app\public\wp-content\plugins\surecart\app\src\WordPress\ThemeServiceProvider.php:95) in C:\Users\me\Local Sites\surecart\app\public\wp-admin\admin-header.php on line 9

    not sure if it is important but my custom theme is FSE. i do not get similar errors from other plugins.
    when i switch theme to twenty twenty three (it is 6.1), the errors go away.
    any idea what is wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter derrida

    (@derrida)

    so i have just added a check for the if statment and the errors are gone. but that should be checked by default.
    if ( !isset($old_color_palette) && ! empty( $old_color_palette ) ) {
    $new_color_palette = array_merge( $old_color_palette, $new_color_palette );
    }

    also i hope this small change will not create issues down the road.

    • This reply was modified 2 years ago by derrida.
    Thread Starter derrida

    (@derrida)

    also, now i want to setup my store….do i need to register with surecart even if all i want is to test it?

    Plugin Author Andre Gagnon

    (@2winfactor)

    Hi There!

    Thanks for reaching out about this! It looks like this is a warning because your site is in DEBUG mode. We’ll get this developer warning fixed – I appreciate you bringing it to our attention.

    And yes, an account is required to use SureCart (though it’s free!)

    SureCart is different from most eCommerce plugins in that we offload almost all critical eCommerce functionality off your site to our platform. This means you can can provide a much faster, reliable and secure ecommerce experience than what is currently available on WordPress.

    It’s definitely more for people who want something they don’t have to worry about, that’s inherently secure and just want something that works well, without any configuration.

    Any questions, let me know.

    Thread Starter derrida

    (@derrida)

    hi thanks for the answer. i do have another question: i understand it works with stripe, which sadly doesn’t work in israel. do you have an alternative that does work in countries like israel?

    if not, but it will, it will still be interesting to play and test surecart. so i will have to open an account, but could i just test it from localhost?

    best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘errors after installation’ is closed to new replies.