Parse Error

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

dagmar’s picture

Status: Active » Postponed (maintainer needs more info)

That 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.

bojanz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

That install is not using PHP 5.3, so PHP is not recognizing the namespace syntax.

bojanz’s picture

Issue summary: View changes

To clarify line 8.