• Resolved mangelot

    (@mangelot)


    Hello,

    We are running latest wordpress in combination with whmcs.
    if we enable the plugin everything in wordpress is correctly working.
    but if we enter the /clients folder for whmcs (which is integrated in wordpress)

    We are receiving following error:
    call to a member function view() on a non-object

    Is we comment the line
    $this->plugin_view = $social_count_plus->view();
    inside the class-widget.php it is working without problems

    how can i fix this issue?

    https://www.ads-software.com/plugins/social-count-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mangelot

    (@mangelot)

    fixed it like this, it seems to work is this correct?

    changed

    $this->plugin_view = $social_count_plus->view();

    to this lines

    if(!empty($social_count_plus)) {
    		$this->plugin_view = $social_count_plus->view();
    }

    regards Marco

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Author Claudio Sanches

    (@claudiosanches)

    If everything is working great so far.
    I’m working on version 3.0.0 and am changing it all the way the plugin is loaded, I believe we will not have this kind of problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘call to a member function view() on a non-object’ is closed to new replies.