• Hi, within my dashboard, there are two notice messages came up, could you help me if its plugin related?

    1.
    Notice: Array to string conversion in /raid/vhost/accton-nfv.com/public_html/wp-content/plugins/arconix-faq/includes/class-gamajo-dashboard-glancer.php on line 123

    2.
    Notice: Undefined property: stdClass::$Array in /raid/vhost/accton-nfv.com/public_html/wp-content/plugins/arconix-faq/includes/class-gamajo-dashboard-glancer.php on line 123

    Thanks alot!!

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

    (@tychesoftwares)

    @bibic0711, Can you let me know the version of WP you’re using?

    The notices do seem to be coming from the plugin.

    :Vishal

    Thread Starter bibic0711

    (@bibic0711)

    The notice came at 4.8, and even stays when I upgraded to 4.8.1.

    Thanks alot!!

    Here is my website if you want to take a look.
    Website:
    https://www.accton-nfv.com

    Backend:
    https://www.accton-nfv.com/wp-admin
    Account: temp_admin
    Password: Accton_nfv_temp

    Thanks again!!

    Plugin Author tychesoftwares

    (@tychesoftwares)

    @bibic0711, Please do not post your admin account details publicly. I will check on this & get back to you.

    :Vishal

    Same problem on my websites using this FAQ plugin.
    thanx for checking out the problem

    Hi,

    I had the same error message and was able to fix it hopefully.
    In plugins/arconix-faq/includes/class-gamajo-dashboard-glancer.php around line 123 modify the function like this:

    protected function get_single_item( array $item ) {
    	$num_posts = wp_count_posts( $item['type'] );
    	$status = $item['status'];	// added this line
    	$count = (int) $num_posts->$status;	// mofified this line
    
    	if ( ! $count ) {
    		return '';
    	}
    
    	$href  = $this->get_link_url( $item );
    	$text  = number_format_i18n( $count ) . ' ' . $this->get_label( $item, $count );
    	$text  = $this->maybe_link( $text, $href );
    
    	return $this->get_markup( $text, $item['type'] );
    }

    I have PHP 7.0.12 running and WP 4.8.2

    Can’t explain why it works or what was wrong exactly but maybe it is helpfull for somebody.

    EDIT:
    The author of class-gamajo-dashboard-glancer.php has fixed the error more elegant – of course ??
    https://github.com/GaryJones/Gamajo-Dashboard-Glancer/blob/develop/class-gamajo-dashboard-glancer.php

    Just replace line 123 with this:
    $count = (int) $num_posts->{$item['status']};

    • This reply was modified 7 years, 4 months ago by luckyfella73.
    • This reply was modified 7 years, 4 months ago by luckyfella73.
    Plugin Author Vishal Kothari

    (@ashokrane)

    @luckyfella73, Thank you for pitching in.

    We are releasing an update for this plugin in 1st week of November where this issue will be fixed.

    @ashokrane
    thanks for your feedback and nice you are going to release an update soon!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Notice messages in WP dashboard’ is closed to new replies.