Question 1:
When I open my website ( http://www.******.com/catalog/ ) I get this error:
Fatal error: Call to undefined function: str_split() in /home/******/catalog/includes/modules/flash_carousel.php on line 68
Solution 1:
str_split is PHP 5 native function. If you are using PHP 4+, you can follow below instruction.
Open catalog/includes/functions/flash_carousel.php file. Add below code to your file before last ?> tag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if(!function_exists('str_split')) { function str_split($string,$string_length=1) { if(strlen($string)>$string_length || !$string_length) { do { $c = strlen($string); $parts[] = substr($string,0,$string_length); $string = substr($string,$string_length); } while($string !== false); } else { $parts = array($string); } return $parts; } } |