Closed RedStar87 closed 1 year ago
Maybe this will help you
https://inspection.amtsystems.net/inscription?template=cassiopeia
Attempt to assign property "link" on null
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}
@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 .
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.
Looks to me this should be prevented of some sort.
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.
@brianteeman Thank you too. Appreciate it.
This topic can be closed now.
Max.
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.