/admin/config/search/facetapi_pretty_paths raises this error:

Fatal error: Call to undefined function ctools_get_plugins() in .../sites/all/modules/facetapi_pretty_paths/facetapi_pretty_paths.module on line 206

I'm using 7.x-1.6 of Chaos Tools in case it's relevant (I don't think it is)

Anyway I fixed this in my install by adding

ctools_include('plugins');

to facetapi_pretty_paths.module on the line immediately before ctools_get_plugins() gets called.

CommentFileSizeAuthor
#2 2420325-3.patch546 bytesLendude
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cayerdis’s picture

Same issue for me, 500 error . However, if I put ctools_include('plugins'); before line 206 works for me

Lendude’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
546 bytes

Here is the patch for this.

I put the include call outside the foreach to avoid unnecessary calls.

Set to critical, 'cause it is.....

Dr.Osd’s picture

Thanks, working!

pslcbs’s picture

Works for me too, thanks!

  • Lendude authored 2363e1e on 7.x-1.x
    Issue #2420325 by Lendude: facetapi_pretty_paths causes error: undefined...
dasjo’s picture

Status: Needs review » Fixed

Committed, thanks!

creathing’s picture

Hi,

I've installed this patch, but it is still not working.
When I visit the page /admin/config/search/facetapi_pretty_paths, I still get a blank screen.
I'm getting a 500 internal server error.

Lendude’s picture

@creathing did you try using the DEV version? This already has the fix in place. If that doesn't help, could you try switching on PHP error reporting to see if the white screen is still due to the same error?

creathing’s picture

Yess!! Installed the dev version and it is working fine now. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Upchuk’s picture

I think this should make its way into a release as soon as possible. It's quite a big bug that makes the module unusable and using dev releases on production sites is never a good idea.

Thanks for all the work!

dasjo’s picture

Yes, indeed. Created a new release:
https://www.drupal.org/node/2461467

Lendude’s picture

Excellent! Keep up the great work!