Jump to content

Fatal error: Call to undefined function () in


Vivid Lust

Recommended Posts

The line of code you posted out of context does not produce that error (tested). I put that line into a valid class definition/method definition and that line is syntactically correct.

 

Something prior to that is causing the error.

function send($loggedEmail,$subject,$message,$recipientID)

{

$this->subject = $subject;

$this->message = $message;

 

echo "s".$this->subject;

echo "m".$this->message;

 

if( ($this->subject == "") || ($this->message == "") ){

echo "apps";

}

 

}

 

 

if( isset($_POST['sendForm']) ){

$message->send($_POST['email'],$_POST['subject'],$_POST['message'],$recipient->id);

}

 

class message

{

 

var $recipientID; //id of member message is being sent to

var $errorCount; // how many errors have been found

var $error = array(); // array of he errors found

var $subject; // subject of the message

var $message; //the message that is being sent

 

function __construct()

{

$errorCount = 0;

}

 

function send($loggedEmail,$subj ... ... .. ...

it would help if you would 1. post all relevant code so we can count lines to the error line and work backwards, and 2. post the complete error, including error line number. without more information we can only guess, which is a terrible way to debug.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.