• It took me, my host and my theme developer an entire week to realize it’s the ‘Disable XML-RPC’ plugin that caused the image to not show up in the Edit Media page. What’s strange is when I initially did the usual deactivating/activating of every plugins, it didn’t surfaced as the problem. So we turned to other actions, like re-install wp4.1, theme and switched to Twenty Fifteen theme which all didn’t help correct the situation until last night. I remembered that’s the last plugin I installed, so was just trying my luck and boomed, everything show up.

    I wonder anyone has the same issue, certainly hope to be able to activate it again.

    https://www.ads-software.com/plugins/disable-xml-rpc/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Phil Erb

    (@philerb)

    I’m sorry that you had a poor experience. Let’s see if we can get to the bottom of it.

    This plugin only has one line of real code. I’d suggest that your developer have a look at the main plugin file (available at https://plugins.svn.www.ads-software.com/disable-xml-rpc/trunk/disable-xml-rpc.php) and try adding that line of code to your theme’s functions.php file.

    If that doesn’t break the Edit Media page, then it’s unlikely that the plugin itself was causing the problem – that line of code, with the exception of the readme file – is the only thing in the plugin.

    Please let me know if that works in the functions file but still doesn’t work when you remove it from functions and enable the plugin. I’d be happy to discuss the problem further, as that definitely shouldn’t happen.

    Thread Starter Momo

    (@yangman)

    It works when I insert the code into functions.php without activating the plugin. When I remove the code and activate the plugin, the problem returns and now with a new twist, I get this message on top,

    “The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    Thread Starter Momo

    (@yangman)

    I think I’ve found the bug on the plugin.

    After ?> I noticed there are 2 blank lines. I simply remove the lines by backspacing, reactivate the plugin and everything is working fine. ??

    I suppose by removing the ?> altogether will work too, but I didn’t try. I can activate the plugin now and working….HAPPY!

    Plugin Author Phil Erb

    (@philerb)

    Thank you very much for your thorough testing. That did not occur when I tested the most recent update to the plugin (which was just a README update).

    I will remove those lines in the official version when I’m back at my development system today and I will mark this as resolved at that point.

    Thank you again!

    Phil

    Plugin Author Phil Erb

    (@philerb)

    I’ve just updated the plugin to version 1.0.1 to remove the extra lines at the end of the file. I’ve tested on a few installations and everything seems to be fine. Please give it a spin and let me know how it performs for you.

    Phil

    Thread Starter Momo

    (@yangman)

    Updated to v1.0.1 and works like a charm.

    Thanks for the update ??

    FYI – best practice is actually to just not even have the closing ?> in php files for exactly this reason.

    It’s even mentioned in the handbook: https://make.www.ads-software.com/core/handbook/best-practices/coding-standards/php/#remove-trailing-spaces

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Image not showing in Edit Media page’ is closed to new replies.