Welcome, Guest. Please Login or Register.
November 07, 2024, 10:10:17 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Getting a Fatal Error message « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Getting a Fatal Error message  (Read 1509 times)
Glacierhawk
Noobie
*
Posts: 3


I'm a llama!

Getting a Fatal Error message
« on: April 19, 2003, 07:48:58 PM »
Reply with quote

I am getting the following error when trying to post to my newly installed YaBB SE 1.5.1.

Fatal error: Call to undefined function: ctype_upper() in /var/www/domains/arktic.net/Courtyard/Sources/Post.php on line 846

I have no idea why this is happening, and could use a little help.  

The rest of the board seems to work just fine.  Any suggestions?
« Last Edit: April 19, 2003, 07:49:20 PM by Glacierhawk » Logged
Lance L
Noobie
*
Posts: 41


The NoPC Guardian

lance@antares-dev.com WWW
Re:Getting a Fatal Error message
« Reply #1 on: April 19, 2003, 08:48:32 PM »
Reply with quote

I am getting the same error now. It appears to be related to the Supermod package as I just installed it.

This is a PHP function, supposed to be there in version 4.04. I am running 4.1.2 and getting the same message.

Ideas anyone?  ???
Logged
Lance L
Noobie
*
Posts: 41


The NoPC Guardian

lance@antares-dev.com WWW
Re:Getting a Fatal Error message
« Reply #2 on: April 19, 2003, 09:02:43 PM »
Reply with quote

Drat. The problem is this. With PHP 4.2.0, the ctype functions are enabled by default. With any lower versions, they have to be complied and enabled.

I am running 4.1 series and it does not appear to be enabled.
Logged
Lance L
Noobie
*
Posts: 41


The NoPC Guardian

lance@antares-dev.com WWW
Re:Getting a Fatal Error message
« Reply #3 on: April 19, 2003, 09:18:09 PM »
Reply with quote

Okay, I have a fix for this problem. What it appears this code is doing is checking to see if the user was SHOUTING in the subject. If the user is, it "fixes" this. I simply commented out the code as that was the only place in POST.PHP that I found the ctype_ functions.


##   $tempsubject = explode(' ', $tempsubject);

##   foreach($tempsubject as $value)
##   {
##         $len = strlen($value);
##         if(ctype_upper($value))
##                   $value = substr($value, 0, 1).strtolower(substr($value, 1, $len - 1));
##         else if(!ctype_lower($value))
##         {
##            $c = 0;
##            $uppers = 0;
##            while($c < $len)
##            {
##               if(ctype_upper($value{$c}))
##                  $uppers++;
##               $c++;
##            }
##            if(($uppers/$len) >= .66) //Only change if 2/3 or more is upper case
##               $value = substr($value, 0, 1).strtolower(substr($value, 1, $len - 1));
##         }
##         $subject .= $value.' ';
##   }


In my file, these are lines 841-862.

Use at your own risk.  8)
Logged
Glacierhawk
Noobie
*
Posts: 3


I'm a llama!

Re:Getting a Fatal Error message
« Reply #4 on: April 20, 2003, 06:58:52 AM »
Reply with quote

Lance thank you very much for your input, it not only worked but I am now able to see straight again.

Glace
Quote from: Lance L on April 19, 2003, 09:18:09 PM
Okay, I have a fix for this problem. What it appears this code is doing is checking to see if the user was SHOUTING in the subject. If the user is, it "fixes" this. I simply commented out the code as that was the only place in POST.PHP that I found the ctype_ functions.


##   $tempsubject = explode(' ', $tempsubject);

##   foreach($tempsubject as $value)
##   {
##         $len = strlen($value);
##         if(ctype_upper($value))
##                   $value = substr($value, 0, 1).strtolower(substr($value, 1, $len - 1));
##         else if(!ctype_lower($value))
##         {
##            $c = 0;
##            $uppers = 0;
##            while($c < $len)
##            {
##               if(ctype_upper($value{$c}))
##                  $uppers++;
##               $c++;
##            }
##            if(($uppers/$len) >= .66) //Only change if 2/3 or more is upper case
##               $value = substr($value, 0, 1).strtolower(substr($value, 1, $len - 1));
##         }
##         $subject .= $value.' ';
##   }


In my file, these are lines 841-862.

Use at your own risk.  8)
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Getting a Fatal Error message
« Reply #5 on: April 20, 2003, 09:15:46 AM »
Reply with quote

Just a note:  This is caused by the Supermod, and if you check in the thread he already has made a fix available.

-[Unknown]
Logged
Lance L
Noobie
*
Posts: 41


The NoPC Guardian

lance@antares-dev.com WWW
Re:Getting a Fatal Error message
« Reply #6 on: April 20, 2003, 06:31:45 PM »
Reply with quote

[unknown]: I took a look at some unmodded code and still found the ctype_ functions in there. It would appear to not be executing in a regular YABBSE install as I did not have any problems prior to installing the supermod.

I believe they are around line 800 in the unmodded file.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Getting a Fatal Error message
« Reply #7 on: April 20, 2003, 08:41:03 PM »
Reply with quote

Quote from: Lance L on April 20, 2003, 06:31:45 PM
[unknown]: I took a look at some unmodded code and still found the ctype_ functions in there. It would appear to not be executing in a regular YABBSE install as I did not have any problems prior to installing the supermod.

I believe they are around line 800 in the unmodded file.

I can assure you that it is not.  I just checked, and seeing as I'm the one who *made* the 1.5.1 release zip file.... I'm quite sure it's not in there.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Getting a Fatal Error message « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.084 seconds with 21 queries.