Active
Project:
Drupal Ladder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jun 2012 at 16:09 UTC
Updated:
22 Feb 2018 at 13:14 UTC
Jump to comment: Most recent
Cannot complete the first rung of the ladder. Getting hung up on section 3. The launch hangs on the Database configuration page. (Set up database step). I get the following error: Parse error. Syntax error, unexpected '=', expecting ',' or ')' in C:\sites\drupalladder\sites\drupalladder.localhost\settings.php online 571
I have repeated the first ladder rung installing Drupal 7.14 and it works fine.
Comments
Comment #1
kay_v commentedI'm able to reproduce the issue @hatcat describes. Placing it in the Drupal core project queue, changing the priority to normal.
@hatcat's summary refers to the Drupal Ladder project, but the issue is not specific to Drupal Ladder.
After addressing other items on the Ladder that led me to this issue, I'll do some troubleshooting to see if the installation issue is specific to Dev Desktop.
Comment #2
kay_v commentedLooks as if the issue is specific to Dev Desktop (using latest version: 7.14.14 on Mac). I am moving the issue back to the Ladder issue queue in case others have the same problem following the instructions there. I will also file a bug report on Acquia's Dev Desktop forum.
Comment #3
BoJoe22 commentedThe issue referred to in the error on line 571 of settings.php is syntactically incorrect. This line of code is autogenerated by the Acquia Dev Desktop Control Panel to do what it claims is a D7 DB Config. In what I am seeing generated, there are 3 checks for $databases = NULL; without closing the logical statement. It appears to have been generated incorrectly. Not sure about the intention of what was supposed to be generated here.
As a workaround, I was able to just comment out the if check and Drupal installed just fine on the Dev Desktop.
Comment #4
CamillaHermann commentedNew to Drupal and having this same issue - I tried to comment out the if check but got the same error. Perhaps I took out too much? Here's what I have:
///////////////////////////////////////////////////////////////////////
// Don't edit anything below this line! //
// This section is autogenerated by Acquia Dev Desktop Control Panel //
///////////////////////////////////////////////////////////////////////
//<@@ADCP_CONF@@>
$base_url = 'http://mydrupal8.localhost:8082';
//D6 DB config
$db_url = 'mysqli://drupaluser@127.0.0.1:33066/mydrupal8';
//D7 DB config
//if( !isset($databases = NULL;$databases = NULL;
//$databases = NULL;
//
Comment #5
hatcat commentedI think you just need to comment out the 'if', but I'm new too.
//if( !isset($databases = NULL;$databases = NULL;
//$databases = NULL;
//
Let me know if that works. : )
Comment #6
CamillaHermann commentedThat's what I've done but perhaps it was not in the correct file? I deleted the original system.php in the drupal8 downloaded file and replaced with a settings.php file that has the if check commented out. Didn't work.
I also tried editing the settings.php file in the new database I created on dev desktop. Still not working. I think I don't know enough to know what I'm doing wrong...? I guess my question at this point is about the process of commenting out the if check - what specific system.php file do I need to be changing? Any advice would be much appreciated!
Comment #7
BoJoe22 commentedIt's very well possible that commenting out that if statement won't work for everyone. I'm not sure what the if check was supposed to do.
I ended up locating the appropriate settings.php file by modifying the exact file that was specified on the error page.
Comment #8
damienmckennaCould the problem be that a completely invalid line is being generated somehow? The if() lines listed in #4 above are not valid PHP.
Comment #9
BoJoe22 commentedYes @DamienMcKenna. That is definitely not valid code. However, that is generated code. The root cause for the issue exists some place where that code is generated.
Comment #9.0
BoJoe22 commentedAccidentally put in an extra '\' before settings.php