I'm scratching my head over this. I upgraded to 5.x-2.16 and when visiting the mysite page (mysite/N/view) I'm getting that message. It appears the only way to get that message is from this code:
function mysite_get_includes($type = NULL, $name = NULL, $reset = FALSE) {
...
if (empty($includes[$key])) {
mysite_plugin_failure($type, $name);
}
return $includes[$key];
}
Comments
Comment #1
agentrickardThis may be related to http://drupal.org/node/208276, as these are both administrative error messages that occur when plugin files cannot be found.
It is possible that some of your plugin files are missing or unreadable by the webserver. Check the directory 'mysite/plugins/types' to make sure that all the necessary files are present.
Do you have any custom plugin files? Were you using any plugins from the 'contrib' folder?
Are the same plugins activated (through the module configuration screen) that were before?
Comment #2
reikiman commentedI found a solution... and have a question.
I'd inserted some drupal_set_message calls to see what the values are.. and at the if statement $key = 'name' whereas $key should have had a value like $type-$name (as set a few lines above). There is a line, $includes[$key] = file_scan_directory ... which includes a function call where the arguments are passed using "$key = 'name'" notation.
I changed that to be just passing 'name' rather than "$key = 'name'"
And now mysite is working fine. Well, I haven't fully tested it. I have gone through a lot of the screens and they are functioning properly.
My question is, is this "function($var = 'value')" notation a PHP5-ism? But I couldn't find this notation documented in the PHP online manual.
To address your questions:
Do you have any custom plugin files? Were you using any plugins from the 'contrib' folder?
Are the same plugins activated (through the module configuration screen) that were before?
I haven't added any custom plugins, and the module directory contents is exactly the same as the 5.x-2.16 distribution.
I may have some plugins enabled, there doesn't seem to be a page that lists the plugins and which are enabled, so I'm not certain of this.
Comment #3
agentrickardthere doesn't seem to be a page that lists the plugins and which are enabledThat is the MySite settings page: 'admin/settings/mysite' -- this is the most prominent part of the admin UI.
$var = 'value' is not PHP5; I run this code on both PHP 4 and 5. You can keep variable names in function calls for readability.
Let's consolidate this issue over at http://drupal.org/node/208273.