I don't see active links on my site

Started by rapalero, February 21, 2022, 12:53:25 PM

Previous topic - Next topic

rapalero

Quote from: Sesquipedalian on February 25, 2022, 04:20:43 PMSomething is clearly interfering while posts are being processed in Display.php but not in other situations.

When you use Quick Edit, for example, the edited text is passed through a different set of functions than when a post is initially prepared for display. Likewise, I notice that when I view posts in your forum's Recent Topics page, the automatic links always work, even if they do not work when the same post is viewed in the topic display.

Since the problem appears to be specific to the topic display, but there were no changes in your Display.php file, I now suspect that an integration hook is somehow involved.

Please go to Administration Center ► Forum Maintenance ► Integration Hooks and get a list of all integration hooks listed there, then share that with us.


There are no hooks.


rapalero

Quote from: shawnb61 on February 25, 2022, 04:34:55 PMYeah, but he says they work everywhere after he removes 'the extra stuff'... 

I am wondering if maybe an old 2.0 mod altered the url tag somehow. 

I am trying (and failing miserably...  ::) ) to understand what the difference is between the links that work and the links that do not...

@rapalero - I do not want to see the links I provided.  Those were just examples.  I want to see YOUR links...  Which ones work & which ones don't.  What do YOUR links look like - good & bad?

Thank you for your patience. Currently the links I post are not working.  With or without code, they do not work.  No way, only QUICK EDIT.

Sesquipedalian

Hm. This is really weird.

Please run this test for me. It is very similar to the previous one, but it will include more information.

<?php

require_once('SSI.php');

$msgs = array();

$request $smcFunc['db_query']('''
SELECT id_msg, body
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg'
,
array(
'message_list' => array(260503265469265506265517),
)
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
$msgs[$row['id_msg']]['raw'] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
$msgs[$row['id_msg']]['cached'] = parse_bbc($row['body'], true$row['id_msg']);
$msgs[$row['id_msg']]['parsed'] = parse_bbc($row['body'], true);
}

echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

rapalero

Quote from: Sesquipedalian on February 27, 2022, 08:16:16 PMHm. This is really weird.

Please run this test for me. It is very similar to the previous one, but it will include more information.

<?php

require_once('SSI.php');

$msgs = array();

$request $smcFunc['db_query']('''
SELECT id_msg, body
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg'
,
array(
'message_list' => array(260503265469265506265517),
)
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
$msgs[$row['id_msg']]['raw'] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
$msgs[$row['id_msg']]['cached'] = parse_bbc($row['body'], true$row['id_msg']);
$msgs[$row['id_msg']]['parsed'] = parse_bbc($row['body'], true);
}

echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';



Thanks.

array (
  260503 =>
  array (
    'raw' => '<br />https://m.youtube.com/watch?v=EHV0zs0kVGg',
    'cached' => '
https://m.youtube.com/watch?v=EHV0zs0kVGg',
    'parsed' => '
https://m.youtube.com/watch?v=EHV0zs0kVGg',
  ),
  265469 =>
  array (
    'raw' => '[quote author=SierraParty link=msg=265467 date=1645688024]<br>[quote author=Ghostlabrax link=msg=265459 date=1645636522]<br>M&#237;rate el DT5016 de D1.<br><br>No s&#233; qu&#233; tama&#241;o est&#225;s buscando<br><br>&#8364; 8,79&nbsp; 30%de DESCUENTO | D1-se&#241;uelo de Pesca de Mar, DT5016, 190mm, 37g<br>https://a.aliexpress.com/_voS2lz<br>[/quote]<br><br>Disculpa, por preguntarte de nuevo &#191;Qu&#233; tal lance tiene? Por que pregunt&#233; ayer por &#233;l y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego s&#243;lo hace el &quot;helic&#243;ptero&quot; a cada lance.<br><br>Gracias por adelantado<br><br><br>[/quote]<br><br>Buenas,<br><br>Pues yo no lo he probado pues se aleja del tipo de se&#241;uelos/pesca que practico. <br><br>Puedes preguntarle a Alberto que tiene una review en su canal<br><br>https://youtu.be/e_kjcsDpAmY<br><br>Un saludo',
    'cached' => '
Cita de: SierraParty en 24 de Febrero de 2022, 07:33:44 AM
Cita de: Ghostlabrax en 23 de Febrero de 2022, 17:15:22 PMMírate el DT5016 de D1.

No sé qué tamaño estás buscando

€ 8,79  30%de DESCUENTO | D1-señuelo de Pesca de Mar, DT5016, 190mm, 37g
https://a.aliexpress.com/_voS2lz

Disculpa, por preguntarte de nuevo ¿Qué tal lance tiene? Por que pregunté ayer por él y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego sólo hace el "helicóptero" a cada lance.

Gracias por adelantado



Buenas,

Pues yo no lo he probado pues se aleja del tipo de señuelos/pesca que practico.

Puedes preguntarle a Alberto que tiene una review en su canal

https://youtu.be/e_kjcsDpAmY

Un saludo',
    'parsed' => '
Cita de: SierraParty en 24 de Febrero de 2022, 07:33:44 AM
Cita de: Ghostlabrax en 23 de Febrero de 2022, 17:15:22 PMMírate el DT5016 de D1.

No sé qué tamaño estás buscando

€ 8,79  30%de DESCUENTO | D1-señuelo de Pesca de Mar, DT5016, 190mm, 37g
https://a.aliexpress.com/_voS2lz

Disculpa, por preguntarte de nuevo ¿Qué tal lance tiene? Por que pregunté ayer por él y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego sólo hace el "helicóptero" a cada lance.

Gracias por adelantado



Buenas,

Pues yo no lo he probado pues se aleja del tipo de señuelos/pesca que practico.

Puedes preguntarle a Alberto que tiene una review en su canal

https://youtu.be/e_kjcsDpAmY

Un saludo',
  ),
  265506 =>
  array (
    'raw' => '[quote author=Toni.v link=msg=265502 date=1645878067]<br>alguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.<br>[/quote]<br><br>En 70mm tienes este: https://s.click.aliexpress.com/e/_A7wjG1<br><br>Despu&#233;s en 90mm te recomendar&#237;a este otro: https://s.click.aliexpress.com/e/_9yqN8t<br>Es m&#225;s bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
    'cached' => '
Cita de: Toni.v en 26 de Febrero de 2022, 12:21:07 PMalguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.

En 70mm tienes este: https://s.click.aliexpress.com/e/_A7wjG1

Después en 90mm te recomendaría este otro: https://s.click.aliexpress.com/e/_9yqN8t
Es más bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
    'parsed' => '
Cita de: Toni.v en 26 de Febrero de 2022, 12:21:07 PMalguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.

En 70mm tienes este: https://s.click.aliexpress.com/e/_A7wjG1

Después en 90mm te recomendaría este otro: https://s.click.aliexpress.com/e/_9yqN8t
Es más bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
  ),
  265517 =>
  array (
    'raw' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).<br><br>https://a.aliexpress.com/_v5col3<br><br>',
    'cached' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).

https://a.aliexpress.com/_v5col3

',
    'parsed' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).

https://a.aliexpress.com/_v5col3

',
  ),
)





shawnb61

Does it work if you change the <br /> to <br>, removing the space & /?
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on February 28, 2022, 10:20:40 AMDoes it work if you change the <br /> to <br>, removing the space & /?


Excuse me, can you be more specific? I got lost.

Kindred

instead of removing, just do a global replace in the signature field of the database of all <br /> to be <br>
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shawnb61

@rapalero - when you edit one of the messages with the problem, and you see this somewhere in the message:
<br />

If you change it to:
<br>

...does the link then work?

More questions:
What browser are you using?  Have you tried a different browser?

A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on March 01, 2022, 10:11:50 AM@rapalero - when you edit one of the messages with the problem, and you see this somewhere in the message:
<br />

If you change it to:
<br>

...does the link then work?

More questions:
What browser are you using?  Have you tried a different browser?



Understood. Thank you. The messages do not contain the br

rapalero

Quote from: Kindred on March 01, 2022, 10:05:07 AMinstead of removing, just do a global replace in the signature field of the database of all <br /> to be <br>

Thank you for your response.

Would you be so kind as to direct me how I can do that?

shawnb61

Another question:

Do you have "Enable basic HTML in posts" checked in your BBC settings?

If it's not enabled, please enable it and see if the issue goes away.
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on March 01, 2022, 10:28:22 AMAnother question:

Do you have "Enable basic HTML in posts" checked in your BBC settings?

If it's not enabled, please enable it and see if the issue goes away.


Yes, enabled all in "BBC CODES".

I use Chrome or Edge.

shawnb61

Quote from: rapalero on March 01, 2022, 10:50:29 AMYes, enabled all in "BBC CODES".

This is not one of the BBC codes, it is an option to enable html at the top of the bbc settings page.  See the attached.

Could you enable this & report back?

(I can reproduce this problem by having basic html disabled and having basic html (such as <br />) adjacent to the links in question...)
A question worth asking is born in experience & driven by necessity. - Fripp

rapalero

Quote from: shawnb61 on March 01, 2022, 11:57:16 AM
Quote from: rapalero on March 01, 2022, 10:50:29 AMYes, enabled all in "BBC CODES".

This is not one of the BBC codes, it is an option to enable html at the top of the bbc settings page.  See the attached.

Could you enable this & report back?

(I can reproduce this problem by having basic html disabled and having basic html (such as <br />) adjacent to the links in question...)

Always enabled.

Sesquipedalian

One more test, again similar to the previous one:

<?php
require_once('SSI.php');
$msgs = array();
$request $smcFunc['db_query']('''
 SELECT id_msg, body
 FROM {db_prefix}messages
 WHERE id_msg IN ({array_int:message_list})
 ORDER BY id_msg'
,
 array(
 
'message_list' => array(260503265469265506265517),
 )
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
 
$msgs[$row['id_msg']]['raw'] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
 
$msgs[$row['id_msg']]['cached'] = htmlspecialchars(parse_bbc($row['body'], true$row['id_msg']));
 
$msgs[$row['id_msg']]['parsed'] = htmlspecialchars(parse_bbc($row['body'], true));
}
echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

rapalero

Quote from: Sesquipedalian on March 01, 2022, 01:22:18 PMOne more test, again similar to the previous one:

<?php
require_once('SSI.php');
$msgs = array();
$request $smcFunc['db_query']('''
 SELECT id_msg, body
 FROM {db_prefix}messages
 WHERE id_msg IN ({array_int:message_list})
 ORDER BY id_msg'
,
 array(
 
'message_list' => array(260503265469265506265517),
 )
);
while (
$row $smcFunc['db_fetch_assoc']($request))
{
 
$msgs[$row['id_msg']]['raw'] = htmlspecialchars(mb_encode_numericentity($row['body'], array(0x80,0x10FFFF,0x0,0xFFFFFF), 'UTF-8'));
 
$msgs[$row['id_msg']]['cached'] = htmlspecialchars(parse_bbc($row['body'], true$row['id_msg']));
 
$msgs[$row['id_msg']]['parsed'] = htmlspecialchars(parse_bbc($row['body'], true));
}
echo 
'<pre>';
var_export($msgs);
echo 
'</pre>';



Thanks.

array (
  260503 =>
  array (
    'raw' => '<br />https://m.youtube.com/watch?v=EHV0zs0kVGg',
    'cached' => '<br /><a href="https://m.youtube.com/watch?v=EHV0zs0kVGg" class="bbc_link" target="_blank" rel="noopener">https://m.youtube.com/watch?v=EHV0zs0kVGg</a>',
    'parsed' => '<br /><a href="https://m.youtube.com/watch?v=EHV0zs0kVGg" class="bbc_link" target="_blank" rel="noopener">https://m.youtube.com/watch?v=EHV0zs0kVGg</a>',
  ),
  265469 =>
  array (
    'raw' => '[quote author=SierraParty link=msg=265467 date=1645688024]<br>[quote author=Ghostlabrax link=msg=265459 date=1645636522]<br>M&#237;rate el DT5016 de D1.<br><br>No s&#233; qu&#233; tama&#241;o est&#225;s buscando<br><br>&#8364; 8,79&nbsp; 30%de DESCUENTO | D1-se&#241;uelo de Pesca de Mar, DT5016, 190mm, 37g<br>https://a.aliexpress.com/_voS2lz<br>[/quote]<br><br>Disculpa, por preguntarte de nuevo &#191;Qu&#233; tal lance tiene? Por que pregunt&#233; ayer por &#233;l y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego s&#243;lo hace el &quot;helic&#243;ptero&quot; a cada lance.<br><br>Gracias por adelantado<br><br><br>[/quote]<br><br>Buenas,<br><br>Pues yo no lo he probado pues se aleja del tipo de se&#241;uelos/pesca que practico. <br><br>Puedes preguntarle a Alberto que tiene una review en su canal<br><br>https://youtu.be/e_kjcsDpAmY<br><br>Un saludo',
    'cached' => '<blockquote class="bbc_standard_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265467">Cita de: SierraParty en 24 de Febrero de 2022, 07:33:44 AM</a></cite><blockquote class="bbc_alternate_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265459">Cita de: Ghostlabrax en 23 de Febrero de 2022, 17:15:22 PM</a></cite>Mírate el DT5016 de D1.<br><br>No sé qué tamaño estás buscando<br><br>€ 8,79&nbsp; 30%de DESCUENTO | D1-señuelo de Pesca de Mar, DT5016, 190mm, 37g<br><a href="https://a.aliexpress.com/_voS2lz" class="bbc_link" target="_blank" rel="noopener">https://a.aliexpress.com/_voS2lz</a><br></blockquote><br>Disculpa, por preguntarte de nuevo ¿Qué tal lance tiene? Por que pregunté ayer por él y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego sólo hace el &quot;helicóptero&quot; a cada lance.<br><br>Gracias por adelantado<br><br><br></blockquote><br>Buenas,<br><br>Pues yo no lo he probado pues se aleja del tipo de señuelos/pesca que practico. <br><br>Puedes preguntarle a Alberto que tiene una review en su canal<br><br><a href="https://youtu.be/e_kjcsDpAmY" class="bbc_link" target="_blank" rel="noopener">https://youtu.be/e_kjcsDpAmY</a><br><br>Un saludo',
    'parsed' => '<blockquote class="bbc_standard_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265467">Cita de: SierraParty en 24 de Febrero de 2022, 07:33:44 AM</a></cite><blockquote class="bbc_alternate_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265459">Cita de: Ghostlabrax en 23 de Febrero de 2022, 17:15:22 PM</a></cite>Mírate el DT5016 de D1.<br><br>No sé qué tamaño estás buscando<br><br>€ 8,79&nbsp; 30%de DESCUENTO | D1-señuelo de Pesca de Mar, DT5016, 190mm, 37g<br><a href="https://a.aliexpress.com/_voS2lz" class="bbc_link" target="_blank" rel="noopener">https://a.aliexpress.com/_voS2lz</a><br></blockquote><br>Disculpa, por preguntarte de nuevo ¿Qué tal lance tiene? Por que pregunté ayer por él y ahora una de las tiendas me ofrece enviarme algunos gratis para probar a cambio de fotos. No quiero comprometerme si luego sólo hace el &quot;helicóptero&quot; a cada lance.<br><br>Gracias por adelantado<br><br><br></blockquote><br>Buenas,<br><br>Pues yo no lo he probado pues se aleja del tipo de señuelos/pesca que practico. <br><br>Puedes preguntarle a Alberto que tiene una review en su canal<br><br><a href="https://youtu.be/e_kjcsDpAmY" class="bbc_link" target="_blank" rel="noopener">https://youtu.be/e_kjcsDpAmY</a><br><br>Un saludo',
  ),
  265506 =>
  array (
    'raw' => '[quote author=Toni.v link=msg=265502 date=1645878067]<br>alguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.<br>[/quote]<br><br>En 70mm tienes este: https://s.click.aliexpress.com/e/_A7wjG1<br><br>Despu&#233;s en 90mm te recomendar&#237;a este otro: https://s.click.aliexpress.com/e/_9yqN8t<br>Es m&#225;s bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
    'cached' => '<blockquote class="bbc_standard_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265502">Cita de: Toni.v en 26 de Febrero de 2022, 12:21:07 PM</a></cite>alguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.<br></blockquote><br>En 70mm tienes este: <a href="https://s.click.aliexpress.com/e/_A7wjG1" class="bbc_link" target="_blank" rel="noopener">https://s.click.aliexpress.com/e/_A7wjG1</a><br><br>Después en 90mm te recomendaría este otro: <a href="https://s.click.aliexpress.com/e/_9yqN8t" class="bbc_link" target="_blank" rel="noopener">https://s.click.aliexpress.com/e/_9yqN8t</a><br>Es más bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
    'parsed' => '<blockquote class="bbc_standard_quote"><cite><a href="https://www.rapaleando.com/foros/index.php?msg=265502">Cita de: Toni.v en 26 de Febrero de 2022, 12:21:07 PM</a></cite>alguien sabe si hay alguna copia decente del fakie dog el de 90mm.tenia 2 originales y los e perdido.<br></blockquote><br>En 70mm tienes este: <a href="https://s.click.aliexpress.com/e/_A7wjG1" class="bbc_link" target="_blank" rel="noopener">https://s.click.aliexpress.com/e/_A7wjG1</a><br><br>Después en 90mm te recomendaría este otro: <a href="https://s.click.aliexpress.com/e/_9yqN8t" class="bbc_link" target="_blank" rel="noopener">https://s.click.aliexpress.com/e/_9yqN8t</a><br>Es más bien una copia del pugachev pero muy similar al fakie y con efectividad contrastada. Lance y movimiento de 10.',
  ),
  265517 =>
  array (
    'raw' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).<br><br>https://a.aliexpress.com/_v5col3<br><br>',
    'cached' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).<br><br><a href="https://a.aliexpress.com/_v5col3" class="bbc_link" target="_blank" rel="noopener">https://a.aliexpress.com/_v5col3</a><br><br>',
    'parsed' => 'Yo tengo la copia en 70 que te han puesto arriba y se mueve bastante bien, pero de TODO aliexpress con el que estoy sacando el 80% de mis capturas es el Sparrow. Es mi killer, mi quita bolos, el infalible, si hay lubinas en mi zona le zumban (costa de Girona).<br><br><a href="https://a.aliexpress.com/_v5col3" class="bbc_link" target="_blank" rel="noopener">https://a.aliexpress.com/_v5col3</a><br><br>',
  ),
)

Sesquipedalian

Thanks, @rapalero. That last test confirms for me that the problem is not with parsing the messages in general, but rather that it is something specific to the topic display pages. The exact nature of the problem remains a mystery at this point, but this does help to narrow down the range of possibilities.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Plus


m4z

Quote from: Plus on March 13, 2022, 10:35:27 AMi have same problem.

Did you also update to 2.1.1 from 2.0.x? Do you have the same mods as the OP? Are your BBC settings identical? Do you see the same behavior with regards to preview, editing, and manually adding URL tags?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

marcosbr

Maybe this report will help someone...
I had this problem (no active link).
I was using the normal RC4, upgraded to 2.1.0, then I installed Patch 2.1.1. Then I discovered this problem...
I reinstalled my RC4 DB and upgraded 2.1.1 straight.
The problem disappeared. The error stayed in the old DB!
Do you feel superior?
Above is a slab and below is darkness. It's fire brother!
https://amigosdaeletronica.com.br

Advertisement: