Error installing myFiles

Error installing myFiles

by Simon James -
Number of replies: 6

When I go to the admin page I get the following error

shared_files

Error

Error

Error

Error

Error

Error

Success

Success

Success


Block shared_files tables could NOT be set up successfully!

Continue

and the block is not installed!

How can i fix this?

Thanks

Simon

Average of ratings: -
In reply to Simon James

shared files installing

by albert moreno -
Did u solve the problem ??
I have the same problem !!

I should also highlight that I did a rename of mysql.php to postgres7.php
and mysql.sql to postgres7.sql
could it be the source of the problem.

Anyone can help me please??
I would be very interested into find out the way students share files with other students. And this module is the only options I notice !!,

thanks in advance,
albert

In reply to albert moreno

Re: shared files installing

by Michael Penney -
Yes, you can't just rename the sql files. You'll have to create the tables in PostGres manually, or re-write the install script for PG.

We're working on a new version of MyFiles which will add many nice features (integration with the editor, for instance), and better PG support, but it will be a month or so before we release it.
In reply to Michael Penney

Re: shared files installing

by Michael Avelar -

This error is most likely caused because you installed the MyFiles in a 1.5 version of Moodle.  I have upgraded the MyFiles code to work with 1.5 which should solve this problem.  I'll see if I can get the new version out there soon.

-Michael Avelar

In reply to Michael Avelar

Re: shared files installing

by albert moreno -
Hi, I am using the version of Moodle 1.4.4+
I download shared.zip, I placed the files where it was necessary, I renamed mysql.php to postgres7.php
I translate mysql.sql to postgres7.sql like this you can see at the end of the mail,
but there is the last 3 commands that refers to a table that doesn't exist, isn't?

INSERT INTO prefix_log_display VALUES ('shared_files',
'add', 'shared_files', 'name');

INSERT INTO prefix_log_display VALUES ('shared_files',
'update', 'shared_files', 'name');

INSERT INTO prefix_log_display VALUES ('shared_files',
'view', 'shared_files', 'name');


Anyway I have problems when I try to install, I tried even to install manually the tables, but nothing...
there is a way to see the log to determine more exactly why the instalation fails ???
Because at the begining I obtained

Error

Error

Error

Error

Error

Error

Success

Success

Success

After doing the manual instalation I obtained once

Error

Success

Success

Success

Success

Success

Success

Success

Success

and after the refresh :

Error

Error

Error

Error

Error

Error

So I don't know what to do, I wanted to select Moodle e-learning tool, but I need the possibility to share files !!!! and I am not able.

Someone can help me !!!!!!!!!!!!!!!!!!!!!!



POSTGRES7.SQL:
--------------------------

CREATE TABLE prefix_shared_files_external (
id serial NOT NULL ,
userid int  NOT NULL default '0',
category int  NOT NULL default '0',
name VARCHAR(255) NOT NULL default '',
url VARCHAR(255) NOT NULL default '',
intro text NOT NULL default '',
attachment VARCHAR(100) NOT NULL default '',
timemodified int  NOT NULL default '0',
course int  NOT NULL default '0',
PRIMARY KEY (id)
);

CREATE TABLE prefix_shared_files_file (
id serial NOT NULL ,
userid int  NOT NULL default '0',
category int  NOT NULL default '0',
name VARCHAR(255) NOT NULL default '',
url VARCHAR(255) NOT NULL default '',
intro text NOT NULL default '',
attachment VARCHAR(100) NOT NULL default '',
timemodified int  NOT NULL default '0',
course int  NOT NULL default '0',
PRIMARY KEY (id)
);


CREATE TABLE prefix_shared_files_categories (
id serial  NOT NULL ,
userid int  NOT NULL default '0',
name VARCHAR(255) NOT NULL default '',
timemodified int  NOT NULL default '0',
course int  NOT NULL default '0',
PRIMARY KEY (id)
);


CREATE TABLE prefix_shared_files_shared (
id serial  NOT NULL ,
bookid int  NOT NULL default '0',
userid int  NOT NULL default '0',
original int  NOT NULL default '0',
course int  NOT NULL default '0',
PRIMARY KEY (id)
);


CREATE TABLE prefix_shared_files_sharedfile (
id serial  NOT NULL ,
bookid int  NOT NULL default '0',
userid int  NOT NULL default '0',
original int  NOT NULL default '0',
course int  NOT NULL default '0',
PRIMARY KEY (id)
);


CREATE TABLE prefix_shared_files_maxuploads (
id serial  NOT NULL ,
unid int  NOT NULL default '1',
maxupload int  NOT NULL default '0',
maxdir int  NOT NULL default '0',
PRIMARY KEY (id)
);
In reply to Simon James

Re: Error installing myFiles

by Mark Granger -
I had this problem and found the only way to fix it was to manually delete the tables in the Moodle database. There are 5 and they start with fmanager.
I also found duplicate entries in the log_display table each time I had tried to re-install myfiles. I deleted these "DELETE from log_display where module = 'fmanager';"
This got it working again.
In reply to Mark Granger

Re: Error installing myFiles

by Michael Avelar -
The upgrade from the old versions of myfiles to the newest version of myfiles is not yet a smooth transition. It is on my list to create some upgrade code that will take entries from old versions tables and apply them into the new data tables. As of now, when replacing an old version, you may have to manually delete the tables as suggested above to get the installation of the modified tables to work correctly.

Thank,
-Mike