No Code Attached Yet Information Required
avatar RedStar87
RedStar87
31 May 2023

Steps to reproduce the issue

Open the J4 user registration page: https://inspection.amtsystems.net/inscription

Expected result

Joomla registration component should display the right registration page

Actual result

Page cannot be found with "Error 500 Internal Server Error" accordingly the Firefox Inspector console.

System information (as much as possible)

Joomla 4.3.2, PHP 8.0

Additional comments

The registration is activated in user parameters, the menu item is published with "Public" access. The .htaccess is well configured.

avatar RedStar87 RedStar87 - open - 31 May 2023
avatar joomla-cms-bot joomla-cms-bot - change - 31 May 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 May 2023
avatar RedStar87 RedStar87 - change - 31 May 2023
The description was changed
avatar RedStar87 RedStar87 - edited - 31 May 2023
avatar brianteeman
brianteeman - comment - 31 May 2023

Maybe this will help you

https://inspection.amtsystems.net/inscription?template=cassiopeia

Attempt to assign property "link" on null

avatar RedStar87
RedStar87 - comment - 31 May 2023

Maybe this will help you

https://inspection.amtsystems.net/inscription?template=cassiopeia

Attempt to assign property "link" on null

Hello Brian!

The menu item is well published and I cleared cache few times already (Joomla including and browser). I re-created a new menu item but still the same... The user rights are the same - no changes there. Don't know how to solve that...

I has activated the Joomla debugging and full error reporting. Can you please check the same page and tell me if there's some component or extension that causes this ?!

Thanks again.
Max.

error - Uncaught Throwable of type Error thrown with message "Attempt to assign property "link" on null". Stack trace: #0 [ROOT]/plugins/user/terms/src/Field/TermsField.php(49): Joomla\Plugin\User\Terms\Field\TermsField->getLayoutData() #1 [ROOT]/libraries/src/Form/FormField.php(1029): Joomla\Plugin\User\Terms\Field\TermsField->getInput() #2 [ROOT]/libraries/src/Form/Form.php(558): Joomla\CMS\Form\FormField->renderField(Array) #3 [ROOT]/templates/flex/html/com_users/registration/default.php(86): Joomla\CMS\Form\Form->renderFieldset('terms') #4 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include('/home/forcepas/...') #5 [ROOT]/libraries/src/MVC/View/HtmlView.php(203): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL) #6 [ROOT]/components/com_users/src/View/Registration/HtmlView.php(128): Joomla\CMS\MVC\View\HtmlView->display(NULL) #7 [ROOT]/components/com_users/src/Controller/DisplayController.php(138): Joomla\Component\Users\Site\View\Registration\HtmlView->display() #8 [ROOT]/libraries/src/MVC/Controller/BaseController.php(678): Joomla\Component\Users\Site\Controller\DisplayController->display() #9 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display') #10 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() #11 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent('com_users') #12 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch() #13 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute() #14 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #15 [ROOT]/index.php(32): require_once('/home/forcepas/...') #16 {main}

avatar richard67
richard67 - comment - 1 Jun 2023

@RedStar87 Do you use the "User - Terms and Conditions" plugin described here https://docs.joomla.org/Chunk4x:Extensions_Plugin_Manager_Edit_User_Group/en in section "User - Terms and Conditions" at the bottom, and if so, have you selected or created an article linked in the "Terms & Conditions Article" field in the plugin's settings? If so: Maybe that article has been deleted in the mean time?

That's just my guess, and I might be wrong. I guess so because the error happens in file "[ROOT]/plugins/user/terms/src/Field/TermsField.php" in line 49 https://github.com/joomla/joomla-cms/blob/4.3-dev/plugins/user/terms/src/Field/TermsField.php#L49 .

avatar richard67 richard67 - change - 1 Jun 2023
Labels Added: Information Required
avatar richard67 richard67 - labeled - 1 Jun 2023
avatar obuisard
obuisard - comment - 2 Jun 2023

I agree with Richard @richard67, the article for the terms and conditions is set but may no longer exist.
Check the User plugin 'Terms and Conditions' and the article you have selected.
This error will happen if the article has been deleted (after being trashed) and is used by the plugin.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40696.

Looks to me this should be prevented of some sort.

avatar RedStar87
RedStar87 - comment - 6 Jun 2023

Hello everyone.

In fact it was the missing "Terms & Conditions" article inside the plugin.

@richard67 @obuisard Thanks a lot for your support. I really appreciate your help and the great Joomla community.

Have a nice week.

Kind Regards,
Max.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40696.

avatar RedStar87
RedStar87 - comment - 6 Jun 2023

@brianteeman Thank you too. Appreciate it.

This topic can be closed now.

Max.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40696.

avatar richard67 richard67 - change - 6 Jun 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-06-06 19:32:44
Closed_By richard67
avatar richard67 richard67 - close - 6 Jun 2023

Add a Comment

Login with GitHub to post a comment