Page 3 of 5

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Sat May 14, 2016 10:27 pm
by 3Di
The purpose of this extension has been clearly stated. :)

To add, I do not see the use case.

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 2:06 pm
by Elias
Noted bugs:
  • An issue with the post count of the BOT

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 6:31 pm
by 3Di
Elias wrote:Noted bugs:
  • An issue with the post count of the BOT
A bit vague, care to expand please?

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 10:44 pm
by SalazarAG
Hello! After I install and register a user test I get the following error

Code: Select all

 ! ) Fatal error: Call to a member function set_topic_prefixes() on a non-object in C:\wamp\www\forum\ext\imkingdavid\prefixed\event\listener.php on line 198
Call Stack
#	Time	Memory	Function	Location
1	0.0024	311144	{main}( )	..\index.php:0
2	1.3560	14005240	phpbb\user->setup( )	..\index.php:29
3	1.3569	14021344	phpbb\event\dispatcher->trigger_event( )	..\user.php:184
4	1.3590	14037272	phpbb\event\dispatcher->dispatch( )	..\dispatcher.php:46
5	1.3590	14037272	Symfony\Component\EventDispatcher\EventDispatcher->dispatch( )	..\dispatcher.php:60
6	1.3782	14613392	Symfony\Component\EventDispatcher\EventDispatcher->doDispatch( )	..\EventDispatcher.php:46
7	1.3808	14621920	call_user_func:{C:\wamp\www\forum\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php:158} ( )	..\EventDispatcher.php:158
8	1.3808	14622232	elias\welcometopicrobot\event\listener->send_topic( )	..\EventDispatcher.php:158
9	1.4139	14624936	elias\welcometopicrobot\event\listener->create_welcome_topic( )	..\listener.php:74
10	1.6230	16886552	submit_post( )	..\listener.php:168
11	2.1309	18122968	phpbb\event\dispatcher->trigger_event( )	..\functions_posting.php:2460
12	2.1309	18123256	phpbb\event\dispatcher->dispatch( )	..\dispatcher.php:46
13	2.1309	18123256	Symfony\Component\EventDispatcher\EventDispatcher->dispatch( )	..\dispatcher.php:60
14	2.1321	18128136	Symfony\Component\EventDispatcher\EventDispatcher->doDispatch( )	..\EventDispatcher.php:46
15	2.1736	18130464	call_user_func:{C:\wamp\www\forum\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php:158} ( )	..\EventDispatcher.php:158
16	2.1737	18130680	imkingdavid\prefixed\event\listener->manage_prefixes_on_posting( )	..\EventDispatcher.php:158
It seems to be a conflict with the extension [pre] fixed

I looked listener.php of prefixed, and the following error line is this

Code: Select all

		$this->manager->set_topic_prefixes((int) $event['data']['topic_id'], $this->manager->get_submitted_prefixes(), (int) $event['data']['forum_id']);

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 10:54 pm
by 3Di
Fatal error: Call to a member function set_topic_prefixes() on a non-object in C:\wamp\www\forum\ext\imkingdavid\prefixed\event\listener.php on line 198
It is an issue of that extension.

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 11:11 pm
by SalazarAG
3Di wrote:
Fatal error: Call to a member function set_topic_prefixes() on a non-object in C:\wamp\www\forum\ext\imkingdavid\prefixed\event\listener.php on line 198
It is an issue of that extension.
The author gone :(

You do not have a way to fix?

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 11:16 pm
by 3Di
The more logical way is to disable that extension and wait the author to come back, posting your issue there where you got that extension from. I mean, logical.. ;)

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Wed May 25, 2016 11:51 pm
by SalazarAG
3Di wrote:The more logical way is to disable that extension and wait the author to come back, posting your issue there where you got that extension from. I mean, logical.. ;)
Okay. I'll do it.
But I received another error in topic settings that will be created in ACP:

Code: Select all

	
Clique aqui para voltar ao índice	
Erro Geral
SQL ERROR [ mysqli ]

Data too long for column 'config_value' at row 1 [1406]

SQL

UPDATE phpbb_config SET config_value = 'Olá %user,\nseja muito bem vindo ao %board. :)\n\nÉ importante frisar sempre que a leitura das regras gerais de convívio deve ser feita. Assim, você evita punições e continua aproveitando o espaço.\n\nUm super abraço!\n[i]Este tópico é automático, mas você pode respondê-lo[/]\n\n%robot' WHERE config_name = 'welcomerobot_detail'

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

FILE: [ROOT]/phpbb/config/db.php
LINE: 122
CALL: phpbb\config\db->set_atomic()

FILE: [ROOT]/includes/functions.php
LINE: 162
CALL: phpbb\config\db->set()

FILE: [ROOT]/ext/elias/welcometopicrobot/acp/welcomerobot_module.php
LINE: 95
CALL: set_config()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: elias\welcometopicrobot\acp\welcomerobot_module->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

Por favor, contate o administrador ou webmaster deste fórum: lucas_vinicius98@live.com
Powered by phpBB® Forum Software © phpBB Limited 

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:27 am
by 3Di
Could you pls post it here within the bbcode code tags what you tried to insert into that ACP/field?

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:37 am
by SalazarAG
3Di wrote:Could you pls post it here within the bbcode code tags what you tried to insert into that ACP/field?

Code: Select all

Olá %user,
seja muito bem vindo ao %board. :)

É importante frisar sempre que a leitura das regras gerais de convívio deve ser feita. Assim, você evita punições e continua aproveitando o espaço.

Um super abraço!
[i]Este tópico é automático, mas você pode respondê-lo[/]

%robot

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:41 am
by 3Di
Is a bit late for me now but try changing this line

Code: Select all

[i]Este tópico é automático, mas você pode respondê-lo[/]
to be

Code: Select all

[i]Este tópico é automático, mas você pode respondê-lo [/i]
it seems to me you have not correctly closed the Italic bbcode tag i, that could be the culprit, let me know.

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:48 am
by SalazarAG
3Di wrote:Is a bit late for me now but try changing this line

Code: Select all

[i]Este tópico é automático, mas você pode respondê-lo[/]
to be

Code: Select all

[i]Este tópico é automático, mas você pode respondê-lo [/i]
it seems to me you have not correctly closed the Italic bbcode tag i, that could be the culprit, let me know.
I did it and the error went :(

It seems to be something related to the character limit allowed.

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:52 am
by 3Di
SalazarAG wrote:I did it and the error went
Do you mean the error is still there or the error went away and now it works?

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 12:55 am
by SalazarAG
3Di wrote:
SalazarAG wrote:I did it and the error went
Do you mean the error is still there or the error went away and now it works?
Continued and does not work :(

I had a similar error with the extension Post Message When locked to bruninoit and was caused because he was exceeding the character limit allowed. I think we have to change the maximum value.

Sorry for bad english

Re: [ALPHA] WTR (Welcome Topic Robot)

Posted: Thu May 26, 2016 1:17 am
by 3Di
It seems the issue lies elsewhere by some quick test I did now.
Tomorrow I will give to this a better shot though.

In the meantime you can use a shorter message indeed, I tried:
Olá %user,
seja muito bem vindo ao %board. :)

É importante frisar sempre que a leitura das regras gerais de convívio deve ser feita. Assim, você evita punições e continua aproveitando o espaço.

Um super abraço!

%robot
Edit: this extension should use config_text instead of config for that field, I am just helping out but I will see tomorrow what I can do about that. Is not my code.