Download & Extend

Content_copy module required?

Project:Moodle Integration
Version:6.x-2.2-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Chris Johnson
Status:active

Issue Summary

When I select the moodle module in Drupal and save I get the following error :

Fatal error: require_once() [function.require]: Failed opening required './/modules/content_copy/content_copy.module' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in sites/all/modules/moodle/moodle.module on line 223

Is there any additional module I should install?

Comments

#1

Category:bug report» support request

#2

I just added CCK in order to fix this, but now I get another error message when trying to enable the Moodle module :

"The following modules must be enabled for this import to work: date, link.
Exiting. No import performed."

Any ideas?

I'd like a minimalistic install on this if possible, not adding module after module.

#3

I'm not being asked for the date module, but I'm being asked for the link module. I wonder what module it's looking for?

#4

Category:support request» bug report
Status:active» needs work

Okay. I did a bit more digging and it is in fact a set of two undeclared dependencies, for Link and Date. I had Date installed, so I was getting a different error message than @jbleveque, but it got me thinking in the right direction. After installing http://drupal.org/project/link I got the following result messages on admin/build/modules:

    * The content type Course has been added.
    * The field Date (field_date) was added to the content type Course.
    * The field Name of Instructor(s) (field_name_of_instructors) was added to the content type Course.
    * The field Course Description (field_body) was added to the content type Course.
    * The field Visit course (field_lms_url) was added to the content type Course.
    * The field Course ID (field_courseid) was added to the content type Course.
    * The field Is Event (field_is_event) was added to the content type Course.
    * The field Short name (field_shortname) was added to the content type Course.
    * The configuration options have been saved.

Yep. Date and link fields. That would do it.

This is a pretty simple fix; I think the maintainer will need to add these lines to the the Moodle module's .info file, and that should ensure that the Moodle integration doesn't try to install without these modules being enabled:

dependencies[] = cck
dependencies[] = date
dependencies[] = link

#5

Assigned to:Anonymous» Chris Johnson
Status:needs work» active

Hmm, this seems to be a problem with core version 6.11 and later, when the CCK type became an automatic part of the installation. Will fix.

#6

I got the same error, downloaded, set up CCK, link , date /time modules now I donʻt see the moodle module as an option to be enabled?

#7

Ignore. No error. I had renamed the .module extension to get into an editor I preferred to use and forgot to change the extension back.

However regarding Domesticatʻs and Chrisʻs post I only did these two lines in the .info file

dependencies[] = date
dependencies[] = link

as having the cck one in the would show a missing dependency despite all cck modules being installed and enabled.

nobody click here