Hi Reddit!
So I will be very grateful for your help with my WordPress Site that I have been developing for a little while now. I’m working on the [staging site here]), the same issues are happening on the production site.
The site is a membership site that provides video-based health education
I am using Elementor, on the Arya Multipurpose Theme, with some custom css and php in a child theme. The custom php was added by a developer friend of mine that I’m no longer in touch with. My host is GoDaddy with whom I have Managed WordPress .
I’ve run into a couple of pretty major issues and I’m not sure if they are related, which is why I’m putting them both in one post.
I’ve attached images of the issues; and those images of issues and files are at [here at Jumpshare])
**Issue 1**
On testing the site, I have found that regardless of whether the password is entered correctly, if the Login button is pressed twice in a row, pretty quick like a double-click that an impatient user might perform, the site redirects and reports an *HTTP Error 429* (Image in the Jumpshare folder). If you go back and do this once or twice more, you get a redirect stating:
*“Denied for too many attempts – Please try visiting at a later time.”*
(Images attached and in the Jumpshare folder)
It’s as if the site is suspecting a DDoS attack or something?!
You don’t need a login and password to see this error – you can enter anything in the login boxes, do two clicks at roughly the pace of a double-click, and you should see it.
If you want to test this, you might be best doing it via a VPN as after the final denial you can’t get in from the same IP, for a while I’m guessing.
I’ve been on the phone to GoDaddy, my host, and they say that they have no idea, that it is not on their end, it’s an issue in the WordPress setup. They said maybe it’s a scripting error related to login configuration. This doesn’t mean a great deal to me.
There was that php code added to functions.php that was added by my developer friend, but when I remove that functions.php file from the child theme – the error 429 remains.
So I have no idea what to do, and this feels pretty major, it can’t go live like this.
​
**Issue 2**
Onto the functions.php code that I had help with previously. This code (details in attached screenshot and in the Jumpshare folder) was supposed to fix an issue I was having, that if a login attempt on the landing page i.e. member login page (.com) was incorrect, or a box was left empty, if anything about the login was entered wrong, the site would redirect to wp-login.php. I wanted it to redirect to my landing page.
For a while now I have been logging into my WP Dashboard via GoDaddy.
Occasionally I used to go directly to wp-login.php.
Recently I found that when I try to do that, or use wp-admin, I get an error thrown up:
*There has been a critical error on this website. Please check your site admin email inbox for instructions*
No instruction in my email. I turned on debug, and got a detailed error report starting with:
*Fatal error: Uncaught ArgumentCountError: Too few arguments to function*
(Full details in attached screenshot and in the Jumpshare folder)
These messages also appear when I log out of the dashboard (having logged in via GoDaddy).
I can still login via GoDaddy just fine.
I’m pretty sure this is related to the code my developer friend added (no disrespect to them, they were doing me a favour) as when I removed the functions.php from the child theme it went away. Could anyone help me fix the code?
​
Ultimately I recognise that I may have to get a WP developer involved at this stage. Eventually when my site goes live I’ll need someone like that that I can contact for assistance as script issues are beyond me and, as a membership site, we want to be responsible. If these can be fixed in the meantime however that would be great.
Thanks so much for any and all help that you can provide.
[ad_2]