logo

Member
Member
Offline Offline
Posts: 4
Error on install

Hi, I hope this is the correct place to post this...not sure if it's a bug or just me...if not can a mod please move it?

I navigated to my URL to install and was immediately presented with this:

Code:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/35/d255205382/htdocs/testing2/functions/class.phpmailer.php on line 45


I looked at the class.phpmailer.php file, but I honestly don't know where this missing curly bracket is supposed to go.

Here is the offending section of that file:

Code:
class PHPMailer {

  /////////////////////////////////////////////////
  // PROPERTIES, PUBLIC
  /////////////////////////////////////////////////

  /**
   * Email priority (1 = High, 3 = Normal, 5 = low).
   * @var int
   */
  public $Priority          = 3;

  /**
   * Sets the CharSet of the message.
   * @var string
   */
  public $CharSet           = 'iso-8859-1';

  /**
   * Sets the Content-type of the message.
   * @var string
   */
  public $ContentType       = 'text/plain';


Thank you.
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: Error on install

Hmm i remember someone getting an error with the phpmailer class in the 0.8.1 beta, let me try and find it

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: Error on install

What version of PHP is your server running? eoCMS requires at least PHP 5...
Found the post with the same error too, might be the phpversion.
http://eocms.com/index.php?act=viewtopic&id=290#1789
If unsure make a new php file and add the following
Code:
<?php phpinfo(); ?>

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: Error on install

Shouldn't you incorporate a check for PHP 5+ into the installer to stop people wasting their time installing it first?

Seen a bug? Report it!
Member
Member
Offline Offline
Posts: 4
Re: Error on install

Ah, I'm sure that's exactly the problem...my server host runs PHP 4.x unless I modify the .htaccess.  I'll try that and get back with result.

Thanks.

EDIT:  Yes, adding

Code:
AddType x-mapp-php5 .php
to .htaccess did the trick.

Thank you for your help. 
Last Edit: 30th April, 2009, 05:34:10 PM by van71
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: Error on install

this should be documented in a Troubleshooting Guide.. (along with 1 or 2 other things..)

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: Error on install

Ok, i will add it to the installer later today

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: Error on install

maybe an article too (when those other tid bits are found, I have some for the db stuff, MS SQL in particular)

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: [Fixed] Error on install

Ok added check to installer so fixed!

Please do not PM me requesting support or anything, use the forums, thats what they are here for

Jump to:


0.07 seconds Queries: 13