• Resolved pdutie94

    (@pdutie94)


    I’m using:
    Advanced Custom Fields PRO – Version 6.0.4
    Advanced Custom Fields: Extended – Version 0.8.8.10

    After submitting the form, it returns a blank page. I was able to debug and found out after the function acf_save_post(false); in the forms-front.php file the code no longer runs. As shown in the image below.
    Hope to get a response soon. My site is live.
    Thank!

    https://prnt.sc/FebeV__Wq0O2

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Hmmm this is strange. A blank page may mean an error behind the scene. I can confirm that ACFE form works correctly with the versions you use.

    I would recommend to enable the debug log and check if you have any error. See our guide on debugging WP & ACF.

    Let me know if you found something.

    Regards.

    Thread Starter pdutie94

    (@pdutie94)

    That is what i got after submitting the form.

    [10-Nov-2022 21:19:21 UTC] EXCEPTION: preg_match(): Argument #2 ($subject) must be of type string, array given in /var/www/vhosts/xxx/httpdocs/wp-includes/formatting.php on line 1596
    [10-Nov-2022 21:19:24 UTC] E_WARNING: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/var/www/vhosts/xxx/:/tmp/) in /var/www/vhosts/xxx/httpdocs/wp-includes/class-phpass.php on line 73
    [10-Nov-2022 21:19:36 UTC] E_WARNING: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/var/www/vhosts/xxx/:/tmp/) in /var/www/vhosts/xxx/httpdocs/wp-includes/class-phpass.php on line 73
    [10-Nov-2022 21:19:38 UTC] E_WARNING: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/var/www/vhosts/xxx/:/tmp/) in /var/www/vhosts/xxx/httpdocs/wp-includes/class-phpass.php on line 73

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the details.

    These warnings don’t seem related to ACF Extended. Do you also see them when navigating on your website or the admin?

    I would recommend to migrate your website on a development environment, and debug them individually. Those might be what cause the issue, but I can’t guarantee it since it looks more related to your WP install/configuration/installed plugins.

    To stay focused on the form issue, I would recommend to create a new “Test Form” with no action. Create a “Test Field Group” with one single “Text” field, and use it in the “Test Form”. Display that “Test Form” on a “Test Page”, and try to submit the form, see if the blank page show up again.

    – If the blank page is still there on the “Test Form”, then it means you have some issue with a third party plugin/custom code. I would recommend to try to disable all your plugins one-by-one (at the exception of ACF Pro & ACF Extended) until you find which one cause the issue.

    If the problem persists, I would suggest switch to the native WP Twenty Twenty Two theme, to make sure you don’t have any custom code in your theme that would break the feature.

    – If the blank page is gone on the “Test Form”, then it means you have some issue with a ACF field/Form Action. Try to create the same action in the “Test Form” like in the bugged form, and add new fields to your “Test Field Group” just like in your bugged form field group, until you find which element cause the blank page to show up again.

    Indeed, in all cases, keep an eye on the debug log during the debug process, as you might see new entries in there.

    Regards.

    Thread Starter pdutie94

    (@pdutie94)

    I reverted back to acf pro version 6.0.1 and acf extended version 0.8.8.8, everything was working properly

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Have you tried the debug process I suggested?

    Forms work with both ACF 6.0.4/ACFE 0.8.8.10 and ACF 6.0.1/ACFE 0.8.8.8.

    Reverting back might be solution, but that’s a temporary fix. The bug you reported suggests there’s a underlying issue on your website, which might cause more problems with other parts of your setup.

    The debug process I described might look long and complicated, but it’s not that complex in reality. If you get the time, I would really recommend to try it.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank page after submitting form’ is closed to new replies.