Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Fatal Error: Call To Undefined Function: Mysql_connect() In /var/www/html/index.php


I get the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 3.

I have the following RPMS installed on RH7.2
MySQL-client-4.0.14-0 I would really appreciate it.
MySQL-shared-4.0.14-0
MySQL-server-4.0.14-0
MySQL-devel-4.0.14-0
php-imap-4.0.6-7
php-4.0.6-7
apache-1.3.20-16
apache-devel-1.3.20-16
apacheconf-0.8.1-1

The code i am trying to run is: I would really appreciate it.
<?php
printf("opening db.....");
$db = mysql_connect("localhost","user","password");
printf("closing db
");
mysql_close($db);
?>

The configure part of phpinfo() shows:
-----
'./configure'
'i386-redhat-linux' '--prefix=/usr' .<snip>
'--enable-wddx' '--without-mysql' '--without-unixODBC'
'--without-oracle' '--without-oci8' '--with-pspell' '--with-xml'
------

I believe the mysql is not installed to work along with PHP. I
installed php using rpm.
My question is how do i make it work. I have checked NG and tested all
the options. But to no avail.

I also tried by uncommenting the line extensin=mysql.so in
/etc/php.ini.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Fatal Error: Call To Undefined Function Mysql_connect() ...
I can't seem to get PHP to recognize MySQL. I know you are probably sick of hearing about this problem, but I haven't been able to find a solution. I have read through the documentation on the web including that which pertains to this error in these forums. I will attempt to outline the problem as detailed as possible: PHP Code:

Fatal Error: Call To Undefined Function Mysql_connect()
I just instal php-5.1.2-installer.exe and mysql-5.0.10a-beta-win32 but
when i connect to mysql then show error like this "Fatal error: Call to
undefined function mysql_connect(). Why can I not connect to mysql?

Another "Fatal Error: Call To Undefined Function: Mysql_connect()"Question
I am getting the following error when I try to view a test page in my
browser. This test page just reads a table in mysql and outputs the
results.

Fatal error: Call to undefined function: mysql_connect() in
/var/web/public/test.php on line 2

I'm using:
Apache 2
MySQL 4.1.12
PHP 4.4.0

I have tried upgrading PHP to PHP5. I went back down to PHP4. I
verified that mysql.so was being loaded. I tried using the OLD_PASSWORD
feature in mysql. Verified that the PHP module is loaded in apache.

What is weird however (at least I think) is when I run the following via
telnet:

php ./test.php

It pulls up the page, connects successfully to the database and displays
the records. No error message.

Totally Lost! "Fatal Error: Call To Undefined Function: Mysql_connect()"
I'm a noob with a server so keep that in mind :) Been trying to connect
with php to mysql and all I get is:

"Fatal error: Call to undefined function: mysql_connect()"

I've read and read and can't figure out what is wrong. My current set
up is:

# rpm -qa | grep php

php-ldap-4.3.2-23.ent
php-mysql-4.3.2-3mdk
php-imap-4.3.2-23.ent
php-4.3.2-23.ent

# rpm -qa | grep php

php-ldap-4.3.2-23.ent
php-mysql-4.3.2-3mdk
php-imap-4.3.2-23.ent
php-4.3.2-23.ent

On RedHat 3.2ES

Can someone please help? I've been trying for 2 weeks now and I still
don't know what to do.

Fatal Error: Undefined Function Mysql_connect():
Just tried my first mysql funcition: mysql_connect(). When I try it in my
browser I get "Fatal Error: undefined function mysql_connect(): I'm running
apache2, php5 and mysql 5.0.22 - all running on Ubuntu 6.06. I can execute
simple php scripts and phpinfo() works fine. What is my problem?

Fatal Error: Call To Undefined Function :
I'm working in an environment that only uses windows!!! HELP!!! but because of this I must test and use everything on windows. So, I'm using PHP 4.06, Apache 1.3.2 and Windows 2000 pro. Everything works. But here is my problem. I tried setting up functionality with fdftk. What I tried doing is setting up my extension directory and the extension=php_fdf.dll in my php.ini file. When I try to run my script I get an error like this: Fatal Error: Call to undefined function : fdf_open().

Fatal Error: Call To Undefined Function: ()
I am currently butting my head against a brick wall with a problem right now. I am trying to use two arrays to track an item and it's quantity. When ever the script runs it says I keep getting this error message:

Fatal error: Call to undefined function: () in /info/www/docs/cpcdb/search/addcart.php on line 109

This error occurs on the first time the session is initialized. The called function is get(). When I reload the page (reloading session) I get a new error

Fatal error: Call to undefined function: () in /info/www/docs/cpcdb/search/addcart.php on line 93

which occurs in a branch of an if statement that checks to see if my arrays are not empty. The function called on line 93 is upditem. Code:

Fatal Error: Call To Undefined Function
After an upgrade from PHP4.x to PHP5.2 with Apache 2.2 and an Oracle 10g database in the back i am not anymore able to do INSERTS, UPDATES to the database. DELETE and SELECTS are working fine. Code:

Fatal Error: Call To Undefined Function:
I have an online photogallery nearly working. I get the error below and have no idea why its happening. The 'Still Here!' bit is what the code is echoing so i can see if that set of code works. I have followed a tutorial for this and Not really sure what to do. Code:

Fatal Error: Call To Undefined Function: Mail()
I'm having troubles with the PHP mail function on my server. I'm running redhat 8.0 with qmail.

When i try to send mail with php i get an error message said:
Fatal error: Call to undefined function: mail().

Fatal Error: Call To Undefined Function: Virtual()
I trying to install php on my local computer. Everything works OK, but virtual() function.

If it is on a page, it returns
"Fatal error: Call to undefined function: virtual()"

I guess it something should be corrected in httpd.conf ot php.ini, because the same pages work just fine if called through my server (with php and apache installed).

Both PC-s are under Windows.

I think this is a common error, because there are plenty pages in Internet with this error.

Fatal Error: Call To Undefined Function: Imap_open()
I have compiled php4.0.1pl2 with imap support and followed the instructions from the php website as well as followed the advice in the user notes under imap in the help section. I still can't get imap_open to work. I get:

Fatal error: Call to undefined function: imap_open() in /www/mail.php on line 9

I have the latest version of the UW imap installed and working properly. Is there anything else i need to do inorder to get imap working?

Fatal Error - Call To Undefined Function: Inserteditorjava()
As my name implies, I'm in trouble already.

Opened index.php in Dreamweaver to change some post codes (zip codes), then uploaded same back vif FTP.

Now when I open my site all I get is the following:

Fatal error: Call to undefined function: inserteditorjava() in /home/example/public_html/index.php on line 36

The code:

Fatal Error: Call To Undefined Function: Proc_open()
Hi *.

I get this error when trying to run proc_open() function:

"Fatal error: Call to undefined function: proc_open() in
/home/frantic/public_html/a/phpshell.pup on line 140"

Does anybody knows what setting I have to change to fix this?

Configuration:
Linux loci 2.4.25
PUP Version 4.1.2
Apache Version Apache/1.3.26
Apache Release 10326100
Apache API Version 19990320

Fatal Error: Call To Undefined Function: Pregmatch()
Just wondering if anyone can something glaringly obvious with this function, as it throws up the following error message...

Fatal error: Call to undefined function: pregmatch() in D:Webindex.php on line 130
PHP Code:

Fatal Error: Call To Undefined Function Mssql_connect()
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:InetpubwwwrootCertificateOccupancymain.php on line 33

line 33: $conn = mssql_connect(toshibo,sa,ladeda) or die ("Could Not
Connect to Database");

when trying to use mssql_connect. Info.php shows that the mssql module
is loading which tells me that where I uncommented

extension=php_mssql.dll

in the php.ini file is working. I have set up paths for both the
c:phpext and c:php directories.

I had PHP 4.3.10 installed on the same box a day earlier, and the
function worked. Also, I am using the ISAPI method for PHP instead of
the CGI if it matters.

Fatal Error: Call To Undefined Function: Gmp_random()
I want to create a random number, so I looked this up in the manual and it looked good. However, I can't get it to work. Tell me, why doesn't this work?

$number = gmp_random("9999999999");
echo "$number";

gives me this:

Fatal error: Call to undefined function: gmp_random() in /home/dpetersen/public_html/Site/newsletter.php on line 5

where line 5 is the line where the gmp_random() function is called. with or without quotes it doesn't work. And in the manual it says it will generate a random number between the number you specify and 0. but it doesn't give any examples and I just figured it would work like that.

Fatal Error: Call To Undefined Function: Imap_open()
When I'm typing $link= imap_open($server,"test", "test"); my server returns
Fatal error: Call to undefined function: imap_open()

I assume this means that my server doesn't have IMAP support, right? So, if my server doesn't support IMAP, what function should I use to open my pop3 account?

Fatal Error: Call To Undefined Function: Session_start()
Below is the simple code of session start :

<?php
session_start();
echo "session_start() works!";?>

but when i run this script the browser gives me this error :

Fatal error: Call to undefined function: session_start() in /var/www/html/session.php on line 2

This script was running fine and also my other scripts in older php 4.1.2, but when i upgraded to 4.2.1 the the problem started. Is it because of the old php.ini file not been overwritten or it is something else. Register Globals is off.

Fatal Error: Call To Undefined Function: Imagecreate()
./configure' '--with-ldap' '--with-oci8=/home/oracle/OraHome1' '--with-mysql' '--with-apache=../apache_1.3.24' '--enable-transient-id' '--enable-gd=../gd-1.8.4' '--with-jpeg=../jpeg-6b' '--with-png=../libpng-1.2.3' '--with-zlib'

everything compiles fine and runs except for when i use GD stuff.

Fatal error: Call to undefined function: imagecreate() in ...etc etc etc Anyone have ideas on how to compile this correctly?

Fatal Error: Call To Undefined Function: Virtual()
<?php virtual("http://iphere/cgi-bin/post/YaBB.pl?board=july_02_week1;action=news"); ?>

and is it in right format? The page that I got it from said it should be set as <?php virtual("./your_yabb.pl?board=news;action=news"); ?>

I cant post it for you because I am on a government computer and that would be frowned upon, but the error it gives me is this:

Fatal error: Call to undefined function: virtual() in C:Documents and Settings
ewmanjDesktopgdfest.php on line 8

The only thing in the document is this: Code:

Fatal Error: Call To Undefined Function Mb_convert_case()
What is the extension responsible of`: mb_convert_case()...

Fatal Error: Call To Undefined Function: Session_cache_limiter()
I am currently using version 4.0.6 of PHP and am trying to use the session_cache_limiter() function which was added in PHP versions greater than PHP 4.0.3. Unfortunately, my calls to said function yield the following message:

Fatal error: Call to undefined function: session_cache_limiter() . . .

Does anyone out there have any experience or advice about using session_cache_limiter()?

Fatal Error: Call To Undefined Function: Display_category()
I want this to run the if statement when clicking the save button(mainly cause it depends on variables that arent submitted yet), but it seems its running it at the calling of the file in my broswer, cause I get this error.

Fatal error: Call to undefined function: display_category() in c:apachehtdocsgolesnewcatshowtable4.php on line 116 PHP Code:

Fatal Error: Call To Undefined Function: Array()
I get this error when i try to get information out of an array:

Fatal error: Call to undefined function: array() in /www/my_domain.com/web/solo/qyadmin/alter.php on line 30 PHP Code:

Fatal Error: Call To Undefined Function: Sem_get()
I have trouble using sem_get(). I figure there must be something that I am not doing right, but I cannot figure out what. I put in

<?PHP
echo "entering PHP<BR>";
$sem_id=sem_get(&#39123;');
echo "exiting PHP<BR>";?>

and I get out entering PHP:

Fatal error: Call to undefined function: sem_get() in /home/[...]/sem1.php on line 3
The web hosting firm insists that semaphore functions are available.

Fatal Error: Call To Undefined Function: Imagecreatefromjpeg()
I feel like pulling my hair out - I tried unsuccessfully over the past few
days to install ImagMagick but because of version conflicts and missing
libraries I had to give up. I originally choose ImageMagick because I've
heard so much about it.

I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3
that I compiled with --with-gd. I can use some of the image functions in
PHP so why is this one undefined? What can I do to resolve it? The message
follows, in addition, I include an extract from my phpinfo() to show that I
do have GD Support fully enabled.

Fatal error: Call to undefined function: imagecreatefromjpeg()

An extract from phpinfo(); tells me the following:

GD Support enabled
GD Version bundled (2.0.15 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

What do I need to do to fix the problem?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

Fatal Error: Call To Undefined Function: Mime_content_type()
Does mime_content_type() require anything to be pre-compiled?

I'm using PHP4.3.3 with Apache 1.3.28 and the man/help page in the latest
php.chm windoze file doesn't mention any pre-requisites...

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

Fatal Error: Call To Undefined Function: Sqlgetx()
I installed script on my site and now I'm getting error:

Fatal error: Call to undefined function: sqlgetx() in /home/sharewsa/public_html/links/123454/index.php on line 36

on http://example.com/links/123454/ and also similar urls. When I refresh sumtimes it helps, also the urls like mentioned one work when entering by proxy from non USA IPs.

Fatal Error: Call To Undefined Function: Imagecreatefromjpeg()
i am getting this error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in resize.php on line 33

Php5 Fatal Error: Call To Undefined Function Xslt_create()
I recently installed wampserver which packages php5, phpmyadmin and apache. All seems to work fine except when I try to use XSL functions such as xslt_create() I receive the following error:

Fatal error: Call to undefined function xslt_create()

I've uncommented the xsl extension : extension=php_xsl.dll

phpinfo states the following :

XSL enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
EXSLT enabled
libexslt Version 0.8.5

So, I believe XSL is enabled but the functionality doesn't seem to be available to me, does anyone have any idea how I can resolve this?

Excel Writer: Fatal Error: Call To Undefined Function: SetColumn()
I have a problem that is giving me a headache!

I am using Excel Writer to create worksheets basically like so:


require_once ('Excel/Writer.php');

$f_path="/path-to-file/$filename";

$workbook = new Spreadsheet_Excel_Writer($f_path);

while($rfps=mysql_fetch_row($sheet_result))
{

//set worksheet details

$worksheet =& $workbook->addWorkSheet("Overview $rfps[1]");

$worksheet->setColumn(0,0,23);
.
.
.
.

}

If I cycle through one time, all works fine. If I cycle through more
than once, I get
"Fatal error: Call to undefined function: setColumn() in...."

Any ideas on why the function is defined the first time though, but on
the second time though it is no longer defined?

Unable To Login Fatal Error: Call To Unsupported Or Undefined Function Session_save_path()
I have a login page that once a user enters the right input, should allow him to go to a Main page. The logging in part is right (using the Username and Password), but when I log in with correct Username and Password, I get the following error:

Fatal error: Call to unsupported or undefined function session_save_path() in C:apachehtdocs/login.phtml on line 26

That line in the Phtml file reads :session_save_path("c:/");

PEAR MDB2 - Fatal Error: Call To Undefined Function MDB2_Driver_mssql::getMessage()
I have the following code that gives me this odd error message at
a line of code inside the PEAR libraries:

"Fatal error: Call to undefined function:
MDB2_Driver_mssql::getMessage(). in C:phpPEARlibMDB2.php on line
1921"

My code is a simple submit processing form for a login page:

<?php
require_once('Database/MSSQL_Constants_TEST.php');
require_once('MDB2.php');

$dsn = array(
'phptype' ="mssql",
'hostspec' =$MY_DB_HOST,
'port' =$MY_DB_PORT,
'database' =$MY_DB_NAME,
'username' =$MY_DB_USER,
'password' =$MY_DB_PASS
);
$dbh = MDB2::connect($dsn);

if (PEAR::isError($dbh)) {
echo "An error occurred while trying to connect to the database
server.<br>";
echo "Error message: " . $dbh->getMessage() . "<br>";
echo "A more detailed error description: " .......

STRANGE "Fatal Error: Call To Undefined Function..." ERROR
why strange you ask? here goes:

I have been working with Php and Mysql for a week without any problems.
Today I tried executing a php page that connects to mysql and creates a
new database, I got this error:

"Fatal error: Call to undefined function mysql_connect() in C:Program
FilesApache GroupApache2 est\_debug_tmp.php on line 3".

I did some reading on the net and checked all my configuration, and it
looks o.k. (and it already worked well a whole week before today).

The strange thing is that I have another form that inserts data into
the same database in Mysql, and it works like a charm (needless to say
but both pages log in with the same username to the same database).

Call To Undefined Function Mysql_connect()
I'm just getting started with PHP and MySQL. I installed a package
the other day to control torrents from a website (Torrentflux) but I'm
getting an error when I try to start

Fatal error: Call to undefined function mysql_connect() in
C:public_htmlTF2htmladodbdriversadodb-mysql.inc.php on line 338

Line 338 of that file is the one that starts with $this-> (the fifth one
down from here:

// returns true or false
function _connect($argHostname, $argUsername, $argPassword,
$argDatabasename) {
if (ADODB_PHPVER >= 0x4300)
(This line) $this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect,$this->clientFlags);
else if (ADODB_PHPVER >= 0x4200)
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect);
else
$this->_connectionID =
mysql_connect($argHostname,$argUsername,$argPassword);

if ($this->_connectionID === false) return false; if ($argDatabasename)
return $this->SelectDB($argDatabasename); return true;
}

Can anyone help me with this?

PHP.ini ( Call To Undefined Function: Mysql_connect() )
I am using mandrake 9.1 with PHP 4.3.1 and got some advice about using the php.ini file (which phpinfo says should be in my /etc directory but is not). I found a default one, and put it in there. Now I get this error:

Call to undefined function: mysql_connect()

Any thoughts? I am told that my php might not be talking to mysql now, but without the .ini file there it works great. Is there some other default .ini file that is used if one is not found where phpinfo is telling me that it should be? In other words, when I had no php.ini in this directory, php worked and all mysql calls worked.

Call To Undefined Function: Mysql_connect()
I am running Debian 3.0r1 with Apache 1.3.27, MySQL 3.23.49 and PHP
4.3.3RC3.
I installed Apache and MySQL when I originally installed Debian and these
work fine. I recently wanted to run some PHP scripts on my web server that
talked to a MySQL database. I installed php4 and php4-mysql using apt-get.
Unfortunatly I can't get the scripts to work. I keep getting the following
error:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/ganymede/dbtest.php on line 4

mysql.so is located in /usr/lib/php4/20010901 and so I have the following
entries at the bottom of my php.ini file:

extension_dir=/usr/lib/php4/20010901/
extension=mysql.so

I haven't been able to find any useful information on how to fix this
problem. Everything I've found so far says make sure I've installed
php4-mysql and that I have extension=mysql.so in my php.ini file, but I've
done all that.

Call To Undefined Function Mysql_connect()
I have been trying to do a query but I get

Call to undefined function mysql_connect()

What other way can I perform a query? Or do I need to get something enabled?

Newbie: Call To Undefined Function Mysql_connect()
I have this error coming up when I try to connect to mySQL.

"Call to undefined function mysql_connect()....................."

I know MySQL is working as I've been using it from DOS.
And I know PHP is working as well as I've been using it...
I suspect that there is nothing to connect MySQL to PHP though.

I notice in the MySQLadmin window that the MyOBDC connection says
"Not found
Driver 3.51 Not Found"

How Do I fix this?

PHP 5.2.1: Cli Does Load Php_mysql.dll While The Same Script Executed By Apache 2.2 Fails Call To Undefined Function Mysql_connect()
After I overcame some short_open_tag (thanks, Rik!) I encounter
another strange php-behaviour. The script I just got to work on the
windows-commandline obviously does as php.ini tells php to do and
loads php_mysql.dll:

E:ersDHCP>php ./extractLog.php
.... some mysql-stuff, some output, OK

The same script invoked by the webserver apache 2.2 entails an error:

http://localhost/extractLog.php
PHP Fatal error: Call to undefined function mysql_connect()

My configuration php.ini does contain the line extension=php_mysql.dll
and seems to be OK while I use the script from commandline. Is there
anybody who can give me a hint where to cope with this error?Christian

XML_RPC_Response Fatal Error: Call To Undefined Method Kindof
I am new to php5 programming :)

I redirect users to another server to login. After they login
successfully, they will be redirected to test.php. The server provides
xml_rpc interface so I can communicate with it. After running my
scripts, I get this error:

Fatal error: Call to undefined method XML_RPC_Response::kindOf() in /
usr/share/PEAR/XML/RPC.php on line 1972

It seems it is these two lines that cause problems:

I do get some response from the server, though.

The followings are my scripts:

test.php

<?php

error_reporting(E_ALL);
ini_set('display_errors', true);

include("cwl.php");

$test=new cwl();

$test->test();

?>

cwl.php

<?php

require 'XML/RPC.php'
error_reporting(E_ALL);
ini_set('display_errors', true);

class cwl{

private $cwlURL;
private $xmlrpcPath;
private $appID;
private $appIDPassword;
private $cwlClient;
private $sessionTicket;
private $params;.....

Fatal Error: Win2003 & Mysql_connect Function [PLEASE HELP]
I am running Win2k3 Server and when I try to use the mysql_connect
function I am getting an error:

Fatal error: Call to undefined function mysql_connect() in
C:Inetpubwwwrootprogramsindex.php on line 8

Now, I def know I've configured my php.ini correctly (its literally the
same as my XP machine) and I know that mysql works fine with PHP as I
can run it from the command line :D
I've got the files (tried in multiple places - but happiest with it in
my php & php/ext dirs with Windows path set.)
PHP 5 is running as an ISAPI (for some reason I cant get the CGI to
parse php files).
I have amended my php.ini with the doc_root, and cgi-force_redirect and
extension dir - all the permissions on my php / inetpub folders have
been given set for iusr, iwam and IWG full control (purely for
troubleshooting).
MySQL is 4.1, IIS 6.0 on Windows 2003 with PHP 5.

Fatal Error: Undefined Function: Getmxrr()
I dont know whats wrong with my script/server on my old webserver it works perfect. But when i try it on my own server (apachefriends) it dosent work PHP Code:

Fatal Error: Call To A Member Function On A Non-object
I got a very weird error message as follow.

Fatal error: Call to a member function on a non-object in D:Student Management SystemhosteldeleteResident.php on line 936081178

I understand what the error message means but why the line number is a bit ridiculous ? It just happen recently. Even I sum up all lines of whole source codes of the site, I don't think it will reach that number.

Fatal Error: Call To A Member Function On A Non-object
I have an object with some member functions and when I try to run current on an array it throws out an error stating that "Fatal error: Call to a member function on a non-object ..."

The array is created by "splitting" a string, so it is not passed in. Here is part of the code that is giving the error. PHP Code:

Fatal Error: Call To A Member Function GetRowAssoc()
This message has recently been coming up when responding to posts via PnPHPbb2 and postnuke. I have been running it fine for about a year, and just the past 2 weeks or so this has been hapening. It seems to be random.  Sometimes it works, sometimes it doesnt.

Fatal error: Call to a member function GetRowAssoc() on a non-object in /home/thetwist/public_html/modules/Xanthia/pnuserapi.php on line 548

Fatal Error: Call To A Member Function On A Non-object
I am getting this error

Warning: main(languages/): failed to open stream: No such file or directory in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 17

Warning: main(): Failed opening 'languages/' for inclusion (include_path='.:/usr/local/lib/php') in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 17

Fatal error: Call to a member function on a non-object in /home/lunar/domains/lunarbattles.com/public_html/sched_xenobe.php on line 25

I can fix the languages thing, but the fatal error below is the file with line 25 marked, can somone give me a clue what its saying or look for some inproper usage or somthing. Code:

Fatal Error: Call To A Member Function On A Non-object In Constructor?
I'm having a problem that I have a hard time understanding. I am getting a
"Fatal error: Call to a member function on a non-object" on a constructor
of a class, that looks like this (simplified):

class phpBB_Template {
var $classname = "Template";

// Root template directory.
var $root = "";

/**
* Constructor. Simply sets the root dir.
*
*/
function phpBB_Template($root = ".")
{ /* Error is reported on this line */
$this->root = $root;
}
}

The line where the error is reported only contains the function's opening
accolade. As far as I understand, this error should only occur if I try to
access a function on a variable that is not an object, but the only
variable I am accessing, is $this, and that one is by definition an object,
right?


Copyright © 2005-08 www.BigResource.com, All rights reserved