Forums

Active Directory Employee Listing
Call to a member function on a non-object (3 posts)

  1. stephenwilley
    Member
    Posted 7 months ago #

    Hi. I'm looking around for a good staff directory and wanted to try yours. When I use it, either by shortcode or widget, I get the following errors:

    shortcode version:

    Call to a member function get_group_users_info() on a non-object in /var/www/html/wp-content/plugins/active-directory-employee-list/classes/class-active-directory-employee-list-output.php on line 290

    widget version:

    Call to a member function user_info() on a non-object in /var/www/html/wp-content/plugins/active-directory-employee-list/classes/class-active-directory-employee-list-output.php on line 327

    Any suggestions? Thanks.

    http://wordpress.org/extend/plugins/active-directory-employee-list/

  2. Curtiss Grymala
    Member
    Posted 7 months ago #

    Can you do me a favor and try downloading the latest development version of the plugin to see if that makes any difference?

    Are you using a standard WordPress installation or a multisite install? Thanks.

  3. stephenwilley
    Member
    Posted 7 months ago #

    I'm using a multi-site install.

    That's definitely gotten me further. Putting in the new Widget and choosing Name and e-mail now gives me results, but with errors. The output is as follows:

    <div class="employee-list-item">
    	<p class="employee-name"><strong>	Bart iddlename%2$s
    	</strong></p>
    		<p class="employee-mail"><a href="mailto:Bart.Something@ourdomain.com">Bart.Something@ourdomain.com</a></p>
    </div><div class="employee-list-item">
    	<p class="employee-name"><strong>	Tom iddlename%2$s
    	</strong></p>
    		<p class="employee-mail"><a href="mailto:Tom.Something@ourdomain.com">Tom.Something@ourdomain.com</a></p>
    </div>

    If I put the shortcode on a page and have it just show:

    <li>%cn%</li>

    Then a refresh of the page shows the list of names, however, the search does not work and throws the following PHP warning:

    PHP Warning: implode(): Invalid arguments passed in /var/www/html/wp-content/plugins/active-directory-employee-list/classes/class-active-directory-employee-list-output.php on line 407

Reply

You must log in to post.

About this Plugin

About this Topic