Not Solved New users can't register
#21
Not Solved
(2023-11-09, 11:39 AM)HLFadmin Wrote: Quick look shows that the variable $errors is initialized in some places as a string while in other places treated as an array. The variable is inconsistently typed throughout the system.

Be specific. What exactly were you updating when the error occurred? I want to duplicate the flaw to see the logic flow here. How do I recreate the error.

I'm not sure which blank I was filling in but it was in the profile. I can't think of the tab name, but it was the first one. I put my picture in then started filling the rest.
Reply
#22
Not Solved
Line 824 is triggered when $returndate is in the past, when setting the I'm Away date today.
Fatal error is triggered.

Still not sure why $errors is initialized as string in lines 351 and 593 when elsewhere it is converted to an array in lines 619, 639 and 727.

Usage and coding is inconsistent. While it appears $errors is only used locally within the module, it may have implications for other problems since it is a global variable. Will continue investigation and seek remedy on a test forum.

Meanwhile, do not set the return date earlier than today. That will avoid triggering the error.

Also, advise using UserCP to adjust your user profile settings. I only use AdminCP when I need to fix someone else's profile problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)