Event onContentBeforeDisplay only accepts String results. - Forum | JoomShaper
Staff replied Helix Framework

Event onContentBeforeDisplay only accepts String results.

Asked by Fernando Bautista 3 years ago Last activity 2 years ago

16 replies

Ofi Khan Staff

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

Fernando Bautista Asked this

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.

Fernando Bautista Asked this

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...

Ofi Khan Staff

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

Fernando Bautista Asked this

Best regards and thanks for your response.

We have enabled access as an administrator from Bangladesh

Please try again.

Ofi Khan Staff

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

Fernando Bautista Asked this

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.

Ofi Khan Staff

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

Fernando Bautista Asked this

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.

Ofi Khan Staff

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 '';
Log in to reply.