Error creating file "moodle_inx.ser"

Error creating file "moodle_inx.ser"

Wes Sykes -
回帖数:8

Hi

I am in the process of setting up Moodles IMS repository but am experienceing some difficulties.

I have changed the repository config file to:

回复Wes Sykes

Re: Error creating file "moodle_inx.ser"

Wes Sykes -

I have sorted this out now, it was a permissions problem.  I do however now have a new problem...

When I try to preview IMS files from the ims_repository the navigation box appears but the content box has the following error

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be  wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

If i add the same IMS package via the choose or upload a file method then I can view it fine.

Any help will be much appreciated

Wes

回复Wes Sykes

Re: Error creating file "moodle_inx.ser"

Mari Cruz García -
Hello, Wes

I just come back from my Easter break and saw your post.

I think I know the solution to the second problem you mention, Object not found!, you need to set up the path to the repository in the repository_config.php, otherwise Moodle doesn't know where to find the objects:

$CFG->repositoryactivate = true;
$CFG->repository = "path to your moodle site here";
$CFG->repositorywebroot = "/ims_repository";

Let me know if it does work now.

I have also a question for you. I have exactly the same error message than you, when trying to deploying materials through the repository, "Error creating file "moodle_inx.ser", but I don't know how to sort out.

You said in your post that it was a problem with permissions. Which permissions?

Thank you very much.
回复Mari Cruz García

Re: Error creating file "moodle_inx.ser"

Wes Sykes -

Some of the things I had to make sure of was

1. That the ims_respository was in the root of moodle and nowhere else.

2. The folder (the ims_repository folder), has to have full read right permissions. Our technical guy did say that all the folders had different permission but I'm not sure that was him trying to keep one step ahead of me 微笑

3. Unzip packages in the ims_repository (unlike when doing it the normal way where you can leave it zipped)

4. Make sure that the UTF value is 8 and not 16 (some of the NLN materials are packaged wrong) otherwise you get an error regarding UTF(cant remeber exactly what it was)

That's about as much as I can help you with I'm afraid, but doing these things made it work for me.

oh and I made sure this line

$CFG->repository = "path to your moodle site here";

was actually to the root e.g. if your moodle is inside a folder called moodle the path would be something like. moodle/htdocs/ims_repository

Thanks

回复Mari Cruz García

Re: Error creating file "moodle_inx.ser"

Carl Hodkinson -

Hi Aaricia, did you manage to sort your your problem - I have the same thing happening. A pointer would be gratefully received

Carl

回复Carl Hodkinson

Re: Error creating file "moodle_inx.ser"

Mari Cruz García -
Hi, Carl,

I believe that it is a problem of permissions in the directory/folder where the materials are unzipped. Check the permissions in that folder

My problem was that the moodle site is set up in Ubuntu, so I was quite difficult to find the permissions and make it fully readable.

Let me know about that.

Regards


回复Mari Cruz García

Re: Error creating file "moodle_inx.ser"

Carl Hodkinson -

Hey there - thanks for the reply Aaricia!

You absolute beauty!! big grin  Do you know, I checked this yesterday after seeing the previous posts but it obvious didn't keep the permissions. I've just done it and it works great, so thanks again for making me try it again

Carl

回复Mari Cruz García

Re: Error creating file "moodle_inx.ser"

Heather P -
Hi
if you were on ubuntu was it Apache causing the problem and if so ideas on where to look in Apache would be fantastic.
I'm on Windows with Apache 2 and I'm pretty sure my issue is with Apache security not the windows folder permission. I can browse the repository when I go to add a resource and the things are there, but as soon as I put them in a course I get the permissions error which somehow seems to make no sense to me at all!
Thanks
回复Heather P

Re: Error creating file "moodle_inx.ser"

Barry Smith -
Hi,

I am quite new to Moodle, but I'm getting the hang of it.

I am running the following config:

Moodle on Web Server Windows Server 2003 under IIS. PHP as ISAPI.

I have enabled the IMS module. Config file is:

$CFG->repositoryactivate = true;
$CFG->repository = "D:/Web Server/moodle/ims_repository";
$CFG->repositorywebroot = "/ims_repository";

I have put the unzipped folder into the ims_repository folder. When I try to add a resource, the pop up window shows the package by the folder name. I click deploy and I get the following error:

Error creating file "moodle_inx.ser"

I have checked the permissions against the ims_repository foler and the unzipped package folder to the point of offering full control to everyone(!), but I still get the same error.

Any ideas most welcomed, thanks.

Barry.