This issue occured when I was trying to run the Resource Taxonomy test:
Fatal error: Call to undefined function ctools_export_crud_save() in .../services/services.module on line 278
Function services_endpoint_save() calls ctools_export_crud_save(), but it looks like file with this function is not included in this case.

Comments

valdo’s picture

Status: Active » Needs review
StatusFileSize
new702 bytes

Attached patch to fix this issue. I have added ctools_include('export'); to services_endpoint_save(), and also to services_endpoint_delete() where it was also missing and could lead into the same error in future.

marcingy’s picture

Status: Needs review » Postponed (maintainer needs more info)

Tests past on d.o bot without this patch....

valdo’s picture

I'll re-test locally again, I'll try to run the full test for this module, previously I did just the single Resource Taxonomy test (I did it on a clean Drupal install, with only the necessary modules enabled).
Though I think those includes should there be anyway (as they are in other functions which use ctools_export_* functions, e.g. services_endpoint_new(), services_endpoint_load(), services_endpoint_load_all() etc.).
Right now if I need for some reasons to call that function from my custom module, I get the fatal error anyway.
If there is a reason why it should not be included then ok.

kylebrowning’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)