• I stopped working on a WordPress site about 2 years ago. This weekend, I started working on it again and updated to WP 3.5.2 and NextGen 1.9.13, the latest version of both.

    When using the “Manage Gallery” admin screen after the updates, thumbnails disappeared and links to photos no longer worked. This was for older photos uploaded before the update, but not for newer images uploaded after the updates. I checked the database, and the URLs were found to be intact; but still thumbnails and images in older galleries simply were not found anymore.

    The NGG module “manage-images.php” uses the WordPress function esc_url(). This function strips spaces from URLs, which ends up creating wrong URLs to older photos. Apparently, at some point in the past two years, NGG no longer stores spaces in the URLs like it did before; or for some reason, esc_URL() is not parsing spaces correctly. Whatever the change has been with WP or NGG, this function was causing my problem of not seeing thumbnails and images in older galleries.

    I removed the four instances of the esc_url() function from manage-images.php, and simply left the plain URL argument values in its place. So far, this has solved my problem with thumbnails and images in older galleries not appearing in the “Manage Gallery” admin screen.

    http://wordpress.org/extend/plugins/nextgen-gallery/

The topic ‘manage-images.php fix’ is closed to new replies.