End of Support for Joomla 3 - Forum closed

Rokspoket not working when switching to PHP 5.6

Rokspoket not working when switching to PHP 5.6 was created by retaildco

Posted 6 years 5 months ago #18714
Hi,
I had a notification that I needed to updated my PHP to at least 5.6 as it won't receive security updates from Joomla otherwise..
The problem is it means I get a blank website and when I checked with host they said it was an error regarding rokspoket... Has anyone come across this and what to do? My website it mainly based on using the mosaic and grids from rokspoket... Thanks

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Rokspoket not working when switching to PHP 5.6

Posted 6 years 5 months ago #18719
Hi there,
which PHP version is running right now? 7 oder 7.1

1.) Install the newest version of roksprcocket or update the component from Joomla update page
2.) Enable the error reporting to maximum to show the error instead of a white site

Attachment Screenshot_5-2-3-4-5-6-7.jpg not found

Last Edit:6 years 5 months ago by joomlaplates
Attachments:
Last edit: 6 years 5 months ago by joomlaplates.

Please Log in or Create an account to join the conversation.

Replied by retaildco on topic Rokspoket not working when switching to PHP 5.6

Posted 6 years 5 months ago #18777
I was on 5.3, but changed it to 5.6 as it requested. I have done what you mentioned below and the error message is as follows;
Fatal error: Call to undefined function mb_split() in ***** /components/com_roksprocket/lib/RokSprocket/Util/HTMLManipulator.php on line 36

The roksprocket is up to date.

If I change the php to 7 then I get the 'unhappy face error' Error: 0
Call to undefined function mb_split()

Any suggestions on what I can do?

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Rokspoket not working when switching to PHP 5.6

Posted 6 years 5 months ago #18778
Some provider are using PHP preg_split instead of mb_split
Edit the php file >
/components/com_roksprocket/lib/RokSprocket/Util/HTMLManipulator.php on line 36
Line 36 and change from

$tokens = mb_split("\s+", $content);

to

$tokens = preg_split("/\s+/", $content);

Please Log in or Create an account to join the conversation.

Replied by retaildco on topic Rokspoket not working when switching to PHP 5.6

Posted 6 years 5 months ago #18826
Thanks so much that worked :)

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License