|
[
Permalink
| « Hide
]
Robert Duncan added a comment - 28/Aug/07 01:04 AM
I (Rob Duncan) did not get the error message. Instead, when I imported an old course into a newly created one, I got "Import complete! Continue to your course" When I continue to the course, I have the problem described above.
I've experience a similar issue using 1.8.2 after importing activities from another course to duplicate identical content.
By turning off AJAX I can delete the activities from the course, but they appear in the Journal Overview still. Though there is no resource id for the orphan activities. Deleted Resources DO NOT appear in the summary list, nor Quizzes, but forums DO APPEAR as blank "ghosts" in the summary. When my nightly backup was run, it returned ERROR in the email alerting me to completion. When I ran cron after deleting the blank activities, it seemed to run without returning an error. Hope this helps. The above issue seems to have resolved itself after a few hours. I didn't do anything different. The additional activities appear to be gone now.
One more thing I've noticed. The two classes that I duplicated that created this issue are not backing up properly. In my backup log, it says "Error."
When I restore or import courses the new courses has empty activities with no links.
I have checked, optimized and repaired the database with no luck. Fiddling around the database I found this warning in a lot of the tables: "The following indexes appear to be equal and one of them should be removed: PRIMARY, id". So, should I simply remove one of the indexes? Which one? Turning on error logs told me, that there was a duplicate entry in 'mdl_backup_ids'. How do I delete this? Besides trying to browse 'mdl_backup_ids' and 'mdl_backup_files' I get the message "Table seems to be empty". Is my database just corrupted? Is it safe to install a fresh version of Moodle and restore everything from the backups? I get an error message with many of my tables that says...
The following indexes appear to be equal and one of them should be removed: PRIMARY, id what should I do about this? ..best..janet btw... I tried to use your screenshot attachment device, but it didn't work... (mac OSX 10.4.x/Safari) I've been able to reproduce this on both 1.8.4 and 1.9. Here are the steps I used to reproduce it on demo.moodle.org:
Log in as admin, create a blank course, and assign a teacher. The result is a bunch of icons with no text. Clicking on these icons gives the message "Course Module ID was incorrect". Note that in many cases on our production 1.8.4 environment, the orphaned icons do appear after the first import. We also have faculty that have run into this when restoring a backup into a new course. Our faculty continue to run into this issue. Here are some additional details -
Once there are 'orphaned' icons in the course, they cannot be removed if AJAX is enabled. If the user turns off AJAX, the blank activities/resources can be removed. However, removing them does not trigger rebuild_course_cache, so these empty items still show up in certain places. For instance, if you remove non-existent quizzes, clicking on 'Quizzes' in the course Activities block will bring up a table with blank lines for the removed quizzes. Also, the course backup page will show check boxes for any removed items. These empty items can cause a subsequent course backup to fail. So, I still haven't figured out why import/restore sometimes creates these duplicate/empty icons, but when it does, there is a 2-step workaround to get rid of them - 1. Turn off AJAX and delete the items. Hi I guess
It's strange that it's happening in successfully restored courses because rebuild_course_cache() is executed as one of the final steps of restore. Uhm. I'll try to comment here about how the other bug evolves. Ciao Hi
the fix of ?au I can reproduce the problem on my MOODLE_19_STABLE development installation. If I follow Ann Adamcik's steps, I finish with the corrupted course content (empty course_modules).
I'm also seeing this issue, but the database fix mentioned in <a href="http://tracker.moodle.org/browse/MDL-10993">MDL-10993: Restore creates duplicate activity/resource icons with no text</a> did the trick for me with regards to getting rid of the ghost activities.
I get the same error message with one table.
I've deleted "id UNIQUE". All seams working. Everything seems to work. Have I done well? I had exactly the same problem restoring a course by importing it to a blank course but using the "Import" admin functionality.
We are restoring all the courses for the new academic year... "Turn off AJAX and delete the items." worked fine. But I still wonder if there's any problem with database as you mention above, and if yes what is the procedure to correct it. Please, try the most recent Moodle 1.9 weekly build and report if this is still the issue.
We're still seeing this, using Moodle 1.9.3+ (Build: 20081223).
Ann, can you send mi (via private email) a backup of the course? Or the link where I can download it and test it?
This isn't specific to a particular course backup. I can consistently reproduce the issue on demo.moodle.org, by importing from the Features Demo into a new course. We've done some additional testing, and it seems that in some cases, the restore process can get launched twice, resulting in the empty modules.
Just before the restore part of the import starts, after the export from the "from" course is complete, there is a page titled "Import Course Data" with just a "(continue)" link. If the link isn't clicked within a few seconds, the page redirects and the restore launches. If the user happens to click this "(continue)" link twice, with maybe a half-second or so between clicks, duplicate icons will almost always occur. If the user clicks the link just before the page redirects, the problem will sometimes occur, depending on the timing. If the link is clicked just once when it first appears, or if the page is left to redirect on its own, the import works as expected. It looks like there is some logic in backup/restore.php to prevent multiple restore executions, but it doesn't seem to be working quite right. There was one bug in Course import - if you clicked on Continue link the restore failed badly. I suppose the same will happen if you double click on buttons. Is there any chance you did exactly this?
Petr, I can get the duplicate items without text (ghost items) to happen with a single click on the continue link if it is timed so that the page redirect happens also.
You must not click on the "Continue" link during course import...
Petr, I know not to click continue. But we keep having faculty that get duplicate items w/o text. We don't know for sure that using the continue is the reason faculty are getting the duplicate items without text, but it would be good to remove the possibility. Having a link called continue that you aren't supposed to click invites problems. Can the continue link and the redirect be removed and the code for the final part of the process be included in the same page. Or just have the continue link without the redirect. There are a series of continues earlier in the process.
Unfortunately I did not implement this hacky code
I do not know how to solve this I'm not sure about the implications for 3rd-party scripts, but we've come up with what might be a reasonable solution. This hides the continue link from the user and just lets the page redirect. Does anyone see any issues with doing it this way?
1. In our theme's stylesheet, I added the following so that the continue link doesn't display - /* Don't display the continue link on imports */ I just stumbled across
I'm in version 1.9.3+ and had the same issue. Not clicking the continue to course button seemed to correct it. But it seems that the issues should just be corrected (also appears there is not a reliable hack to remove the continue buuton?)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||