Imported users – top users php hangs the site

4.85K viewsIssuesphp top-users version:-3.0.11
0

Hi,

First of all the plugin and the askbug theme is brilliant!

I’m experiencing an issue with the top users widget. We’ve imported 6k+ users from another forum as we are trying to migrate to askbug.

The plugin only managed to transfer firstname, lastname, username and email address. They were all assigned to the “AnsPress Participants” user role.

Now when we view the fronted it hangs after loading the header, and the error log lists the following message:

[14-Aug-2017 10:56:55 UTC] PHP Notice: Undefined index: title in …/themedir/includes/widgets/top_users.php on line 29
[14-Aug-2017 10:56:55 UTC] PHP Notice: Undefined index: number in …/themedir/includes/widgets/top_users.php on line 30
[14-Aug-2017 10:56:55 UTC] PHP Notice: Undefined index: avatar in …/themedir/includes/widgets/top_users.php on line 31

These lines are:
$title = apply_filters( ‘widget_title’, $instance[’title’] );
$number = $instance[’number’] ;
$avatar_size = $instance[’avatar’] ;

I’m guessing askbug is looking for a field which is normally created with a regular registration and missing when users are imported.

Can you please let me know which field these are so I can add them in manually?

I’m running Askbug Version: 3.0.11

Thanks!

0

Hello Imran,

This is just a notice, its not harmful and cannot cause a hangup. This error is coming from widget option this has nothing to do with user query. So, ignore this issue. Please install query monitor to check why site is hanging up. it must be due to while loop error.

You are viewing 1 out of 3 answers, click here to view all answers.