fatal error

Phoca Guestbook - creating guestbooks in Joomla! CMS
wwg
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2008, 13:48
Location: Netherlands

I installed the gust

Post by wwg »

I installed the gustbook, created one and liked it to my menu..
When opening the menu item I get this error:

Fatal error: Call to undefined function ctype_lower() in /www/components/com_phocaguestbook/assets/library/HTMLPurifier/Token.php on line 70

peetoom.bellaware.nl - gastenboek

thanks dot the help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, which version of

Post by Jan »

Hi, which version of PHP do you have ... this is a standard PHP function ....

ctype_lower()

(PHP 4 >= 4.0.4, PHP 5)

Jan
If you find Phoca extensions useful, please support the project
wwg
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2008, 13:48
Location: Netherlands

PHP 5.2.5

Post by wwg »

PHP 5.2.5
wwg
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2008, 13:48
Location: Netherlands

can't get it to

Post by wwg »

can't get it to work
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Try to change the co

Post by Jan »

Try to change the code in Token.php:

from:
$this->name = ctype_lower($name) ? $name : strtolower($name);


to
$this->name = strtolower($name);


Jan
If you find Phoca extensions useful, please support the project
wwg
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2008, 13:48
Location: Netherlands

Thanks Jan,

Post by wwg »

Thanks Jan,

Give me the next error:

Fatal error: Call to undefined function ctype_space() in /www/components/com_phocaguestbook/assets/library/HTMLPurifier/Token.php on line 140
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

hmm, it seems like y

Post by Jan »

hmm, it seems like your PHP version doesn't have installed ctype functions

What you can do:

1. Intstall the ctype support for your PHP or
2. Wait until Joomla! developers fix the problem with JRequest:clean method. As they do it, I will implement the JRequest:clean method instead the HTMLPurifier external class...

Jan
If you find Phoca extensions useful, please support the project
Post Reply