Syntax Error 41 During Installation To 2.0 (convert_utf8_nodbal.php)


Subject: 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:

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

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:

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

Code: [Download] [Hide] [Select]
$sql = "ALTER DATABASE {$db->real_escape_string($dbname)}

Profile PM  
Subject: 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 NOT install/convert_utf8_nodbal.php

Profile PM  
Subject: 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:

Subject: 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

Subject: 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: [Download] [Hide] [Select]
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');


Change it to:

Code: [Download] [Hide] [Select]
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', '');


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

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


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9581s (PHP: 2% SQL: 98%)
SQL queries: 13 - Debug Off - GZIP Enabled