• Resolved jenfraiz

    (@jenfraiz)


    First off, I’m helping a friend and unfortunately she’s unavailable to answer questions as about the wordpress version, etc. I’m hoping you can help in some way while I wait for her to give me more info about the back-end.

    So I was having problems with the form validation not working all of a sudden. It worked yesterday and suddenly nothing. I couldn’t figure it out, so I turned on debugging. Unfortunately once I did that, the entire site became unavailable, resulting in 503 errors.

    I obviously couldn’t get back to the settings to turn debugging back off. I looked for server logs but logs on the site haven’t been updated in weeks. ?? I only have access to the files on the server via FTP, and I thought I could turn off debugging by changing a value in a file, but I didn’t have any luck.

    Do you have any idea what might have happened and how I might fix it? I’m not a programmer but I can muddle my way through things with good instructions. The site is upickvg.com and it’s hosted on dreamhost. That’s about all I know. Thanks in advance!

    https://www.ads-software.com/plugins/wpgform/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    503 error means Service Unavailable.

    Now I can’t think of anything that putting the plugin in debug mode would do to cause a 503 error but if you think it is e source, the quickest and easiest thing to do is to rename the root folder for the Google Forms which will effectively cause WordPress to disable the plugin be used it can’t be found.

    Using your FTP access, switch to the plugins folder for the site and look for a folder named “wpgform” and rename it, “wpgform.save” or something similarly obvious.

    Doing this should allow the site to come up if it isn’t otherwise compromised.

    Now back to the original issue – if validation stopped working all of the sudden, what changed? The validation is based on jQuery so if it stops running then it usually means there is a JavaScript error on the page which prevents the validation script from ever firing. In most cases, the JavaScript error which causes this is due to some other change (theme, plugin, something).

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I forgot to mention, the debugging state is stored in the WordPress database as part of the plugin settings. Technically it would be possible to change it by change a value in SQL but it isn’t easy and off the top of my head I could not tell you exactly how to do it.

    Thread Starter jenfraiz

    (@jenfraiz)

    Thanks for the reply! My friend contacted dreamhost and they managed to get the site back up. We got the plugin back and debugging disabled. So now we are back where we started and validation isn’t working. I will see if i can find any javascript errors and decipher them. Thank you!

    Thread Starter jenfraiz

    (@jenfraiz)

    Hmm, using the Firefox developer tools, i don’t see the page throwing any errors. So this is where my knowledge ends and I’m stumped. Not sure what to do next. ˉ\_(ツ)_/ˉ

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Are you using Google’s validation or the plugin’s validation?

    If you’d like me to look at it, either post the URL here or if you’d prefer not to, you can drop me an email using my WordPress username at gmail dot com.

    Thread Starter jenfraiz

    (@jenfraiz)

    We disabled Google’s validation and are using the plugin’s validation. We are using it on two forms:

    https://www.upickvg.com/donate/
    https://www.upickvg.com/2016/05/19/email-free-karma/

    Thanks again!

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I just took a quick look at second form (email free karma) and the validation rules in the HTML source show this:

    rules: {
    “entry_2030884196”: { required: true },
    “entry_262571989”: { required: true }
    },

    However, there are no input elements on the page with the ID “entry_262571989” like there is for “entry_2030884196”. Similarly, there isn’t a rule for the element with the id “entry_69084534”.

    Now I would think that because one matches you should see a validation error. I’ll keep looking but can you check your validation setup?

    Thread Starter jenfraiz

    (@jenfraiz)

    Hi Mike,

    I think we might have fixed it – we were using names e.g. “entry_2030884196” instead of IDs “entry.2030884196”. Thanks so much for your help and quick response!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘After turning on debugging, entire site is 503’ is closed to new replies.