Only for phpBB 3.3+
Despite the error message, the request from the contact form is posted in the forum, but a total of 3 times. I think your extension is causing this problem because the error message no longer occurs when I disable the extension.Fatal error: Uncaught TypeError: Argument 1 passed to marttiphpbb\usertopiccount\service\update::for_user() must be of the type int, null given, called in /is/htdocs/path-to-board/www/ext/marttiphpbb/usertopiccount/event/update_listener.php on line 93 and defined in /is/htdocs/path-to-board/www/ext/marttiphpbb/usertopiccount/service/update.php:47 Stack trace: #0 /is/htdocs/path-to-board/www/ext/marttiphpbb/usertopiccount/event/update_listener.php(93): marttiphpbb\usertopiccount\service\update->for_user(NULL) #1 /is/htdocs/path-to-board/www/vendor/symfony/event-dispatcher/EventDispatcher.php(214): marttiphpbb\usertopiccount\event\update_listener->core_submit_post_end(Object(phpbb\event\data), 'core.submit_pos...', Object(phpbb\event\dispatcher)) #2 /is/htdocs/path-to-board/www/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.submit_pos...', Object(phpbb\event\data)) #3 /is/htdocs/path-to-board/www/ph in /is/htdocs/path-to-board/www/ext/marttiphpbb/usertopiccount/service/update.php on line 47
Himigoe wrote: Tue Dec 29, 2020 6:52 pm The contact extension is in version 1.1.12 of rmcgirr83 and has been configured in such a way that a new post is created in the forum when it is sent.
thanks for the tip on the current version of the extension Contact Admin. Unfortunately, it also comes with the same error message with version 1.3.6
I have the same problem. Enabling/disabling the extension does not helpeunaumtenhoid wrote: Mon May 04, 2020 1:24 pm many users of my forum show 0 topics, how to solve this?
Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/ext/marttiphpbb/usertopiccount/event/update_listener.php on line 166: Undefined array key "first_post"
General Error
SQL ERROR [ mysqli ]
[0]
SQL
No values specified for SQL IN comparison
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1031
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 573
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 465
CALL: phpbb\db\driver\driver->sql_in_set()
FILE: [ROOT]/ext/marttiphpbb/usertopiccount/event/update_listener.php
LINE: 185
CALL: phpbb\db\driver\factory->sql_in_set()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: marttiphpbb\usertopiccount\event\update_listener->core_approve_posts_after()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/includes/mcp/mcp_queue.php
LINE: 873
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/includes/mcp/mcp_queue.php
LINE: 60
CALL: mcp_queue::approve_posts()
FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: mcp_queue->main()
FILE: [ROOT]/mcp.php
LINE: 345
CALL: p_master->load_active()