PHP error in method csvExportTermUsageTask

17 views
Skip to first unread message

Marcelo Moro Brondani

unread,
Feb 28, 2018, 8:07:31 AM2/28/18
to AtoM Users
when running the "php symfony cc" command, the following error appeared:

PHP Fatal error:  Call to undefined method csvExportTermUsageTask::addCoreArgumentsAndOptions() in /usr/share/nginx/atom/lib/task/export/csvExportTermUsageTask.class.php on line 38

how can I solve?
AtoM 2.3.1

Sorry for my English!!

Dan Gillean

unread,
Feb 28, 2018, 11:33:06 AM2/28/18
to ICA-AtoM Users
Hi Marcelo, 

Interesting, I've not seen this error before. It is strange that clearing the cache should return errors from another unrelated task - this suggests there might be a deeper problem in your AtoM installation. Can you please remind me about your installation environment? Specifically:
  • Have you followed our recommended installation instructions?
    • If yes, are you using Ubuntu 14.04 or Ubuntu 16.04?
    • If no,  what changes have you made in your installation?
  • What version of PHP do you have installed?
Are you by chance mid-way through an upgrade to 2.4 or something? Because the file referenced in the error message ( lib/task/export/csvExportTermUsageTask.class.php ) does not actually exist in AtoM 2.3.1! It was added for the 2.4 release. See for example: 
Can you also check the full installation version listed in Admin > Settings > Global?

Anything else you think we should know about your AtoM installation, and the actions that lead up to the error, are welcome! 

One thing you could try is manually deleting the cache contents, restarting services, and seeing if that resolves the issue. The cache directory should be just below your root AtoM directory, make sure you change to your root AtoM directory (which, if you followed our recommended installation instructions, is located at /usr/share/nginx/atom) before running the following: 
  • sudo rm -rf atom/cache/*
You'll want to restart PHP-FPM and memached after. On Ubuntu 14.04: 
  • sudo service php5-fpm restart
  • sudo service memcached restart
On Ubuntu 16.04: 
  • sudo systemctl restart php7.0-fpm
  • sudo systemctl restart memached
Hopefully now you can rerun the cache-clear command without further errors. Let us know how it goes! 

Regards, 



Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/2ca02491-9dd4-4fba-b4e2-c31dd0b8eba3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages