Topic-icon CANNOT ACCESS OFFSET OF TYPE STRING ON STRING

4 months 3 weeks ago - 4 months 3 weeks ago #67736 by CyrusXxX
Hello dear support I have tried to enable Content - JFBCContent plugin and configured jfbconnect to show like and share buttons on articles and I am getting the error when opening articles:
CANNOT ACCESS OFFSET OF TYPE STRING ON STRING

I have sent you a login info via contact form so you can investigate, I assume this is also related to php8 compatibillity.

Also in Share/Content Plugin - Like if I select in Category Setting - Include and mark categories where i want buttons to apear I am not sure if selected categories stay remmebered after marking them to show buttons. 

Thank you!
Last edit: 4 months 3 weeks ago by CyrusXxX.
The topic has been locked.
Support Specialist
4 months 2 weeks ago #67742 by mel
I just wanted to let you know that I am in process of investigating the error. I've narrowed it down to if the Pinterest button is enabled in the Sharing section. If disabled, it does not throw the error and does show the other sharing buttons properly.

I did a fix and it worked on my local machine, but throws an error on your site. I'm going to need to set up a PHP 8 local site to step through this, as I haven't narrowed down whether it's a Joomla 4 change or a PHP 8 change that is causing different behavior than expected. I'll get there....

-Melissa
The topic has been locked.
4 months 2 weeks ago #67743 by CyrusXxX
No problem Mel take your time this is not urgent or anything.

Happy holidays!
The topic has been locked.
Support Specialist
4 months 2 weeks ago #67744 by mel
I was able to reproduce the error on a PHP8/J4 local site. I installed a fixed opengraph -content plugin on your site. I've re-disabled the JFBCContent plugin, so turn it on and clear your caching when you want the buttons to show up.

Also in Share/Content Plugin - Like if I select in Category Setting - Include and mark categories where i want buttons to apear I am not sure if selected categories stay remmebered after marking them to show buttons.

I'm not sure I understand what you mean by this. In the backend, if I select Include All and a category and then change any of the options for the Like buttons, the settings remain.
If you mean the changes aren't taking effect on the front-end: One thing that I've noticed is that you have Caching on in the Global Configuration area and also the System Page Cache plugin. If you want any changes to take effect on the front-end, then you'll have to disable and/or clear the cache first.

-Melissa
The topic has been locked.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Get the Hide and Seek Toy on Amazon