Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Parse error
Kefio
Posted on 23 Jul 2010, 16:58:08

Access: Member
Total Posts: 2
Joined: 2010-07-23

Hi All,
i have a problem installing this powerfull script.
I upload the files then set the db.php to 777 , navigate to the install/ folder and get thi error:

Parse error: syntax error, unexpected '{' in /web/htdocs/www.mydomain.com/home/news/install/index.php on line 346


host server php version is 5.2.13
in local i have no problem.
Can anybody help me?
Thank you in advance!

kefio
#2747
Chris
Posted on 23 Jul 2010, 17:00:58

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Edit install/index.php, line 346~ remove this block of code

Code:
                        try{
                            $connection = new PDO("mysql:host=$dbserver;dbname=$dbdatabase",$dbusername,$dbpassword);
                        }catch(PDOException $pe){
                            $servererror = $pe->getMessage();
                            $c = false;
                        }


Save and try installing
#2748
Kefio
Posted on 23 Jul 2010, 17:54:07

Access: Member
Total Posts: 2
Joined: 2010-07-23

Quote:
Edit install/index.php, line 346~ remove this block of code

Code:
                        try{
                            $connection = new PDO("mysql:host=$dbserver;dbname=$dbdatabase",$dbusername,$dbpassword);
                        }catch(PDOException $pe){
                            $servererror = $pe->getMessage();
                            $c = false;
                        }


Save and try installing

thank you Chris!
it works!
#2749
Network-13.com © 2013