Link to home
Start Free TrialLog in
Avatar of thenelson
thenelson

asked on

Wordpress form loads with endless loop.

Wordpress form loads with endless loop.  After I modified a Wordpress form, it just goes through an endless loop when loading and does not allow input.  I don't remember what changes I made to the form that started the problem. The URL for the form is: https://www.barnwellmd.com/intake-questionnaire/ When I preview the form in Wordpress, it works properly.  I don't know how to extract the form from the Wordpress system to allow you all to work on it.  Any help will be appreciated.
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

In what way did you modify it? Did you do it through the dashboard of Wordpress? If so, did you use a plugin to create the form?
Looks like the problem is you've referenced some link in your form which is going into an infinite loop on your site.

So looping at the Webserver level, not WordPress.

So... remove your NGINX front end + start with Apache only first. Also remove all site relative links from your form.

Then start adding links back in one at a time till your find the problem link.

If you have access to your Apache + NGINX logs, tail the logs + visit your page + you'll see the problem instantly.

Note: https://www.webpagetest.org/result/181105_HQ_22fb101bff3eb6e16dfd9abd49ba8090/1/details/#waterfall_view_step1 suggests problem may be a bit complex to resolve, as nothing stands out as taking forever.

So another trick you can use.

1) Install Query Monitor plugin.

2) Add define( 'SAVEQUERIES', true ); to your wp-config.php file.

3) Visit the page + let the page hang, as it's doing now.

4) Eventually your page may timeout + if it does, you may be able to look at debug bar -> HTTP requests to see problem.
If you get completely stuck, just hire someone to locate problem for you.

This will be very simple for anyone running a debug friendly LAMP Stack.

They'll just look at Apache logs + instantly see the problem.
Avatar of thenelson
thenelson

ASKER

The  apache and NGINX logs are blank.  What would you charge to look at it?
Normally Apache + NGINX logs are always blank, because logging is setup incorrectly... er... configured a level to low to be useful...

You must first configure your entire LAMP Stack - Apache + NGINX (best to just remove NGINX till you resolve problem) + database + PHP + since you're running WordPress set WP_DEBUG to true.

I'll drop you a PM about contacting me, if you get stumped.
David,

I added:
define('WP_DEBUG', true);
@ini_set('log_errors','On'); // enable or disable php error logging (use 'On' or 'Off')
@ini_set('display_errors','Off'); // enable or disable public display of errors (use 'On' or 'Off')
@ini_set('error_log','public_html/barnwellmd/php-errors.log'); // path to server-writable log file
to:
wp-config.php

Now I get the following errors on top of my website:
Notice: Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54

Notice: Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54

Notice: Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66

Notice: Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54

Notice: Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66

Notice: Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66

Notice: Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54

Notice: Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54

I created php-errors.log in public_html/barnwellmd but it is empty.

I returned to:
define('WP_DEBUG', false);
so my website will display correctly.

What are those error messages telling me and how do I get WP errors post into the log and not on top of my website?
>how do I get WP errors post into the log and not on top of my website

I figured out this problem by putting this code in my wp-config.php file:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('error_reporting', E_ALL );
@ini_set('log_errors','On'); // enable or disable php error logging (use 'On' or 'Off')
@ini_set('display_errors','Off'); // enable or disable public display of errors (use 'On' or 'Off')
@ini_set('error_log','/home3/thenelson/public_html/barnwellmd/php-errors.log'); // path to server-writable log file
The errors are now going to the pfp-errors.log file and not to my website.

Now I just need help with understanding the error messages.
If you see looping messages, then your WP debug log file is catching the problem.

If not, then check your Apache log files for looping.

Per the above messages, likely you'll require looking in your Apache log file, as none of the above errors look suspect.
Where do I find the Apache log file and what is it called?
I found a file called error_log in my root directory for barnwellmd.com.  Here is what is in it:
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:02:31 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:34:01 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:40:14 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:42:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:44:29 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:45:12 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:46:07 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:49:45 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:11 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:50:41 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:51:49 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:54:19 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:57:42 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined variable: style in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 66
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
[06-Nov-2018 14:58:21 UTC] PHP Notice:  Undefined index: module_class in /home3/thenelson/public_html/barnwellmd/wp-content/plugins/divi_section_manager/divi_section_manager.php on line 54
ASKER CERTIFIED SOLUTION
Avatar of thenelson
thenelson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
With further testing, I discovered that Multiple Columns for Gravity Forms works. The problem occurs when a drop down field is selected for one of the fields in the multiple columns and Enable add options is selected for the drop down field.