Closed (works as designed)
Project:
Configuration Management
Version:
7.x-2.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2013 at 17:33 UTC
Updated:
17 Jul 2013 at 13:00 UTC
I have had to uninstall Configuration Management module as I got "Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /var/sites/s/mydomain/public_html/sites/all/modules/contrib/configuration/configuration.module on line 8". This did not show up immediately but only after I moved my development files/database to a separate staging server.
The line referred to is line 8 of the file 'configuration.module':
<?php
/**
* @file
* API for Configuration Management module.
*/
use Drupal\configuration\Config\ConfigurationManagement;
/**
* Implements hook_stream_wrappers().
*/I am not sure if 'use Drupal\configuration\Config\ConfigurationManagement;' should be a comment or what but it doesn't look right to me.
Using core 7.22.
Comments
Comment #1
dagmarThat line is correct, is used by xautoload to load the class ConfigurationManagement that is used later.
I'm sorry but I cannot replicate your issue. Try installing devel module and configure it to use backtrace errors. Maybe you can provide more information with this option.
Comment #2
bojanz commentedThat install is not using PHP 5.3, so PHP is not recognizing the namespace syntax.
Comment #2.0
bojanz commentedTo clarify line 8.