Event OnContentBeforeDisplay Only Accepts String Results. - Question | JoomShaper

Event OnContentBeforeDisplay Only Accepts String Results.

FB

Fernando Bautista

Helix Framework 5 months ago

Cordial saludo.

Al tratar de acceder a un articulo a traves de un elemento de menu sale el siguiente error:

Event onContentBeforeDisplay only accepts String results.

https://portalnews.co/gente/proyectos-sociales/donacion-equipos-de-computo-mantenimiento-a-escuelas-rurales-beneficiadas-en-san-francisco-cundinamarca

0
17 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #136705

Hello Fernando Bautista

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup with you before sharing.

Best regards

0
FB
Fernando Bautista
Accepted Answer
5 months ago #137006

Best regard.

I left access data for the testing website in the hidden area.

Please indicate the solution and we will apply the changes to the real production site.

Thank you very much in advance for your kind collaboration.

0
FB
Fernando Bautista
Accepted Answer
5 months ago #138136

Best regard.

I was waiting for an answer to my problem, I gave the credentials to access a testing site, I see in the forum that they answer other people's concerns but nothing about my situation.

To be a user with a subscription, I don't see adequate attention...

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #138183

Apology for the delay. I see a 403 Forbidden error. Please allow my public IP to visit your site.

0
FB
Fernando Bautista
Accepted Answer
5 months ago #138244

Best regards and thanks for your response.

We have enabled access as an administrator from Bangladesh

Please try again.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #138424

Yes, now I can visit the site. Please share your FTP Details. I will try a fix.

0
FB
Fernando Bautista
Accepted Answer
5 months ago #138505

Hello, I have entered requested and tested ftp access data.

Please indicate what the solution to that problem was, the site you provided is a test site, therefore, the solution will be implemented on the production site.

Thank you very much for your kind collaboration.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #138591

Sorry, I could not connect the server. Please check your server name. It should be a valid link for the web browser.

0
FB
Fernando Bautista
Accepted Answer
5 months ago #138770

Best regard.

I have made connections with the data on FileZilla with Windows 10 and LinuxMint and it works perfectly, perhaps you should set it to use "only use flat FTP - insecure"

I see that this works, no problem, please try again.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #138776

Sorry, I tried on FileZilla but could not figure it out. Please check this fix and try yourself:

https://github.com/joomla/joomla-cms/pull/41616/files

on this location: plugins/content/pagenavigation/src/Extension/PageNavigation.php

on line 42 change from

* @return  mixed  void or true

to

* @return  void

and on line 53 change from

return false;

to

return;

and on this location: plugins/content/vote/src/Extension/Vote.php

on line 87 change from

* @return  string|boolean  HTML string containing code for the votes if in com_content else boolean false

to

* @return  string  HTML string containing code for the votes if in com_content else empty string

and on line 96 change from

return false;

to

return '';
0
FB
Fernando Bautista
Accepted Answer
5 months ago #138912

Best regard.

The suggested solution did not work.

0
FB
Fernando Bautista
Accepted Answer
5 months ago #139610

Hola, actualice a Joomla 5.0.1 y el problema continua, las lineas que pide modificar ya estaban modificadas:

https://portalnews.co/gente/proyectos-sociales/donacion-equipos-de-computo-mantenimiento-a-escuelas-rurales-beneficiadas-en-san-francisco-cundinamarca

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 5 months ago #139867

Sorry, your given credentials do not work now. Please enable and share again.

1
FB
Fernando Bautista
Accepted Answer
5 months ago #139944

Hola Ofi, dejo datos de sitio de pruebas, por favor ayudeme a solucionar este problema porque no puedo crear categorias ni mostrar articulos, como usuario suscriptor esto es urgente.

Muchas gracias.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 months ago #142039

Sorry, your given credentials do not match. Please check and share again.

0
FB
Fernando Bautista
Accepted Answer
4 months ago #142094

Best regards and thank you for at least writing again.

I managed to solve my problem thanks to a user in Joomla Issue Tracker and I suggest that you take this solution into account in future occasions, it could save you costs and time:

https://issues.joomla.org/tracker/joomla-cms/42248

In my case, the problem was a plugin called "Inner content" but as I indicated, I already fixed the problem.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 months ago #143416

Thanks for sharing the solution.

0