SP Tweet Broken in Joomla 4.0.0 - Forum | JoomShaper
Staff replied Extensions

SP Tweet Broken in Joomla 4.0.0

Asked by Karen Lontka 4 years ago Last activity 4 years ago

The SP Tweet extension is broken in Joomla 4.0.4. The problem is in components/com_sppagebuilder/helpers/tweet/helper.php. Line 32 is:

        $tweets = json_decode(JFile::read( $cache_file ) );

        but JFile::read is now depreciated and should be rewritten as:

        $tweets = json_decode(file_get_contents( $cache_file ) );

Works after that change, hope this helps.

1 reply

Ofi Khan Staff
4 years ago · edited

Hello Karen Lontka

Thanks for your feedback. You can use your solution. We are aware of this issue and will fix it in the next update.

Best regards

Log in to reply.