Welcome, Guest. Please Login or Register.
November 24, 2024, 09:25:00 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Parse Error on new install « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Parse Error on new install  (Read 626 times)
Rahven
Noobie
*
Posts: 8


All your llama are belong to us!

Parse Error on new install
« on: March 02, 2003, 11:42:45 PM »
Reply with quote

phpinfo link

That's my php info, as you can see, the minimum requirements are met, and I'm not running in safe mode. I currently have a board up and running, recently upgraded to 1.5.1 with no problems. I wanted to install this board as a test board for layout changes and what not.

Not sure what the problem could be, but this is the error message:

Parse error: parse error in /home/cohtop/public_html/yabbse_test/install.php on line 649

and this is line 649 (according to my editor):

$linkid = mysql_connect($db_server, $db_user, $HTTP_POST_VARS['password3']) or return !print '

I'll be more than happy to give more info if necessary, and any help would be greatly appreciated.

Thanks in advance,
Rahven
Logged

So it was more interesting acting with insane people with knives in their hands... that's where you're not really acting, you're like 'Get that knife away from my face.
-Bruce Campbell
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Parse Error on new install
« Reply #1 on: March 03, 2003, 12:11:39 AM »
Reply with quote

Odd... it shouldn't have any problems... oh, well - try this:

Search:
   $linkid = mysql_connect($db_server, $db_user, $HTTP_POST_VARS['password3']) or return !print '
   <font color="red">
      Unable to connect to the MySQL server.  Check your password and try again.<br />
   </font>';
   mysql_select_db($db_name, $linkid) or return !print '
   <font color="red">
      Unable to connect to the database.  Check that the user is allowed to access that database.<br />
   </font>';


Replace:
   $linkid = mysql_connect($db_server, $db_user, $HTTP_POST_VARS['password3']) or return (!print ('
   <font color="red">
      Unable to connect to the MySQL server.  Check your password and try again.<br />
   </font>'));
   mysql_select_db($db_name, $linkid) or return (!print ('
   <font color="red">
      Unable to connect to the database.  Check that the user is allowed to access that database.<br />
   </font>'));


-[Unknown]
Logged
Rahven
Noobie
*
Posts: 8


All your llama are belong to us!

Re:Parse Error on new install
« Reply #2 on: March 03, 2003, 12:25:06 AM »
Reply with quote

Thanks [Unknown], I replaced the section of code that you posted, with the new code, and I'm still getting the same error. I went so far as to CHMOD all the files and directories to 777 and still no luck.

I think I'm going to try to install 1.5.0, then upgrade. Theoretically that shouldn't make a difference. I can't help but think that this must be a very odd error, as I couldn't find a similar post on this forum.

And in case you were wondering about M$ characters in the code, there shouldn't be, I edited install.php in HomeSite 5, to My knowledge, that doesn't insert any odd characters.

Would be nice to find out what I did wrong though...

install.php was uploaded in ASCII, and yse151.ya was uploaded in Binary as per the instructions.

I guess I'll be back if I cant get 1.5.0 to install

Thanks,
Rahven
Logged

So it was more interesting acting with insane people with knives in their hands... that's where you're not really acting, you're like 'Get that knife away from my face.
-Bruce Campbell
Rahven
Noobie
*
Posts: 8


All your llama are belong to us!

Re:Parse Error on new install
« Reply #3 on: March 03, 2003, 12:35:42 AM »
Reply with quote

the 1.5.0 install went off without a hitch, as did the upgrade. Not sure what the problem the 1.5.1 installer and I are having, lol
Logged

So it was more interesting acting with insane people with knives in their hands... that's where you're not really acting, you're like 'Get that knife away from my face.
-Bruce Campbell
Tracy
Noobie
*
Posts: 21


I'm not a llama!

Re:Parse Error on new install
« Reply #4 on: March 03, 2003, 01:04:46 AM »
Reply with quote

I have to admit. I am having the same problems with the parse error on line 649 which is:

  $linkid = mysql_connect($db_server, $db_user, $HTTP_POST_VARS['password3']) or return !print '


:(

Tracy
« Last Edit: March 03, 2003, 01:12:52 AM by Tracy » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Parse Error on new install
« Reply #5 on: March 03, 2003, 01:27:55 AM »
Reply with quote

Try to download the package again.  I uploaded a new version of the installer that handles those two errors differently.

-[Unknown]
Logged
Rahven
Noobie
*
Posts: 8


All your llama are belong to us!

Re:Parse Error on new install
« Reply #6 on: March 03, 2003, 02:09:45 AM »
Reply with quote

Whatever you did seems to have cleared up the problem, I haven't clicked on everything yet, but it installed without a hitch...

Thanks much [Unknown]

-Rahven
Logged

So it was more interesting acting with insane people with knives in their hands... that's where you're not really acting, you're like 'Get that knife away from my face.
-Bruce Campbell
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Parse Error on new install
« Reply #7 on: March 05, 2003, 05:33:43 PM »
Reply with quote

Ok. I just found another host (Portland Communications - portland.co.uk) and when I try to run the install for 1.5.1, I get the following error:

Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /host/o/l/d/p/o/r/oldiesmann.port5.com/install.php on line 574

According to Notepad, Line 574 is:

require_once ($HTTP_POST_VARS 'installdir'] . '/Settings.php');

Any idea what the problem could be?
« Last Edit: March 05, 2003, 05:41:25 PM by oldiesmann » Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Parse Error on new install
« Reply #8 on: March 06, 2003, 12:30:21 AM »
Reply with quote

Looks like a connection error.  You might either download the file again, or replace that line with:

require_once ($HTTP_POST_VARS['installdir'] . '/Settings.php');

However, realize that one error might mean more.

-[Unknown]
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Parse Error on new install
« Reply #9 on: March 06, 2003, 04:22:01 PM »
Reply with quote

Well, I went through the entire install.php file and that's exactly what that line says. I can't get it to install (the regular version anyway).
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Parse Error on new install
« Reply #10 on: March 07, 2003, 01:27:25 AM »
Reply with quote

Quote from: oldiesmann on March 06, 2003, 04:22:01 PM
Well, I went through the entire install.php file and that's exactly what that line says. I can't get it to install (the regular version anyway).

Download a new one.  That's what I meant.

What I mean by connection error is that it seems like your download was messed up.  The file should not have that line.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Parse Error on new install « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.200 seconds with 21 queries.