Log New User

Error when adding a bot in acp - Log New User

Error when adding a bot in acp

by Matt75 » Fri Jan 15, 2016 3:04 pm

Hi,

When this extension is active, I can't add a bot in acp

error wrote:SQL ERROR [ mysqli ]

Column 'log_ip' cannot be null [1048]

SQL

INSERT INTO phpbb_log (user_id, log_ip, log_time, log_operation, log_type, reportee_id, log_data) VALUES (1409, NULL, 1452870181, 'LOG_NEW_USER_CREATED', 3, 1409, '')

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]/phpbb/log/log.php
LINE: 314
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/ext/david63/lognewuser/event/listener.php
LINE: 110
CALL: phpbb\log\log->add()

FILE: (not given by php)
LINE: (not given by php)
CALL: david63\lognewuser\event\listener->add_new_user()

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_user.php
LINE: 386
CALL: phpbb\event\dispatcher->trigger_event()

FILE: [ROOT]/includes/acp/acp_bots.php
LINE: 239
CALL: user_add()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_bots->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
User avatar
Matt75
Registered User
Posts: 5
Joined: Thu Feb 19, 2015 3:22 pm
Contact:

Re: Error when adding a bot in acp

by david63 » Fri Jan 15, 2016 3:39 pm

How are you adding the bot?

Adding a bot does not use any code that Log New User would use
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am
Contact:

Re: Error when adding a bot in acp

by Matt75 » Sat Jan 16, 2016 12:05 pm

Make the experience, when this extension is enabled I have this error when adding a bot in acp and when it was disabled I don't have this error.
Read the error, when we add a bot in acp, user_add() is called so I thinks the event where you are register is called too

This is clear in the error...
FILE: [ROOT]/ext/david63/lognewuser/event/listener.php
LINE: 110
CALL: phpbb\log\log->add()

FILE: (not given by php)
LINE: (not given by php)
CALL: david63\lognewuser\event\listener->add_new_user()

[...]

FILE: [ROOT]/includes/acp/acp_bots.php
LINE: 239
CALL: user_add()


Please read the error I give in my first post entirely
User avatar
Matt75
Registered User
Posts: 5
Joined: Thu Feb 19, 2015 3:22 pm
Contact:

Re: Error when adding a bot in acp

by Matt75 » Tue Jan 19, 2016 2:29 pm

So for the moment I have disabled this extension when I add some bots in ACP.
User avatar
Matt75
Registered User
Posts: 5
Joined: Thu Feb 19, 2015 3:22 pm
Contact: