CSV import breaks when php 5.3 is used in AtoM 2.2
|Assignee:||Dan Gillean||% Done:|
|Target version:||Release 2.2.1|
|Google Code Legacy ID:||Tested version:||2.2|
Based on this user report by Zac Howarth, in the user forum: https://groups.google.com/d/msg/ica-atom-users/-kKNkmVTBWU/JjRkA3VREgAJ
The following error was reported:
PHP Fatal error: Cannot access parent:: when no class scope is active in [atom-path]/lib/task/import/csvImportTask.class.php on line 1024
According to Jesus (and copied by me to the forum):
...the code in question all runs within a closure, and PHP 5.3 does not support class scope in closures. We recommend upgrading to PHP 5.5, which is the default PHP version included in Ubuntu 14.04. If you are still running 12.04, you can update your PHP version easily via this ppa:ppa:ondrej/php5
Zac has confirmed that the PHP upgrade resolved the issue.
However, Jesus notes that we should not be changing the requirements post-release. Since the new treeview will require at least PHP 5.4+ in AtoM 2.3, we will update the 2.3 requirements, but he suggests that we fix this issue for the 2.2.1 release, and maintain compatibility with our current requirements recommendations.
Assigning to him, because it was his brilliant idea :)