Parse error at line 1145
Opened this issue · 3 comments
Deleted user commented
While using the console for baking Views and Controller the following alert occurred:
Parse error: parse error, expecting T_VARIABLE' or
'$'' in /htdocs/plugins/meio_upload/models/behaviors/meio_upload.php on line 1145
- @Version 2.1
- @lastmodified 2010-01-03
1144 foreach ($this->__fields[$model->alias][$field]['thumbsizes'] as $size => &$config) {
1145 $file = &new File($dir . DS . $size . DS . $filename);
1146 $file->delete();
1147 }
Maybe I am blind, but I am unable to get it. Any ideas?
jrbasso commented
Are you using PHP 4? Try remove & from line 1145 and see if solve your problem.
Deleted user commented
I am using PHP Version 5.3.2 in a MAMP 1.9 environment...