Error: The system cannot find the file specified

Error: The system cannot find the file specified

by Tan M -
Number of replies: 3

Hello!

I recently performed a Moodle installation by migrating an old site. The catch is that the old site was using the xampp setup available on moodle.org, while the new site is running Windows IIS, PHP, and MySQL for Windows. Here is what I did:

1) I installed PHP 5.25 and MySQL 5.0.51a on the Windows machine

2) I moved the moodle directory (version 1.6.1+)

3) I moved the moodledata directory

4) I did a backup of the DB using MySQL and then restored it using MySQL

5) I configured Windows IIS and the config.php file

I then visited the site and everything looked great! It seemed to have worked. All classes and users appear correctly. Quizzes appear properly.

THE PROBLEM: When I launch a resource, the only thing that comes up is an error message. The message is: The system cannot find the file specified

Weird! I can’t figure out why it won’t launch the resources and, instead, gives me this error. Has anyone else seen this error before? Does anyone know what might be stopping the resources from loading properly?

Thank you in advance!

T

Average of ratings:Useful (1)
In reply to Tan M

Re: Error: The system cannot find the file specified

by Ken Wilson -

Hello Tan

One possible cause could be that the URL of the resource saved in the database in the XAMPP install is different to the new one. Can you please check the URL of the resource? Is it pointing to the XAMPP URL instead of the IIS-based one? If it is locate the differences and run the admin/replace.php script on the IIS site to make sure it is the same. For more infor see the Migration docs.

Ken 

Average of ratings:Useful (1)
In reply to Ken Wilson

Re: Error: The system cannot find the file specified

by Tan M -

Hi Ken,

Thank you for your reply!  We tried the replace.php script and, unfortunately, it did not help.  sad

It does seem to be putting in the right URL, so I can't quite figure out why it won't display.  We even tried adding a new resource to a class and, when we did, the file was added to moodledata correctly, but it still would not display in the course.  It also says 'the system cannot find the file specified.'

I have no idea what to do!

Tan