You are an absolute hero my friend.
The developers set up everything without even giving the users a guide on how to set it up, I am so glad that i found this.
Let me know your PP and i will send you some money
Thanks for your offer, but I don’t need any money. If you really want to pay tribute, you are free to donate some BTC to this address: 0x160443c73f5fb9cdeace14ec5cb431fd51f68ed5 on BNB Smart Chain (BEP20). All donations will be used to support Ukrainian refugees.
Hey there! I have troubles when I insert the Sumup keys etc.
When I click on the save button, I get : “Warning: Cannot modify header information – headers already sent by…” errors. Any idea how to fix this? Thank you for your precious help…
Hi! The warning message “Cannot modify header information …” is very likely caused by another plugin and/or your web server’s configuration. As a first approach I would try to disable all other plugins, and then try to set up the SumUp plugin. Once set up, re-enable all previously disabled plugins. If that doesn’t work, you may try to switch to the default WordPress theme in case you use a custom theme. If nothing helps, you need to modify your web server’s configuration (likely its php.ini file). Your web hoster should allow you to do this in one or another way. The setting in the php.ini you want to change is called “output_buffering”. Its default value is 4096, and you want to set it to “On”. That should prevent the warning message in nearly all cases, and allow you to save the settings in the SumUp plugin.
Thank you so much for your help… that is amazing! So, I have tried to unable all plugins (except Woocommerce and Sumup of course), and change theme, but I still have the problem. I haven’t mentioned that I am using Elementor and Elementor pro (which I both disabled for test purposes), and that everything has been built through that.
I opened the three files the errors notify and the concerned lines. Here they are :
In the wp-admin/includes/misc.php file :
header( sprintf( 'Referrer-Policy: %s', $policy ) );
In the wp-includes/functions.php file :
header( 'X-Frame-Options: SAMEORIGIN' );
In the wp-admin//admin-header.php file :
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
I have never changed the php.ini file, but I can call the host for guidance, if this is the only way through.
Do you have any idea of what could be happening with the lines cited above?
Thank you so much for your help.
PS / When I save, it also says that my keys are valid, and in the checkout, I do see the card option, bu when I click on “Order”, litterally nothing happens…
The quoted header() instructions basically send information to the browser on how to process. For example the “X-Frame-Options” parameter set to “SAMEORIGIN” tells the browser that the website sending this header is not allowed to be run embedded in an iframe of another website.
So, basically it is safe to temporary comment these lines out by putting double-slashes “//” at their beginning. However, that does not solve the issue on the long run, and all three files are core files of WordPress and should not be modified. At least following the next update they will get overwritten anyway.
I really suggest you to contact your web hoster and tell him to modify the php.ini file for you as stated in my previous post. Again, this is just a suggestion. I cannot know if this really fixes the issue, since I basically don’t know anything about the setup of the web server etc.
Regarding the missing card option I have absolutely no clue what’s wrong. Maybe it is some payment setting in WooCommerce itself or in the SumUp plugin. I can’t remember how I configured it (it was long before I wrote this setup guide).
Thank you! Simple but crucial question : are these lines errors stopping the plugin from working properly, or can they just be ignored?
Well, yes and no. In the default configuration of PHP (that’s the language WordPress’ code is written in) it is not allowed to send multiple headers after the first header response has been sent. So, if a plugin, theme or whatever sends a header and then another plugin or theme or whatever also tries to send headers this warning occurs. In PHP a warning does not abort the execution of a script. That being said, the warning should have no effect on the plugin’s functionality. But there might be a custom error-handler which overrides this behavior. As I said before, it is safe to temporarily comment those lines out, but I think the issue should be tracked down and fixed properly in order to maintain a stable and reliable WordPress instance. Also, you should review your server’s PHP configuration. Maybe there is something messed up or configured in a non-optimal way.
I have been staring at the sumup developers page for an hour now trying to figure out this setup, came across this post and had it done within minutes!!!!
Thank you so much.
-
This reply was modified 6 days, 12 hours ago by
gack304.