Searching for new images in existing gallery duplicates already imported images
-
Using WP 6.3.2. and NGG 3.55 on PHP 8.2
I have hundreds of galleries stored in different folders. A gallery may have between 1 and several hundred images. I used to FTP images to these folders and then let NGG search for new images.
Now all images that were already imported to NGG are imported once more so that they get duplicated.
The PHP error log then shows this database error:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ”1”’ at line 1 for query SELECT
filename
FROM wp1_ngg_pictures WHEREgalleryid
= ‘1” made by do_action(‘nextgen-gallery_page_nggallery-manage-gallery’), WP_Hook->do_action, WP_Hook->apply_filters, nggAdminPanel->show_menu, nggManageGallery->__construct, nggManageGallery->post_processor_images, nggAdmin::import_galleryI belive this is caused by a superfluous ‘ in the WHERE clause, in this example: WHERE galleryid = ‘1” <—–
- The topic ‘Searching for new images in existing gallery duplicates already imported images’ is closed to new replies.