This board is the new home for david63's extensions.

All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.


Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.

Upgrade to current version of phpbb - Registration age error

Discuss anything to do with extensions
wads24
Donor
Donor
Posts: 7
Joined: January 2023

Upgrade to current version of phpbb - Registration age error

Post by wads24 »

I just Updated Database from version 3.3.12 to version 3.3.13 for phpbb, and cleared cache and cookies and got this error in my log. Can you help me resolve this? Thanks

Code: Select all

[16-Nov-2024 07:35:33 America/Denver] PHP Fatal error:  Uncaught Exception: Failed to parse time string (40-77-58) at position 0 (4): Unexpected character in /ext/devspace/registrationage/event/listener.php:191
Stack trace:
#0 /ext/devspace/registrationage/event/listener.php(191): DateTime->__construct('40-77-58')
#1 /vendor/symfony/event-dispatcher/EventDispatcher.php(214): devspace\registrationage\event\listener->check_register(Object(phpbb\event\data), 'core.ucp_regist...', Object(phpbb\event\dispatcher))
#2 /vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.ucp_regist...', Object(phpbb\event\data))
#3 /phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.ucp_regist...', Object(phpbb\event\data))
#4 /phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.ucp_regist...', Object(phpbb\event\data))
#5 /includes/ucp/ucp_register.php(338): phpbb\event\dispatcher->trigger_event('core.ucp_regist...', Array)
#6 /includes/functions_module.php(684): ucp_register->main('register', NULL)
#7 /includes/functions_module.php(1014): p_master->load_active(false)
#8 /ucp.php(78): p_master->load('ucp', 'ucp_register')
#9 {main}
  thrown in /ext/devspace/registrationage/event/listener.php on line 191

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: Upgrade to current version of phpbb - Registration age error

Post by devspace »

Is that a "one off" error or is it, or something similar, happening all the time?

The baffling part is ('40-77-58') which theoretically cannot happen as it is year, month, day.

If it is a one off then I would guess that it is a bot trying to register.

wads24
Donor
Donor
Posts: 7
Joined: January 2023

Re: Upgrade to current version of phpbb - Registration age error

Post by wads24 »

Sorry for my late response. It's a semi regular error that I am receiving in my error log.

I just updated to 3.3.14 and the error has stopped. I will have to get back with you on see if it happens again.

Thanks 🙏

wads24
Donor
Donor
Posts: 7
Joined: January 2023

Re: Upgrade to current version of phpbb - Registration age error

Post by wads24 »

Just got another error today in the error log.

Code: Select all

[03-Dec-2024 12:33:58 America/Denver] PHP Fatal error:  Uncaught Exception: Failed to parse time string (33-25-30) at position 0 (3): Unexpected character in /ext/devspace/registrationage/event/listener.php:191
Stack trace:
#0 /ext/devspace/registrationage/event/listener.php(191): DateTime->__construct('33-25-30')
#1 /vendor/symfony/event-dispatcher/EventDispatcher.php(214): devspace\registrationage\event\listener->check_register(Object(phpbb\event\data), 'core.ucp_regist...', Object(phpbb\event\dispatcher))
#2 /vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.ucp_regist...', Object(phpbb\event\data))
#3 /phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.ucp_regist...', Object(phpbb\event\data))
#4 /phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.ucp_regist...', Object(phpbb\event\data))
#5 /includes/ucp/ucp_register.php(338): phpbb\event\dispatcher->trigger_event('core.ucp_regist...', Array)
#6 /includes/functions_module.php(684): ucp_register->main('register', NULL)
#7 /includes/functions_module.php(1014): p_master->load_active(false)
#8 /ucp.php(78): p_master->load('ucp', 'ucp_register')
#9 {main}
  thrown in /ext/devspace/registrationage/event/listener.php on line 191

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: Upgrade to current version of phpbb - Registration age error

Post by devspace »

It is impossible to enter that data via the registration form - I have just tested on a vanilla 3.3.14 board.

There are two other options that I can think of; either, as I said before, it is a bot or the data is coming from another extension.

Unfortunately this extension cannot access the IP address of the user which may throw some light on where it is coming from.

I notice that you have the Log Connections extension - is there anything in the phpBB log that might help?