logo

Member
Member
Offline Offline
Posts: 9
parse error

trying to install eocms on my site and get an error with the install.php file

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'  in the functions/class.phpmailer.php file
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: parse error

It means your PHP version needs updating. eoCMS requires at least PHP 5, a check has been added into the installer for next release to prevent people with a php version less than 5 from installing

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 9
Re: parse error

ahhhh, thanks.

I had lots of problems with it on my 110mb account with sqlite, I thought I would try it with my other host using myslq instead.
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: parse error

It would be very helpful if you could state what problems you had using SQLite

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: parse error

this seems to happen quite a bit, maybe some sort of output saying upgrade your PHP. you coulb use a try catch pair to do it.. (theoretically)

Member
Member
Offline Offline
Posts: 9
Re: parse error

got another one

Warning: mysql_connect() [function.mysql-connect]: Too many connections in ********/config.php on line 9
eoCMS was unable to connect to the database
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: parse error

thats really strange... Could you post your config.php and censor all the sensitive details?

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 9
Re: parse error

Code:

<?php
define('DB_HOST', '*');
define('DB_USER', '*');
define('DB_PASS', '*');
define('DB_NAME', '*');
define('DB_TYPE', 'mysql');define('COOKIE_NAME', 'eoCMS');//only change if using multiple installations of eoCMS
$_QUERIES=0;
if(DB_TYPE == 'mysql') {
$con = mysql_connect(DB_HOST, DB_USER, DB_PASS);
if(!$con) {
die('eoCMS was unable to connect to the database');
}
$select = mysql_select_db(DB_NAME);
if(!$select) {
die('eoCMS was unable to select to the database');
}
}
elseif(DB_TYPE == 'sqlite') {
$con = sqlite_open(DB_LOCATION, 0666, $sqliteerror);
if(!$con) {
die('eoCMS was unable to connect to the database');
}
}
?>

put it in [code] tags so its easier to read
Last Edit: 19th May, 2009, 08:19:33 AM by confuser
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: parse error

Hmm your config looks fine, I think you are getting that error because the server you are on, already has its maximum allowed connections to it

Please do not PM me requesting support or anything, use the forums, thats what they are here for
Member
Member
Offline Offline
Posts: 9
Re: parse error

thanks

one more question about the themes, my new host doesn't allow for files with spaces, and there are 5. Is there a reference to them ONLY in the style.css?

default/images/admin panel button.png
default/images/admin panel buttono.png
egi/images/admin panel button.png
energy_blue/images/admin panel button.png
energy_blue/images/admin panel buttono.png
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: parse error

They might be mentioned somewhere in the layouts as well... Confuser?

Seen a bug? Report it!
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 242
banancanardbanancanard@live.com
Re: parse error

Well, any spaces should be removed, changed to either _ or - or somehow replaced as it is bad practice to have the spaces, not to mention just annoying. lol

"Control yourself. Take only what you need from it"
http://mrrsm.com
Member
Member
Offline Offline
Posts: 144
Re: parse error

Hmm your config looks fine, I think you are getting that error because the server you are on, already has its maximum allowed connections to it


Your a clever one Tongue
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: parse error

Quote:
Well, any spaces should be removed, changed to either _ or - or somehow replaced as it is bad practice to have the spaces, not to mention just annoying.
spaces are fine, but they need to be referenced with %20 not " "..

IF I get round to thinning down repetition, I would also try to standardize "default layout" naming conventions, and if they are kept inline with ID and CLASS names, then they cant/wont have spaces


Jump to:


0.05 seconds Queries: 13