3.2 & 3.3 Extensions Database 3.2 / 3.3Who Visited This Topic

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

ssl
Donator
Donator
Posts: 137
Joined: 19 Aug 2020, 12:54
    Mac OS X Opera

Re: Who Visited This Topic

Post by ssl »

multigames wrote: 21 Feb 2023, 10:48 Can you help me please ?
What version off this extension do you use?
phpBB: 3.3.14 | PHP: 8.3
[Some French translation of extensions]

User avatar

multigames
Users
Users
Posts: 5
Joined: 03 Feb 2023, 17:51
    Windows 10 Chrome

Re: Who Visited This Topic

Post by multigames »

ssl wrote: 21 Feb 2023, 19:56
What version off this extension do you use?
The last 1.0.8

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Who Visited This Topic

Post by dmzx »

Can you check the db table like below and post picture of it.

Image

User avatar

multigames
Users
Users
Posts: 5
Joined: 03 Feb 2023, 17:51
    Windows 10 Chrome

Re: Who Visited This Topic

Post by multigames »

Hi dmzx,

here is my database screenshot, thanks

Image

User avatar

PostaL
Users
Users
Posts: 6
Joined: 28 Feb 2023, 02:02
    Windows 10 Chrome

Re: Who Visited This Topic

Post by PostaL »

Phpbb 3.3.10
FastCGI (Apache) php 8.2.0
Error when opening any topic

Code: Select all

SQL ERROR [ mysqli ]

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'z123.w.counter_user' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]

SQL

SELECT w.user_id, w.topic_id, w.counter_user, w.date, u.username, u.user_colour, u.user_id, u.user_avatar, u.user_avatar_type, u.user_avatar_height, u.user_avatar_width, u.user_type, SUM(w.counter_user) AS total FROM phpbb_whovisitedthistopic w, phpbb_users u WHERE w.topic_id = 7672 AND w.user_id = u.user_id GROUP BY w.user_id ORDER BY w.date DESC LIMIT 2

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 337
CALL: phpbb\db\driver\driver->sql_query_limit()

FILE: [ROOT]/ext/dmzx/whovisitedthistopic/event/listener.php
LINE: 216
CALL: phpbb\db\driver\factory->sql_query_limit()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: dmzx\whovisitedthistopic\event\listener->viewtopic_get_post_data()

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]/viewtopic.php
LINE: 1320
CALL: phpbb\event\dispatcher->trigger_event()

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Who Visited This Topic

Post by dmzx »

PostaL wrote: 28 Feb 2023, 03:53 phpbb 3.3.10
FastCGI (Apache) php 8.2.0
Error when opening any topic

Code: Select all

SQL ERROR [ mysqli ]

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'z123.w.counter_user' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]

SQL

SELECT w.user_id, w.topic_id, w.counter_user, w.date, u.username, u.user_colour, u.user_id, u.user_avatar, u.user_avatar_type, u.user_avatar_height, u.user_avatar_width, u.user_type, SUM(w.counter_user) AS total FROM phpbb_whovisitedthistopic w, phpbb_users u WHERE w.topic_id = 7672 AND w.user_id = u.user_id GROUP BY w.user_id ORDER BY w.date DESC LIMIT 2

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 337
CALL: phpbb\db\driver\driver->sql_query_limit()

FILE: [ROOT]/ext/dmzx/whovisitedthistopic/event/listener.php
LINE: 216
CALL: phpbb\db\driver\factory->sql_query_limit()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: dmzx\whovisitedthistopic\event\listener->viewtopic_get_post_data()

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]/viewtopic.php
LINE: 1320
CALL: phpbb\event\dispatcher->trigger_event()
is your ONLY_FULL_GROUP_BY on in MySQL?

Check it like this:

SHOW VARIABLES LIKE 'sql_mode';

And post the output here.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Who Visited This Topic

Post by dmzx »

First post updated.

User avatar

PostaL
Users
Users
Posts: 6
Joined: 28 Feb 2023, 02:02
    Windows 10 Chrome

Re: Who Visited This Topic

Post by PostaL »

dmzx wrote: 01 Mar 2023, 10:33 is your ONLY_FULL_GROUP_BY on in MySQL?

Check it like this:

SHOW VARIABLES LIKE 'sql_mode';

And post the output here.
Image

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Who Visited This Topic

Post by dmzx »

PostaL wrote: 01 Mar 2023, 15:39
dmzx wrote: 01 Mar 2023, 10:33 is your ONLY_FULL_GROUP_BY on in MySQL?

Check it like this:

SHOW VARIABLES LIKE 'sql_mode';

And post the output here.
Image
use these 2 commands:

SET SESSION sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

then check:

SHOW VARIABLES LIKE 'sql_mode';

And look if ONLY_FULL_GROUP_BY is gone, then test extension.

User avatar

Peralta
Donator
Donator
Posts: 190
Joined: 13 Dec 2014, 17:04
    Windows 10 Chrome

Re: Who Visited This Topic

Post by Peralta »

Hello dmzx, there is a syntax error in a language variable:

open ./ext/dmzx/whovisitedthistopic/adm/style/acp_whovisitedthistopic.html

Code: Select all

		<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('submit') }}" />
Should be:

Code: Select all

		<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />
Thanks for the update :thumbup:
I speak spanish. Sorry for my bad english.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Who Visited This Topic

Post by dmzx »

Peralta wrote: 01 Mar 2023, 17:09 Hello dmzx, there is a syntax error in a language variable:

open ./ext/dmzx/whovisitedthistopic/adm/style/acp_whovisitedthistopic.html

Code: Select all

		<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('submit') }}" />
Should be:

Code: Select all

		<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />
Thanks for the update :thumbup:
Thanks will correct :thumbup:

User avatar

PostaL
Users
Users
Posts: 6
Joined: 28 Feb 2023, 02:02
    Windows 10 Chrome

Re: Who Visited This Topic

Post by PostaL »

dmzx wrote: 01 Mar 2023, 16:24 use these 2 commands:

SET SESSION sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

then check:

SHOW VARIABLES LIKE 'sql_mode';

And look if ONLY_FULL_GROUP_BY is gone, then test extension.
SET SESSION sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Image
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Image
SHOW VARIABLES LIKE 'sql_mode';
Image

User avatar

gep
Users
Users
Posts: 3
Joined: 01 Mar 2023, 21:31
    Windows 10 Firefox

Re: Who Visited This Topic

Post by gep »

Thank you for this update

User avatar

ssl
Donator
Donator
Posts: 137
Joined: 19 Aug 2020, 12:54
    Mac OS X Opera

Re: Who Visited This Topic

Post by ssl »

Download the french language pack for 1.0.9 version ici

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Who Visited This Topic

Post by dmzx »

PostaL wrote: 01 Mar 2023, 20:12
dmzx wrote: 01 Mar 2023, 16:24 use these 2 commands:

SET SESSION sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

then check:

SHOW VARIABLES LIKE 'sql_mode';

And look if ONLY_FULL_GROUP_BY is gone, then test extension.
SET SESSION sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Image
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Image
SHOW VARIABLES LIKE 'sql_mode';
Image
Check if you can see where you can disable ONLY_FULL_GROUP_BY I dont know is your provider must do it.

Post Reply Previous topicNext topic