Undefined variable: user_id
-
Hi,
When you submit empty signup form I get a couple of PHP errors:
[26-Jun-2020 12:16:01 UTC] PHP Notice: Undefined variable: user_id in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 249
Thank you in advance.
The page I need help with: [log in to see the link]
-
Hi @czaker
I see the issue, just a few questions..
1) how did you get to the
.../wp-signup.phpending of the URL? are you manually typing ?
the plugin should be redirecting to a different page .../local-signup/2) also just for info what version of PHP are you running ?
few more questions..
3) is findlocal-doctors.com the main site or a sub-site on the network?
4) Are you running multiple networks (multi-sites) on the same WP install ?Marked as resolved
I have closed this support ticket in error… please come back with responses to my question so that we can resolve the issue correctly. Thanks
Hi Justin,
1. manually typing
2. PHP 7.2.32
3. findlocal-doctors.com is a main site
4. I didn’t at the time but now I amNow I have additional error after trying to log in, but they are probably for another ticket:
[16-Jul-2020 10:50:37 UTC] PHP Notice: Undefined index: query in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 459
[16-Jul-2020 10:50:37 UTC] PHP Notice: Undefined index: redirect_to in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 461Thanks!
Ok thanks I’m testing the next version so hopefully that will be available soon.
On 1) this url will now redirect to the NSUR landing page to stop confusion is allowing the native WP template to load. NSUR uses an very slightly different version/copy if WP-signup.php.
On your new php error is that seen on WP-admin.php or on /local-signup/ URLs ?
New errors are on wp-login.php, WP_DEBUG is showing it, but when I refresh the page is redirecting me, and I am successfully logged in.
It probably has to do with this Wp error: “Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.” but I’m still working on it.
Thank you!
@czaker – version 3.0 now fixes the errors
@justinticktock Thanks, I will test it out!
I see from your site that you have hit a different error I’ll work on that now.
Notice: Undefined variable: user_id in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 294
Yes, when I submit empty form it shows missing variable.
Also when I try to login I have:
Notice: Undefined index: query in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 562Notice: Undefined index: redirect_to in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 564
The second error might be caused by me, because I am redirecting users to /account/ page – I will test it.
Thanks for all the help.
3.1 now fixes that too.
Yes, this error is fixed, thanks!
Login errors still remains, I disabled my redirects and I still have them.
Notice: Undefined index: query in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 563
Notice: Undefined index: redirect_to in /home/findlocaldoctors/public_html/wp-content/plugins/network-subsite-user-registration/network-subsite-user-registration.php on line 565
You can try to log in using those:
test
testpassThanks
OK I see that issue, I’ll put it into the next release, however, its a warning so the functionality is going to work. you have debug enabled throwing the errors to the front of your site, which is good to catch these issues so thanks however you could turn that off until the next release.
Those might be warnings but I can not log in correctly, and I am wondering if it’s connected to the plugin.
I have:
“Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.”
..and only errors in my error_log are from your plugin. I will investigate further.
Thanks!
The topic ‘Undefined variable: user_id’ is closed to new replies.