I have been practising upgrading my Moodle site. Before I upgrade my production site I have been experimenting on an experimental site and have found a problem when importing questionnaires that contain Japanese text.
The course that contains the questionnaires has been imported without any apparent problems. Furthermore the structure of the questionnaires appears to be OK. This includes instructions written in Japanese; this text has not been garbled. However, questions that contain Japanese text have been garbled. I have tried changing the encoding in my browser, but this does not solve the problem. I imagine the problem either occurred when I backed-up the original course containing the questionnaires, or when I imported the course. Either way the information re the text encoding of the questions appears to have been lost.
Specifically, the Japanese text in the 'questionnaire' MySQL table (this table contains information about each questionnaire and appears at the top of questionnaires) has not been garbled, but the Japanese text in the 'questionnaire_question' table (this table contains the questions) has been garbled.
Any advice will be much appreciated. Thank you.
I am using questionnaire module version 2005062701.
Peter Ruthven-Stuart
Posts made by Peter Ruthven-Stuart
Howard,
Since the moodle site I tried to upgrade was not a production site, and therefore did not contain any critical data, I decided to do some experimenting. I renamed the offending 'mimetypes.php' file - so in effect took it out of the equation, and went back to the admin page of the site. The upgrade was completed successfully, and everything appears to work OK
.
My hunch is that since this file is not part of the 1.5 package, renaming the file will not cause any problems now, or in subsequent upgrades. What do you think? Do you think it is safe to just go ahead and delete the 'mimetypes.php' file?
Thanks for your advice.
Since the moodle site I tried to upgrade was not a production site, and therefore did not contain any critical data, I decided to do some experimenting. I renamed the offending 'mimetypes.php' file - so in effect took it out of the equation, and went back to the admin page of the site. The upgrade was completed successfully, and everything appears to work OK
.My hunch is that since this file is not part of the 1.5 package, renaming the file will not cause any problems now, or in subsequent upgrades. What do you think? Do you think it is safe to just go ahead and delete the 'mimetypes.php' file?
Thanks for your advice.
Howard,
Thank you very much for your reply.
I used the upgrade facility that is part of 'Fantastico', a service offered by many hosting companies. Fantastico is part of cPanel and allows users to install various scripts and programs including Moodle. I have used this 'one click upgrade' once before, from 1.4.3 to 1.5, with another moodle on the same server, and had no problem. This time the upgrade was from 1.4.4 to 1.5.
You wrote, "There isn't a file called mimetypes.php in the 'files' directory in 1.5." On a experimental moodle - version 1.5.2 - that I installed on my own computer, there is no 'mimetypes.php' file. However, in the successfully upgraded 1.5 site, hosted by a commercial server, the file is there. I guess this is because Fantastico installs over the old version. However, if this is the case, why do you think that my first attempt at upgrading (1.4.3 to 1.5) succeeded, but failed the second time (1.4.4 to 1.5)? Is it something to do with the fact that I was upgrading from different versions?
So, is the only solution to this problem to start with a 'clean' copy, or are there some changes I can make to the 'mimetypes.php' file?
Thanks again for your help.
Thank you very much for your reply.
I used the upgrade facility that is part of 'Fantastico', a service offered by many hosting companies. Fantastico is part of cPanel and allows users to install various scripts and programs including Moodle. I have used this 'one click upgrade' once before, from 1.4.3 to 1.5, with another moodle on the same server, and had no problem. This time the upgrade was from 1.4.4 to 1.5.
You wrote, "There isn't a file called mimetypes.php in the 'files' directory in 1.5." On a experimental moodle - version 1.5.2 - that I installed on my own computer, there is no 'mimetypes.php' file. However, in the successfully upgraded 1.5 site, hosted by a commercial server, the file is there. I guess this is because Fantastico installs over the old version. However, if this is the case, why do you think that my first attempt at upgrading (1.4.3 to 1.5) succeeded, but failed the second time (1.4.4 to 1.5)? Is it something to do with the fact that I was upgrading from different versions?
So, is the only solution to this problem to start with a 'clean' copy, or are there some changes I can make to the 'mimetypes.php' file?
Thanks again for your help.
I have just tried to upgrade one of my Moodle sites from 1.4.4 to 1.5. The site is hosted on a shared server, and I have successfuly upgraded another Moodle site on the same server. However, this time I got the following error message:
Fatal error: Cannot redeclare mimeinfo() (previously declared in /home/petesweb/public_html/ftm/lib/filelib.php:3) in /home/petesweb/public_html/ftm/files/mimetypes.php on line 3
in the ''Setting up module tables" stage, which is near to the end of the upgrade process. This error seems to have occured while the 'assigment module' was being upraded.
If you access this moodle:
http://ftm.petesweb.org/
you will see that the front page loads, but is 'not all there'.
Any suggestions will be greatly appreciated. I am not a programmer, but following your advice, I am happy to cut and paste code into files in order to fix this problem.
Thank you.
Fatal error: Cannot redeclare mimeinfo() (previously declared in /home/petesweb/public_html/ftm/lib/filelib.php:3) in /home/petesweb/public_html/ftm/files/mimetypes.php on line 3
in the ''Setting up module tables" stage, which is near to the end of the upgrade process. This error seems to have occured while the 'assigment module' was being upraded.
If you access this moodle:
http://ftm.petesweb.org/
you will see that the front page loads, but is 'not all there'.
Any suggestions will be greatly appreciated. I am not a programmer, but following your advice, I am happy to cut and paste code into files in order to fix this problem.
Thank you.
Mike
Thank you very much for this
.
However, before I go ahead and install the newest Questionnaire module into my Production site (Moodle v 1.4.3), can I be certain that by doing this I will not lose my existing questionnaires and questionnaire data?
Or, is the only solution to upgrade to the newest Moodle (1.5) and then install the latest Questionnaire module?
Thanks.
Thank you very much for this
.However, before I go ahead and install the newest Questionnaire module into my Production site (Moodle v 1.4.3), can I be certain that by doing this I will not lose my existing questionnaires and questionnaire data?
Or, is the only solution to upgrade to the newest Moodle (1.5) and then install the latest Questionnaire module?
Thanks.