Problem with installation of myFiles in 1.8

Problem with installation of myFiles in 1.8

by Peter Schmitt -
Number of replies: 11
Hi smile ;

I have the following Problem in Moodle 1.8:

Tried to install myFiles from downloadpage and get from 8 sections in
the admin-page in the last 3 sections errors.

Then I found: http://moodle.org/mod/forum/discuss.php?d=74805

After downloading I got in in the forst 5 Sections of admin-page
mySQL-Errors (alredy exist - bofore there was success!) an the last 3
sections i got success - before there was errors).

But myFiles could not be installed sad
What's to do? Any hints?

Thank you
Peter


Average of ratings: -
In reply to Peter Schmitt

Odp: Problem with installation of myFiles in 1.8

by Łukasz Leszewski -
Delte fmanager from block's folder then try to connect directly to your database using fe. phpmyadmin. Delete all fmanager tables (there should be about 4 or 5 of them). Then use last patch for 1.8:
http://moodle.org/mod/forum/discuss.php?d=31943 (http://moodle.org/file.php/5/moddata/forum/352/317132/file_manager.zip)
and that should do it
In reply to Łukasz Leszewski

Re: Odp: Problem with installation of myFiles in 1.8

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
I believe the 18STABLE version in CVS for the file_manager.zip block should already contain all of the needed patches. If it does not, just let me know what needs to be fixed and I will make it happen. Peace - Anthony
In reply to Łukasz Leszewski

Re: Odp: Problem with installation of myFiles in 1.8

by Peter Schmitt -
Thank you - now I have done, but there are anyway three errors in the Table mdl_log_display:

(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('fmanager', 'add', 'fmanager', 'name')

1062: Duplicate entry 'fmanager-add' for key 2
....
1062: Duplicate entry 'fmanager-update' for key 2
....
1062: Duplicate entry 'fmanager-view' for key 2

I'm not so firm with mySQL - what have I to do?
Can anyone help?

Greetings
Peter
In reply to Peter Schmitt

Re: Odp: Problem with installation of myFiles in 1.8

by Anthony Borrow -
Picture of Core developers Picture of Plugin developers Picture of Testers
It looks like you had already tried an install and the records were already in the table. The alternative would be to delete the records and then try to install again. What happened after you saw this message?

To delete the records for fmanager in the mdl_log_display table use phpMyAdmin and try:
DELETE FROM mdl_log_display
WHERE module = 'fmanager';

In reply to Peter Schmitt

Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Łukasz Leszewski -
You must delete three more records from mdl_log_display with fmanager value in module column.

I forgot to mention it. I was dooing it so long ago.

Records:
Edytuj Usuń 110 fmanager add fmanager name
Edytuj Usuń 111 fmanager update fmanager name
Edytuj Usuń 112 fmanager view fmanager name


Hope it helps smile
In reply to Łukasz Leszewski

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Peter Schmitt -
Hi Andrew and Lukasz,

thank you very much for your help. I've deletet now the entries with
DELETE FROM mdl_log_display WHERE module = 'fmanager';

Now the filemanager is installed in Moodle smile
but ...

sad if I try to create folders (adding an block and klicking the folder-symbol)
an errormessage appears:

Fatal error: Class 'block_list' not found in /usr/share/moodle/lang/en_utf8/block_file_manager.php on line 5

I have installed en_utf8 and de_utf8.

Sorry, but it seems I need help step by step.
Peter
In reply to Peter Schmitt

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Peter Schmitt -
It seems, the problem is solved. smile)

I found this post:
http://moodle.org/mod/forum/discuss.php?d=31943

and installed the block_file_manager.php from Ralf Hilgenstock
in my german lang-directory, deleted all the fmanager-entries like
you described and called the admin-page.

myFiles are working now with 1.8 smile

Thank you all for the help
Peter
In reply to Peter Schmitt

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Clive Gould -

I cannot get this to work. The tables in the database are sucessfully set up and then I get the error messages below. This suggests the structure of the mdl_log_display table doesn't match the block install php code.

 


(mysql): INSERT INTO mdl_log_display VALUES ('fmanager', 'add', 'fmanager', 'name')  


1136: Column count doesn't match value count at row 1

                  
Error


 


(mysql): INSERT INTO mdl_log_display VALUES ('fmanager', 'update', 'fmanager', 'name')  


1136: Column count doesn't match value count at row 1

                  
Error


 


(mysql): INSERT INTO mdl_log_display VALUES ('fmanager', 'view', 'fmanager', 'name')  


1136: Column count doesn't match value count at row 1

                  
 
In reply to Clive Gould

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Heather P -
I get exactly the same.
Moodle 1.8.1 and the lates MyFiles (says about two weeks ago) for 1.8 from CVS.
Any ideas yet?
In reply to Heather P

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Christian Helms -

You must correct the sql statement in db/mysql.sql

The last 4 lines should look like these

INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('book', 'update',   'book', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('book', 'view',     'book', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('book', 'view all', 'book', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('book', 'print',    'book', 'name');

Don't forget to remove the prefix_fmanger* tables from the db before installing the block again

In reply to Christian Helms

Re: Odp: Re: Odp: Problem with installation of myFiles in 1.8

by Jeroen Kleijn -

Hello

I did have the same problem. After some changes in the mysql.sql finally the admin job finished.

I could select the block, but I can't add any new links or whatsoever.

I just get a screen where I can't fill in anything

???????????????????????