| Project: | Cache Router |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I am getting below error while using the 7.x-1.x-dev version available for cacherouter.
[15-Mar-2010 11:40:16] PHP Parse error: syntax error, unexpected '[', expecting T_PAAMAYIM_NEKUDOTAYIM in C:\inetpub\wwwroot\drupal\modules\cacherouter\CacheRouter.php on line 46
This is because of below code (line 46 in the file CacheRouter.php):
if (isset(conf['cacherouter']['default'])) {
$default_options = conf['cacherouter']['default'];
}
See the missing '$' in the variable name. The correct and modified code is:
if (isset($conf['cacherouter']['default'])) {
$default_options = $conf['cacherouter']['default'];
}
This stops any cache to be initialized properly and drupal site doesn't load.