Ctools_plugin_api_include() will require_once a file that is in $module_path/$file, if it exists. If not, it will check if DRUPAL_ROOT/$file exists, however will mistakenly load $module_path/$file (non-existent file) -- resulting in a fatal error.

This patch will include the intended file.

Now, I don't necessarily think it's a good idea to put your plugins in the Drupal root in the first place, but it looks like that was an intended feature of this function -- despite faulty ;)

CommentFileSizeAuthor
ctools-require-fail.patch550 byteshelior

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! Thanks!

Status: Fixed » Closed (fixed)

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