Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter kevin

    (@k-win)

    hey junkcoder, sorry for the late answer. WP 3.8.1 & php 5.3.13.
    Bug confirmed on a fresh install, WP 3.8.1 and plugin 1.10.

    Very simple to recreate, new wp install, local database, wampserver 2.2, just adding the 1.10 plugin and trying to add an already uploaded image to any post.

    The ul#__attachments-view-xx is all empty in the admin when inspecting the insert media center html part that should load the images. No javascript bug. Trying to upload a new picture triggers an error message with not much info: “An error occurred in the upload. Please try again later“.

    Setting define('WP_DEBUG', true); doesn’t seem to help spotting the problem.

    This is terrible! I have the same problem. I don’t have ftp access to this site and I cannot deactivate the plugin. Horrible horrible. What should I do?

    Ok more info for junkcoder. This broke the media library on three websites I manage. All three websites were using the Pravda theme from Themeforest. I was able to remove the plugin from two of the sites. Still waiting to hear back from my client for ftp access for the third site to remove the plugin.

    Here is the corresponding PHP error, which is what is derailing the AJAX request to build the media library:

    PHP message: PHP Warning: Missing argument 2 for AjaxThumbnailRebuild::addRebuildSingle() in /xxx/httpdocs/wp-content/plugins/ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php on line 45

    But so far I’ve only noticed this happening on a single site; others with similar configurations are working just fine. The issue must be rather specific. ?? For reference, the site is on a Debian Wheezy server with the following:

    • SSL forced for wp-admin;
    • php5-fpm (5.4.4-14+deb7u8)
    • nginx (1.2.1-2.2+wheezy2)
    • mariadb (5.5.36+maria-1~wheezy)
    • WP (3.8.1)

    I’ll let you know if I come across any other site with this issue, and maybe find a common thread.

    Plugin Author junkcoder

    (@junkcoder)

    Could you please try to replace

    add_filter( ‘attachment_fields_to_edit’, array(&$this, ‘addRebuildSingle’) );

    with

    add_filter( ‘attachment_fields_to_edit’, array(&$this, ‘addRebuildSingle’), 10, 2);

    in line #30 of wp-contents/plugins/ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php?

    Yes! It works!
    Thanks

    Plugin Author junkcoder

    (@junkcoder)

    Fixed in v1.11

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘v1.10 does an empty media library in post’ is closed to new replies.