smtp_email.php has syntax error?
Posted by Stella
|
smtp_email.php has syntax error? January 07, 2008 03:03PM |
Registered: 2 years ago Posts: 10 |
When trying to register, I get an error warning; "Unexpected { in line 27"
Which is highlighted in red here:
Can anyone help? Thanks!
Which is highlighted in red here:
function phorum_smtp_send_messages ($data)
{
$PHORUM=$GLOBALS["PHORUM"];
$from = $data['from'];
$addresses = $data['addresses'];
$subject = $data['subject'];
$message = $data['body'];
$num_addresses = count($addresses);
$settings = $PHORUM['smtp_mail'];
$settings['auth'] = empty($settings['auth'])?false:true;
if($num_addresses > 0){
try {
// include the swiftmailer-class
require_once SWIFT_DIRECTORY."/Swift.php";
require_once SWIFT_DIRECTORY."/Swift/Connection/SMTP.php";
I looked at the older smtp_mail.php, but it calls for a different mail plug-in. I know enough PHP to recognise it when i see it, but not anything like enough to figure out what's gone wrong!
Can anyone help? Thanks!
|
January 07, 2008 03:07PM |
Admin Registered: 7 years ago Posts: 7,734 |
You are running PHP4 and that module requires PHP5 (like the full phorum-5.2 does too).
Thomas Seifert
Phorum Development Team / Phorum-Support.de
Custom Phorum Development
Personal Blog
Thomas Seifert
Phorum Development Team / Phorum-Support.de
Custom Phorum Development
Personal Blog
|
Re: smtp_email.php has syntax error? January 07, 2008 03:13PM |
Registered: 2 years ago Posts: 10 |
|
January 07, 2008 03:14PM |
Admin Registered: 7 years ago Posts: 7,734 |
why not upgrading to php5? most hosts offer that, even more as php4 is end-of-life shortly.
like I told about the server errors already, would need to know the error tell what its about, could be an old mysql-version too.
Thomas Seifert
Phorum Development Team / Phorum-Support.de
Custom Phorum Development
Personal Blog
like I told about the server errors already, would need to know the error tell what its about, could be an old mysql-version too.
Thomas Seifert
Phorum Development Team / Phorum-Support.de
Custom Phorum Development
Personal Blog
|
Re: smtp_email.php has syntax error? January 07, 2008 03:28PM |
Registered: 2 years ago Posts: 10 |
Sorry, only registered users may post in this forum.