The Site Health tool displays the following error when Before & After is activated. I isolated the issue to this plugin in particular.
The REST API encountered an error
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
How can I fix this issue?
]]>The Site Health tool displays the following error when Before & After is activated. I isolated the issue to this plugin in particular.
An active PHP session was detected
A PHP session was created by a session_start()
function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close()
before making any HTTP requests.
How can I fix this issue?
]]>Using PHP 7.4+ I see the following warning when debug output is enabled. Please address.
<b>Warning</b>: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>wp-content/plugins/before-and-after/include/ba.settings.page.class.php</b> on line <b>326</b>
The issue is related to use the use continue
within a switch
nested within a for
loop.
When viewing the rich text editor anywhere in the admin when this plugin is active and debug output is enabled, the following deprecation warning is displayed:
Deprecated: media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead. in /var/www/sites/ip.com/wp-includes/functions.php on line 5698
Is it possible to address this in a future release?
]]>Hello.
I am having issues with a goal and hope somebody can help me.
My goal is set up so after an individual fills out a brief contact form they are redirected to a special page.
For some mobile users, the goal works as its supposed to. For other users, the contact form never appears. They are essentially bypassing it and going directly to the special page.
I cannot figure out why the goal (the brief contact form) is working just fine for some mobile users and why others can completely bypass the goal? From the tests I have done, it seems like iPhone 12 users are the ones that have been able to bypass the goal.
There are no issues with the goal working properly on a regular computer. This is a mobile issue only.
If it helps to know, I am using Contact Form 7 as the goal’s contact form.
]]>When this plugin is activated, two Critical Issues are generated in WP Site Health:
1) An active PHP session was detected
A PHP session was created by a session_start() function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close() before making any HTTP requests.
2) The REST API encountered an error
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
Error: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (http_request_failed)
Please patch for next update.
Thank you.
]]>Got a fatal error after the last update. Are you able to fix this please?
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /public_html/wp-content/plugins/before-and-after/include/ba.settings.page.class.php on line 326
Warning: include(include/ba.ajax.class.php): failed to open stream: No such file or directory in /public_html/wp-content/plugins/before-and-after/before-and-after.php on line 31
Warning: include(): Failed opening 'include/ba.ajax.class.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /public_html/wp-content/plugins/before-and-after/before-and-after.php on line 31
Warning: session_start(): Cannot start session when headers already sent in /public_html/wp-content/plugins/before-and-after/before-and-after.php on line 68
Fatal error: Uncaught Error: Class 'Before_And_After_AJAX' not found in /public_html/wp-content/plugins/before-and-after/before-and-after.php:79 Stack trace: #0 /public_html/wp-content/plugins/before-and-after/before-and-after.php(590): BeforeAndAfterPlugin->__construct() #1 /public_html/wp-settings.php(391): include_once('/p...') #2 /public_html/wp-config.php(98): require_once('/p...') #3 /public_html/wp-load.php(37): require_once('/p...') #4 /public_html/wp-blog-header.php(13): require_once('/p...') #5 /public_html/index.php(17): require('/p...') #6 {main} thrown in /public_html/wp-content/plugins/before-and-after/before-and-after.php on line 79
]]>
We’ve been using this plugin without problems for a long time, but right not it’s not working at all. I’ve tried to deactivate plugins to see if one is interfearing without success.
]]>We are looking to protect back issues of a magazine. All we need to do is collect a name and email address before allowing the user to view the back issues.
We then want to drop a 12 month or indefinite length cookie so they don’t have to enter their details again next time they want to access the back issues.
Thanks for your help, Alan
Hi,
I am seeing this warning in error_log.php. This is coming up like every second. Can this be removed? Thanks.
[30-Jul-2020 07:23:06 UTC] PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /xxx/wp-content/plugins/before-and-after/include/ba.settings.page.class.php on line 326
]]>Form submissions are coming through in email with visible html instead an html formatted message. Seems to be in any email client.
]]>It seems the default hyperlink for a file download is “Please click here to complete your download”
Is there a way to edit this text or use a image instead?
]]>Hello.
When I install “before and after” plugin there are a lot of errors and I cannot edit nothing and not use. What Can I do?
When I try to open it first time in any browser then it is showing form. But it does not show when we trying to open that page second time and already filled that form once. even I tried in private/incognito window but it seems not working.
Is it possible to fix this?
Thanks
]]>GET https://[mypage].com/wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/assets/js/gp_custom_forms?ver=5.2.2 404 (Not Found)
]]>I love this idea and it is just what I am looking for. However, I have tried with both Contact7 and GravityForms and can’t get it to work. I set the BEFORE to show the form. And the AFTER to redirect to a URL. Essentially, I want them to give their email and then get redirected to a page that has resources. However, I put in the code [goal id” “] on the page and it is not showing the form at all. When I go to the page, it is automatically redirecting them without showing the form.
]]>After updating PHP to 7.3, I keep getting this error in my logs with any site load:
PHP message: PHP Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2″? in /wp-content/plugins/before-and-after/include/ba.settings.page.class.php on line 326”
]]>This problem is intermittent so it doesn’t happen for all users but is happening quite frequently.
When the form is completed, it’s reloading the form without showing any errors or that the download(goal) is available.
We’re also using Flamingo to capture the data and can confirm that the form data is being sent via email to the site administrator, however to the end user the form appears broken as they aren’t able to get past the form.
We’ve also tried temporarily disabling reCapthca to check that this wasn’t causing any issues but are experiencing the same thing with this disabled.
Any help would be appreciated.
]]>The plugin is not working! it shows only a 404 page.
And if I use a short code. it shows only the short code.
I treyed several times with preview and diffrent posts and forms.
looks like it is not working with WP 5.1
I am currently testing this plugin and so far i really like it.
I do have an issue regarding the downloaded file.
I setup up everything correctly in the settings but when I click on the download link (after filling out the form) it downloads a file without the extension.
The file works after putting in the correct extension but I wonder if it is possible to skip that step for users.
I am using 5.1.1 WordPress with the latest release of the plugin
]]>Hey, I just download the plugin Before And After Lead Capture Plugin For WordPress.
While operating thisan error come
the error is file format is not downloading in pdf form
]]>Hi guys
I’m using the Redirect to a url option, but I want it to open in a new window. How to ?
]]>This plugin has been terrific and reliable for me until recently. Now, it’s not redirecting past the “before” page. I’ve tried everything and can’t get it to work any longer. So disappointing.
]]>Chrome browser console is reporting the following missing asset error on admin pages of a WP 4.9.9 multisite network.
Failed to load resource: the server responded with a status of 404 ()
gp_custom_forms:1
I checked by FTP and found that there is no gp_custom_forms in the target location. It does not exist.
I deleted and reinstalled the plugin with same results.
Another console error
GET https://mysite.com/wp-content/plugins/before-and-after/include/lib/GP_Custom_Forms/assets/js/gp_custom_forms?ver=e2bf537b74b1f877149b90f0fbada323 net::ERR_ABORTED 404
addLoadEvent = function(func){if(typeof jQuery!=”undefined”)jQuery(document).ready(func);else if(typeof wpOnload!=’function’){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = ‘https://mysite.com/wp-admin/admin-ajax.php’,
pagenow = ‘edit-b_a_goal’,
typenow = ‘b_a_goal’,
adminpage = ‘edit-php’,
thousandsSeparator = ‘,’,
decimalPoint = ‘.’,
isRtl = 0;
Can these be resolved?
]]>HELP!!!
I updated a plug-in, may have been specifically before and after and no getting this error and my www is returning an error 500.
PHP Fatal error:
Can’t use function return value in write context in /var/www/html/wp-content/plugins/before-and-after/include/ba.goal_model.class.php on line 289,
referer: https://www.google.com/
]]>Getting many errors every day in the PHP error log. I X’d out paths and such. Saw this with both PHP 5.6 and 7.2.
[12-Feb-2019 08:06:58 UTC] PHP Warning: session_start(): open(XXXXXX/sess_XXXX, O_RDWR) failed: Permission denied (13) in XXXX/wp-content/plugins/before-and-after/before-and-after.php on line 61
[12-Feb-2019 08:06:58 UTC] PHP Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php72) in /XXXX/wp-content/plugins/before-and-after/before-and-after.php on line 61
]]>Hello,
It seems that the plugin is no longer loading the form but instead just shows the [“goal id=”###”] shortcode.
We are using the latest version of the plugin on WordPress 4.9.8
Any advice would be appreciated!
Thank you.
]]>Hi there,
My content is always visible, even before the form has been completed.
I have created a goal, added a Gravity form to display before, grabbed the [goal id=”5085″] shortcode, pasted it at the top of my post content, made sure the goal is selected and protect tickbox checked at the bottom of the edit post page, but when I view the post (whether logged in as admin or not), it displays the form, directly followed by all the content the form is supposed to gate.
Am I missing something?
]]>Hi
I have tried many things, but the URL of my protected download link remains visible and accessible to everyone. Is there a step I’m missing?
When I go through the https://myurl.com/b_a_goals the goal functions like it should, but then nothing stops people from forwarding the real download link to others.
]]>Issue:
Having issues with Before & After Goals. After form submission, cannot navigate away from thank you page.
Goals are set to redirect to a thank you page after a form is filled out. Currently using Contact Form 7 and have the setting checked for “Reload after submit”.
What could possibly be causing this feature to work incorrectly. I just updated to the latest plugin version. I also have to manually clear my goals in the admin interface to navigate to other pages. For any visitors, they’d be faced with the 30 days expiration the cookie sets or manually clear their cookies (not everyone on the web is tech savvy, allow for the cookie expiration to be adjusted)
To Reproduce:
Click the “Download Case Study” button, fill out the form (can be random valid data) then click submit. Form redirects to Thank You page. Attempt to redirect to any other page.
Problems:
Contact form 7 is redirecting it as if every page should redirect to the thank you page since the goal is complete.