6:45 am
July 16, 2020
Hi, I have used cyberseo pro plugin for my website with memberpress and its create the curly braces issue. cyberseo plugin remove curlybraces from memberpress output data and that's why memberpress checkout is not correctly work. i send you atteched video how the probleme create.
once cyberseo is deactivate the memberpress checkout work fine. and after activate cyberseo pro plugin i got below error on memberpress checkout page, see
for error see the above screenshot and for more details see the video
Login to see this link
i also contact memberpress developer and he told me this
' The wp_json_encode function is a built-in function provided by WordPress, so this isn't something loaded in by the MemberPress or CyberSEO Pro plugin. I tried looking through the code of the CyberSEO Pro plugin to figure out why the wp_json_encode function isn't actually converting our array of options into a JavaScript object on the membership's registration page, but I haven't had much luck diagnosing the cause unfortunately.
I'd have them reach out to the developers of the CyberSEO Pro plugin (CyberSEO.net) and see why the wp_json_encode() function wouldn't be working correctly when their plugin is active. They have a better understanding of how their code works, so they should be able to let us know why it wouldn't be working. If the CyberSEO team needs to replicate the issue on their end, then this could be done by opening up the plugin file editor under Wp-Admin -> Plugins -> Plugin File Editor and selecting the "MemberPress Plus 10 (Legacy)" plugin.
From here, they'll want to navigate to the app/views/checkout/MeprStripeGateway/ directory and edit the payment_form.php file. Underneath this code on line 20:
<div class="mepr-stripe-card-element" data-stripe-public-key="<?php echo esc_attr($payment_method->settings->public_key); ?>" data-payment-method-id="<?php echo esc_attr($payment_method->settings->id); ?>" data-locale-code="<?php echo esc_attr(MeprStripeGateway::get_locale_code()); ?>" data-elements-options="<?php echo isset($elements_options) ? esc_attr(wp_json_encode($elements_options)) : ''; ?>" data-user-email="<?php echo isset($user) && $user instanceof MeprUser ? esc_attr($user->user_email) : ''; ?>"></div>
They'll want to make a call to wp_json_encode() using the array of options we store in the $element_options variable:
<?php echo wp_json_encode($elements_options); ?>
With that code added, they can access one of the membership's registration pages (Login to see this link
Once the CyberSEO Pro plugin is deactivated, then the array of options are encoded correctly as a JavaScript object which removes that error from Stripe.
Thanks,
If you want the wordpress access then i will provide you. please check this issue and let me know how can we solve this conflict.
i want both plugin together. cyberseo and memberpress.
Thanks
If you have enabled the "Enable debug mode" setting in CyberSEO Pro, please be aware that this will enable WP_DEBUG, which is very useful for debugging PHP issues during development. However, running WP_DEBUG on a live site can cause various problems. One such problem could be a non-critical error in one of the plugins used on your site. When WP_DEBUG is enabled, these errors generate warnings that are displayed directly in the HTML output of the page. This can affect the rendering of the page and cause JavaScript functionality to break. Therefore, be sure to disable "Enable debug mode" when your site is live to prevent such interruptions.
11:32 am
July 16, 2020
Hi Thanks for your reply, I have deactivate all the plugins and only active cyberseo pro and memberpress it get same error. so i confirm that there is something conflict between cyberseo and memberpress plugin. please forward this issue to plugin developer to see also please send him to video that i share with you.
let me know anything else you needed from me.
also let me send you what memberpress developer send me
Hi,
This is Tyler from the MemberPress team. I hope you're doing well today. I've been assisting Predrag on this ticket, so I figured I'd respond to you directly to save a bit of time (hopefully that's alright). The issue doesn't appear to be JavaScript-related when the CyberSEO Pro plugin is activated. It looks like the plugin is potentially modifying how the wp_json_encode() PHP function is working which is causing that error from Stripe. I'd recommend reaching out to the CyberSEO Pro team and seeing if they're doing anything on their end that'd result in the encoding not actually working when accessing something like your membership's registration page: Login to see this link
I hope this helps, but if you have any questions or concerns please feel free to ask.
Kind regards,
also i request you to see into the code i am 100%sure that there is conflict between cyberseopro and memberpress. so please do not directly raise your hand without seeing issue.
becuase of this i got big loss, pleae try to understand and fix this asap, if you want to wp-admin access for further investigate then pleae mail me on i will send you there. this is public forum so i cant send you here.
thanks
11:46 am
July 16, 2020
Ah, I see the problem now. It was not in the wp_json_encode() function. It is caused by this option: Login to see this link
The option was enabled in your control panel for some reason. As it is written in the manual, it applies Login to see this link and of course it removes the curly braces.
I disabled it in your CyberSEO Pro General Settings panel, so everything works correctly now.
Most Users Ever Online: 541
Currently Online: rumitus
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2816
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1625
Posts: 8271
Newest Members:
jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmorocco, dmitrypehovskiworkAdministrators: CyberSEO: 3909