Page 2 of 4

Re: [RC] Post When Locked

Posted: Tue Jan 12, 2016 8:56 pm
by Bruninoit
So, try to disable the extension and lock a Topic and see if the problem continues.

Re: [RC] Post When Locked

Posted: Tue Jan 12, 2016 9:42 pm
by SalazarAG
Bruninoit wrote:So, try to disable the extension and lock a Topic and see if the problem continues.
With the extension uninstalled the problem does not happen :(

Re: [RC] Post When Locked

Posted: Tue Jan 12, 2016 9:53 pm
by Bruninoit
Ok, please try this: enable extension, go to a topic and click with right part of mouse->open new tab the lock topic link, so click yes and report exactly what happened.
Thanks.

Re: [RC] Post When Locked

Posted: Tue Jan 12, 2016 10:29 pm
by SalazarAG
Bruninoit wrote:Ok, please try this: enable extension, go to a topic and click with right part of mouse->open new tab the lock topic link, so click yes and report exactly what happened.
Thanks.
Hello!
I clicked new tab and the following appears:

Fatal error: Cannot pass parameter 4 by reference in C:\webserv\htdocs\comunidade\ext\bruninoit\pwl\event\pwl.php on line 86

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 6:40 am
by Bruninoit
SalazarAG wrote: I clicked new tab and the following appears:
Fatal error: Cannot pass parameter 4 by reference in C:\webserv\htdocs\comunidade\ext\bruninoit\pwl\event\pwl.php on line 86
Very thanks for the test. I've uploaded an old package. Now it works.
Thanks.

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 7:02 am
by SalazarAG
Bruninoit wrote:
SalazarAG wrote: I clicked new tab and the following appears:
Fatal error: Cannot pass parameter 4 by reference in C:\webserv\htdocs\comunidade\ext\bruninoit\pwl\event\pwl.php on line 86
Very thanks for the test. I've uploaded an old package. Now it works.
Thanks.
Perfect, it is working very well! Congratulations for the great work!

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 7:32 am
by SalazarAG
I found a mistake BruninoIt

It seems that when making a long text on the ACP, this gives the following error:

Code: Select all

Erro Geral
SQL ERROR [ mysqli ]

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

SQL

UPDATE phpbb_config SET config_value = '[b][color=#FF0040][size=150]Alerta: este tópico está sendo trancado e dentro de instantes será removido[/size]![/color][/b]\n\n[b][size=120]Atenção às seguintes possíveis razões que implicaram no fechamento de seu tópico, abaixo:[/size][/b]\n[size=100]- Título ou conteúdo em caixa alta\n- Conteúdo repetido ou reciclado\n- Tópico destinado a off topics, conversas informais\n- Conteúdo fake ou enganoso\n- Spoiler no título do tópico ou no corpo do mesmo sem o BBcode adequado\n- Ausência da fonte de onde tal conteúdo foi extraído\n- Fonte externa não aprovada pela equipe (sites com baixa reputação em nossa comunidade e etc.)\n- Flood excessivo dos membros (entende-se por vários posts feitos por um mesmo membro, assuntos totalmente desconexos e etc.)\n- A dúvida do autor do tópico foi esclarecida\n- O problema relatado já foi resolvido\n- Conteúdo sexual explícito ou ofensivo;[/size]\n[size=100][align=justify][b]Esses são os motivos genéricos, mais comuns para um tópico ser fechado. No entanto, um moderador tem total liberdade para julgar outros casos na necessidade do tópico ser fechado. Se você acha que seu tópico não infringe nenhuma das nossas regras e o moderador pode ter se equivocado, entre em contato com o mesmo, ou qualquer outro membro da equipe no fórum [url=http://localhost/comunidade/viewforum.php?f=19]Dúvidas, Críticas ou Sugestões[/url] ou enviando mensagem privada individual; [url=http://localhost/comunidade/memberlist.php?mode=team]veja aqui a lista dos membros que compõem a equipe do Today[/url][/b][/align].[/size]\n\nEsta mensagem é automática...' WHERE config_name = 'pwl_text'

BACKTRACE

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

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 852
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]/ext/bruninoit/pwl/acp/main_module.php
LINE: 27
CALL: phpbb\config\db->set()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: bruninoit\pwl\acp\main_module->main()

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

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 8:16 am
by Bruninoit
Yes, you're right... I'll change config with config_text for the post text.
Thanks.

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 6:45 pm
by SalazarAG
Thank you! :)

Tip: the option to choose which forum the message will appear after locking

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 6:47 pm
by Bruninoit
SalazarAG wrote: Tip: the option to choose which forum the message will appear after locking
There is another ext for moving a Topic when is locked.

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 6:51 pm
by SalazarAG
Bruninoit wrote:
SalazarAG wrote: Tip: the option to choose which forum the message will appear after locking
There is another ext for moving a Topic when is locked.
Yes I know.

I think I expressed myself badly.
The option would be to choose which forum you will see the moderator's message.

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 8:02 pm
by Bruninoit
I don't think I understand... A moderator lock a Topic and so he's redirected to the topic locked natively!

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 8:06 pm
by SalazarAG
Bruninoit wrote:I don't think I understand... A moderator lock a Topic and so he's redirected to the topic locked natively!
It was really confusing.
It is not really necessary option, sorry. :)

About the size of text, how should I do to get a long message in ACP without giving SQL error?

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 9:33 pm
by Bruninoit
SalazarAG wrote: About the size of text, how should I do to get a long message in ACP without giving SQL error?
It isn't simple... It requires some edits. I'll update it soon.

Re: [RC] Post When Locked

Posted: Wed Jan 13, 2016 9:40 pm
by SalazarAG
Right. Thank you!