WordPress.org

Ready to get started?Download WordPress

Forums

GplusBadge
[resolved] The plugin is displaying its HTML as raw code. (5 posts)

  1. Robert Heller
    Member
    Posted 2 years ago #

    I have Version 1.5.0 of GplusBadge installed and instead of the badge being displayed (it worked fine with the previous version) it is displaying raw HTML code instead. I am going to revert to the older version for now.

    http://wordpress.org/extend/plugins/gplus-badge/

  2. Robert Heller
    Member
    Posted 2 years ago #

    OK, it appears that GplusBadge is totally borked. The older versions don't work either. I even installed it another fairly 'vanila' site and it also spits out raw HTML. I'm going to disable the widget for now and wait for an update...

  3. Robert Heller
    Member
    Posted 2 years ago #

    OK, I have found the problem. In getPageFile() (in gplusbadgehelper.php) there are two echo statements that should not be there. When I commented them out, the plugin works correctly. Here is the patched function:

    protected function getPageFile($url) {
                    // empty the html property (although it's probably empty anyway$
                    $html = '';
    
                    // get the data
                    $html = file_get_contents($url);
                    //echo htmlentities($html);
                    //echo "<br/>";
    
                    return $html;
            }
  4. mattsh
    Member
    Posted 2 years ago #

    Thanks for your work on this RobertPHeller. Seems the developer took a bit of a vacation.

    When he gets back, I hope he looks into why the circle counts don't update...

  5. skipser
    Member
    Plugin Author

    Posted 1 year ago #

    Hi All,

    Sorry for the delay. Yes I took a small break!!

    All issues fixed and uploaded version 1.6. Please upgrade to make everything work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic