May 19, 2019 at 4:56 am #18244
I’m using the miscellaneous shortcodes plugin to enable a plan level change.
When I put a redirect on the level update shortcode, I get the errors below. Here’s my shortcode (using google in place of my dev url).
[swpm_update_level_to level=”11″ button_text=”Continue as Free Member” redirect_to”https://google.com”]
Warning: Cannot modify header information - headers already sent by (output started at /homepages/16/d155856481/htdocs/devjrwxman/wp-content/themes/Extra/page-template-fullwidth.php:6) in /homepages/16/d155856481/htdocs/devjrwxman/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information - headers already sent by (output started at /homepages/16/d155856481/htdocs/devjrwxman/wp-content/themes/Extra/page-template-fullwidth.php:6) in /homepages/16/d155856481/htdocs/devjrwxman/wp-includes/pluggable.php on line 1254
When I examined page-template-fullwidth.php file, line 6 is a blank line. I tried removing the line, but then it broke the page header call that comes on line 7.
The other redirect options in Simple Membership work as expected, so I’m leaning towards this plugin add on as the culprit, but I don’t know how to troubleshoot this further.May 19, 2019 at 5:10 am #18245
i know there’s a typo in the above shortcode in this post, but that was just an accident here.
The right shortcode, which still gives the error is:
[swpm_update_level_to level=”11″ button_text=”Continue as Free Member” redirect_to=”https://google.com”]
The theme developer told me “it looks like coming from a plugin that has a header code line that already exists.”
Thanks!May 19, 2019 at 6:01 am #18247
For what it’s worth, i deactivated all of my plugins and switched to the WP 2019 theme and the problem persists. I’ve got to think it’s a problem with this plugin in particular.May 19, 2019 at 9:40 am #18248
Hi, looking at your shortcode I see some errors with the double quotes. Please try the following shortcode. Let me know if this works for you.
[swpm_update_level_to level="11" button_text="Continue as Free Member" redirect_to="https://google.com"]
Kind regardsMay 19, 2019 at 5:55 pm #18249
The error in the shortcode was just a typo in this forum post. I double-checked the code and it is right in the site. For the heck of it, I tried without quotes around the URL in the shortcode and it still didn’t work.
I feel like there’s something about how this add-on plugin works with the main plugin that is somehow triggering a second call for the WordPress header.May 19, 2019 at 9:11 pm #18250
Hi, thank you for reporting back. I have submitted a message to the developers to investigate further your issue.
Kind regardsMay 20, 2019 at 7:49 am #18252
I have applied a fix for this in that addon. Please download an updated copy of the addon and use that:
https://simple-membership-plugin.com/simple-membership-miscellaneous-shortcodes-addon/May 20, 2019 at 3:33 pm #18256
It’s still broken. If you’d like me to send you credentials to test with, I’m happy to do so. This is the development version of the site.
Thanks!May 20, 2019 at 7:33 pm #18258
I just checked the file I downloaded and the main.php file still says version 1.4. Maybe I didn’t get the new version?
You must be logged in to reply to this topic.