Code: Select all
/**
* Execute code at the end of user setup
*
* @event core.user_setup_after
* @since 3.1.6-RC1
*/
$phpbb_dispatcher->dispatch('core.user_setup_after');
Code: Select all
/**
* Execute code at the end of user setup
*
* @event core.user_setup_after
* @since 3.1.6-RC1
*/
$phpbb_dispatcher->dispatch('core.user_setup_after');
getSubscribedEvents()
docs:Code: Select all
/**
* Returns an array of event names this subscriber wants to listen to.
*
* The array keys are event names and the value can be:
*
* * The method name to call (priority defaults to 0)
* * An array composed of the method name to call and the priority
* * An array of arrays composed of the method names to call and respective
* priorities, or 0 if unset
*
* For instance:
*
* * array('eventName' => 'methodName')
* * array('eventName' => array('methodName', $priority))
* * array('eventName' => array(array('methodName1', $priority), array('methodName2')))
*
* @return array The event names to listen to
*/
Thanks for the info, I had forgotten about that. I'll look into that.kasimi wrote:You can add a higher priority to your listener. From thegetSubscribedEvents()
docs:
Code: Select all
/** * Returns an array of event names this subscriber wants to listen to. * * The array keys are event names and the value can be: * * * The method name to call (priority defaults to 0) * * An array composed of the method name to call and the priority * * An array of arrays composed of the method names to call and respective * priorities, or 0 if unset * * For instance: * * * array('eventName' => 'methodName') * * array('eventName' => array('methodName', $priority)) * * array('eventName' => array(array('methodName1', $priority), array('methodName2'))) * * @return array The event names to listen to */
I've just pushed a change that should fix that. I tested it and it works for me.SalazarAG wrote:Hi again David!
You can take a look at this error? viewtopic.php?f=456&t=2355811&hilit=wel ... #p14440591
It seems to be a conflict between the two extensions and I can not use the other because of it
The error this time seems to be in the database
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Powered by phpBB® Forum Software © phpBB Limited
I enabled and seems to be conflicting with another extension, this time hahahaimkingdavid wrote:Can you enable the DEBUG constant in the config.php file? I would need to see more information about the error to know what is causing it. When I enabled the WTR extension and had my fix in place, it submitted the post successfully when I registered a new user.
Code: Select all
[phpBB Debug] PHP Notice: in file [ROOT]/ext/marttiphpbb/usertopiccount/event/hard_update_listener.php on line 129: Undefined index: poster_id
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]
SQL
UPDATE phpbb_users SET user_topic_count = user_topic_count + 1 WHERE user_id =
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/ext/marttiphpbb/usertopiccount/event/hard_update_listener.php
LINE: 130
CALL: phpbb\db\driver\factory->sql_query()
FILE: (not given by php)
LINE: (not given by php)
CALL: marttiphpbb\usertopiccount\event\hard_update_listener->core_submit_post_end()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 158
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/includes/functions_posting.php
LINE: 2458
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/ext/elias/welcometopicrobot/event/listener.php
LINE: 168
CALL: submit_post()
FILE: [ROOT]/ext/elias/welcometopicrobot/event/listener.php
LINE: 74
CALL: elias\welcometopicrobot\event\listener->create_welcome_topic()
FILE: (not given by php)
LINE: (not given by php)
CALL: elias\welcometopicrobot\event\listener->send_topic()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 158
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/phpbb/user.php
LINE: 184
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/index.php
LINE: 29
CALL: phpbb\user->setup()
Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/ext/imkingdavid/prefixed/core/manager.php on line 432: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2423: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
That appears to have fixed the issue! Thanks a ton!imkingdavid wrote:Thanks Mr_Richards_. Can you please try the latest fix I pushed to the repository and let me know if that works?