djjase
12-08-2009, 12:37 AM
I get this error:
Fatal error: Cannot redeclare utf8_substr() (previously declared in /home/int09999/public_html/calendar/functions/listings.php:88) in /home/int09999/public_html/libraries/phputf8/mbstring/core.php on line 90
If I take out this in the core.php file it works:
function utf8_substr($str, $offset, $length = FALSE){
if ( $length === FALSE ) {
return mb_substr($str, $offset);
} else {
return mb_substr($str, $offset, $length);
}
}
But I get this error when I try to edit anything in the Admin backend:
Fatal error: Call to undefined function utf8_substr() in /home/int09999/public_html/libraries/joomla/utilities/string.php on line 107
This is the code in string.php
function substr($str, $offset, $length = FALSE)
{
if ( $length === FALSE ) {
return utf8_substr($str, $offset);
} else {
return utf8_substr($str, $offset, $length);
}
}
If I take that out it creates more errors in other files
Fatal error: Cannot redeclare utf8_substr() (previously declared in /home/int09999/public_html/calendar/functions/listings.php:88) in /home/int09999/public_html/libraries/phputf8/mbstring/core.php on line 90
If I take out this in the core.php file it works:
function utf8_substr($str, $offset, $length = FALSE){
if ( $length === FALSE ) {
return mb_substr($str, $offset);
} else {
return mb_substr($str, $offset, $length);
}
}
But I get this error when I try to edit anything in the Admin backend:
Fatal error: Call to undefined function utf8_substr() in /home/int09999/public_html/libraries/joomla/utilities/string.php on line 107
This is the code in string.php
function substr($str, $offset, $length = FALSE)
{
if ( $length === FALSE ) {
return utf8_substr($str, $offset);
} else {
return utf8_substr($str, $offset, $length);
}
}
If I take that out it creates more errors in other files