Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: frontend registration form is not showing #1417

Conversation

sapayth
Copy link
Member

@sapayth sapayth commented Jan 16, 2024

Unregistered users visiting the page with shortcode: [wpuf-registration]

setting enabled to redirect to subscriptions before register. When an unregistered user clicks sign up on a pack, the page throws: There has been a critical error on this website.

@Rat01047
Copy link

Issue-1:
Frontend > Guest User > Visit Registration Page

Scenario:

  1. Frontend > Visit registration page
  2. Facing FATAL error

Debug log:

[16-Jan-2024 11:01:10 UTC] PHP Notice:  Undefined index: file in /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/query-monitor/collectors/php_errors.php on line 364
[16-Jan-2024 11:01:10 UTC] PHP Notice:  Undefined index: line in /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/query-monitor/collectors/php_errors.php on line 364
[16-Jan-2024 11:01:10 UTC] PHP Fatal error:  Uncaught Error: Call to a member function show_errors() on null in /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/wp-user-frontend/templates/registration-form.php:23
Stack trace:
#0 /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/wp-user-frontend/wpuf-functions.php(1618): include()
#1 /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/wp-user-frontend/includes/Frontend/Registration.php(149): wpuf_load_template('registration-fo...', Array)
#2 /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-includes/shortcodes.php(433): WeDevs\Wpuf\Frontend\Registration->registration_form(Array, '', 'wpuf-registrati...')
#3 [internal function]: do_shortcode_tag(Array)
#4 /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(wpuf\\-...', 'do_shortcode_ta...', '\n[wpuf-registra...')
#5 /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-includes/class-wp-hook.php(324): do_shortcode('\n[wpuf-registra...')
#6 /Users/nurul.ratul/QA-Manual/S in /Users/nurul.ratul/QA-Manual/SITES/WPUF_Rat/wp-content/plugins/wp-user-frontend/templates/registration-form.php on line 23

@sapayth
Copy link
Member Author

sapayth commented Jan 23, 2024

cannot reproduce

@anik-fahmid
Copy link

Could reproduce but now working (after PR).

@anik-fahmid anik-fahmid added the Ready to Merge This PR is now ready to be merged label Jan 23, 2024
@sapayth sapayth merged commit 7e20791 into weDevsOfficial:develop Jan 23, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug QA In Progress Ready to Merge This PR is now ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants