Help! LightBox Gallery doesn't install in my Moodle 1.9.9 site. What gives?

Help! LightBox Gallery doesn't install in my Moodle 1.9.9 site. What gives?

by Frankie Kam -
Number of replies: 1
Picture of Plugin developers

Hiyall

This one is driving me nuts...I've just created a new site running on Moodle 1.9.9 and I've installed Lightbox Gallery, but to my disappointment, it can't install. I get there error and warning messages:

This script generated 6 warnings - Scroll to the first warning ...

1050: Table 'mdl_lightboxgallery' already exists

1050: Table 'mdl_lightboxgallery_comments' already exists

1050: Table 'mdl_lightboxgallery_image_meta' already exists

1062: Duplicate entry 'lightboxgallery-update' for key 2

1062: Duplicate entry 'lightboxgallery-view' for key 2

1062: Duplicate entry 'lightboxgallery-comment' for key 2

lightboxgallery tables could NOT be set up successfully!

---------------------------------------------------

I installed the module found at http://moodle.greenhead.ac.uk/external/lightbox_gallery and I received 6 errors when running the Notification.

This isn't supposed to happen. I'm supposed to enjoy image galleries and such *sob* . What is the problem? How do I solve this?

Frankie (Malaysia)

Average of ratings: -
In reply to Frankie Kam

Re: Help! LightBox Gallery doesn't install in my Moodle 1.9.9 site. What gives?

by Colin Fraser -

Activate the existing lightbox gallery in your Moodle. That is the most obvious answer, but it is more likely that the Lightbox Gallery has been installed at some point in the past and has been improperly uninstalled, which has left the tables in place, but the php files and folders have been taken off your server.

If you have access to the database, perhaps using phpMyAdmin, look for the tables using the mdl_lightbox prefix and drop them. Also go to the mdl_modules table and delete the line relating to the lightbox gallery. This is the one probably causing the problem, if there is one there it si registered as being there, but my bet would be that the three tables for lightbox are also there.

If you do not have access to the database, then talk to the person who does.

As well, check your /moodle/mod folder, see if the lightbox has a folder there, and even if it is one you created, delete it, clear out everything. Then reinstall, and it should work. Good luck.