Problem

After installing the DHL Versenden (Shipping) module, this error occurs:

Parse error: syntax error, unexpected '[' in .../app/code/community/Dhl/Versenden/Model/Observer.php on line 99


Cause

This is caused by an outdated PHP version (probably 5.3 or older). In such old PHP versions, it is not possible to dereference results of a function call directly, see the PHP documentation. Therefore, the code in the above file Observer.php on line 99 cannot work.


Solution

PHP needs to be upgraded to a supported version. Note the requirements of Magento and the DHL Versenden (Shipping) module, see the documentation.


There is no guarantee that the DHL Versenden (Shipping) module will work correctly in an unsupported PHP environment.