https://www.icyphoenix.com/viewtopic.php?f=35&t=8749
-----------------------------------
mad2
Sun 21 Oct, 2012 14:51

Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
Hello friends,

I have a problem with the upgrade to 2.0 version of IP. (My version is 53b)

I do all the steps to the instructions, but the problem comes when I launch the "convert_utf8_nodbal.php" file.  The error is:

[b]Parse error: syntax error, unexpected '(', expecting '}' in /web/htdocs/www.forosdedebate.com/home/convert_utf8_nodbal.php on line 41[/b]

I downloaded adn uploaded the same "convert_utf8_nodbal.php" of diferent "mirrors" of the annunnce of MG

http://www.icyphoenix.com/viewtopic.php?f=1&t=8585

but the same error keeps coming  :roll: 

Thanks in advance  :wink:


-----------------------------------
mort
Sun 21 Oct, 2012 15:40

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
Line 41 should look like this?

[code linenumbers=false]$sql = "ALTER DATABASE {$db->real_escape_string($dbname)}[/code]


-----------------------------------
TheSteffen
Mon 22 Oct, 2012 22:14

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
The file should be fine: convert_utf8_nodbal.php

Remeber to copy it into directly into root [b]NOT[/b] install/convert_utf8_nodbal.php


-----------------------------------
mad2
Wed 24 Oct, 2012 09:25

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
Thanks for reply.

Correct. Yes, I tried to run it on root and /install. But none worked. :roll:


-----------------------------------
Limun
Wed 24 Oct, 2012 11:20

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
i m not sure but do you have your config.php also in root dir when you lunch convert_utf8_nodbal

for me when i try lunch convert_utf8_nodbal without config.php i got blank page


-----------------------------------
mort
Wed 24 Oct, 2012 14:09

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
@ mad2

You appear to have your forum in the public_html, rather than in a folder by itself.

And this is a guess - - But it does appear to be a path problem?

Open convert_utf8_nodbal.php

Find this line:

[code linenumbers=false]if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');[/code]

Change it to:

[code linenumbers=false]if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', '');[/code]

Put the convert_utf8_nodbal.php in the same place as config.php and try once more. ;)


-----------------------------------
Mighty Gorgon
Sat 17 Nov, 2012 12:06

Re: Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)
-----------------------------------
Did you solve it?


