Drupal 7.50 and the "missing from the file system" warning: Solution

293 views
Skip to first unread message

slanger

unread,
Jul 13, 2016, 1:42:19 PM7/13/16
to islandora
On July 7, 2016, Drupal 7.50 was released. With it, a new warning was introduced into core, one that appears whenever Drupal attempts to find a module or theme in the file system, but cannot.

Because of this, any site using an official D7 release of Islandora will immediately be inundated with the following error message once core is updated:

User warning: The following module is missing from the file system: schema _api. In order to fix this, put the module back in its original location. For more information, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of [REDACTED]\includes\bootstrap.inc).

This is because of a small coding error in the Islandora XML Forms module (in the documentation, look under the heading "There is a bug in a module installed on your site" for more information). The attached patch will fix the problem.

It appears that this coding error was already corrected by jordandukart 2 days ago in the master 7.x branch. With this in mind, is it still necessary for me to do a pull request for each official release branch?
islandora_xml_forms-D750_warning-2487215-D7.patch

Chris Gray

unread,
Jul 13, 2016, 2:22:39 PM7/13/16
to islandora
I fixed it for our site by editing sites/all/modules/islandora/islandora_xml_forms-7.x-1.3/api/schema/Extension.inc and changing line 11 from:

module_load_include('inc', 'schema  _api', 'Any');

to:

module_load_include('inc', 'xml_schema_api', 'Any');

and rerunning drush to install 7.50.

Note that the path includes your version, so change islandora_xml_forms-7.x-1.3 to match your version.

Mark Jordan

unread,
Jul 13, 2016, 5:21:04 PM7/13/16
to isla...@googlegroups.com
The latest 7.x version of islandora_xml_forms (commit ecb4c) has corrected this, hasn't it? I just pulled it down to our staging server and api/schema/Extension.inc shows the following:

module_load_include('inc', 'php_lib', 'DOMHelpers');

module_load_include('inc', 'xml_schema_api', 'Any');
module_load_include('inc', 'xml_schema_api', 'Choice');
module_load_include('inc', 'xml_schema_api', 'Sequence');
module_load_include('inc', 'xml_schema_api', 'Group');

Mark


--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/ec37e4bd-9df4-4ba1-8683-f966af7c5b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Phil Redmon

unread,
Jul 13, 2016, 5:40:17 PM7/13/16
to isla...@googlegroups.com
I think the question was about updating the official release. I don't think official releases get changed once released. If you want, you can fork the islandora_xml_forms repo and just cherry pick the commit.



Mark Jordan

unread,
Jul 13, 2016, 5:42:25 PM7/13/16
to isla...@googlegroups.com
I think the question was about updating the official release.
Phil, you're correct, I missed that point. Sorry,

Mark

Mark Jordan

unread,
Jul 13, 2016, 10:56:47 PM7/13/16
to isla...@googlegroups.com
You may want to try setting Drupal's "Error messages to display" setting (available at admin/config/development/logging) to "None".  At least that should prevent the error message from showing up to end users.

Mark



--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.

slanger

unread,
Jul 14, 2016, 11:23:13 AM7/14/16
to islandora
Thanks for the feedback, Everyone! :-) I basically wanted to document this problem and provide a solution, so others wouldn't have to spend as much time tracking it down ("schema _api" in the error message didn't immediately make me think this was an Islandora issue. Based on the documentation, I originally thought some past contributed Drupal module might have been uninstalled incorrectly, so I spent quite a bit of time in the database as a result).

The patch provided in my initial post covers the fix that both Chris Gray and Mark Jordan documented. I knew the coding error had been corrected in the master copy of islandora_xml_forms in Git, but that still meant everyone using an official release (7.x-1.3 - 7.x-1.7) would encounter this problem upon upgrading to Drupal 7.50 and would need to troubleshoot it. It's a weird issue, since this warning message is new to core (as of 7.50) and in this case, is uncovering a problem that has been around awhile -- just hidden. This post is meant to act as a shortcut for anyone searching for a solution.

Thanks to Phil R's feedback, I now know it's not necessary for me to do a pull request or create a JIRA ticket in this particular case. Future versions of this module will have the fix. I'll just leave things as they are then, since this thread should help guide people until the next release.


On Wednesday, July 13, 2016 at 1:42:19 PM UTC-4, slanger wrote:

Peter MacDonald

unread,
Jul 15, 2016, 4:08:03 PM7/15/16
to isla...@googlegroups.com
There is a new Drupal module that will let you delete those missing file warnings after upgrading to Drupal 7.5.


Works like a charm.

Peter MacDonald


--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.

For more options, visit https://groups.google.com/d/optout.



--
Peter MacDonald,
Library Information Systems Specialist
Hamilton College Library
Clinton, New York
315 859-4493
pmacdona-hamilton (Skype)

Reply all
Reply to author
Forward
0 new messages