• Resolved rutvikparikh

    (@rutvikparikh)


    Hello Sir,
    As soon as we try to activate the plugin, it throws the fatal error and our site is getting crashed. We are not able to understand that what goes wrong. Can you please try to help us with the solution of this error message.
    ” Fatal error: Call to undefined function a_z_listing_add_styling() in /home/content/a2pnexwpnas02_data02/70/3804970/html/wp-content/plugins/a-z-listing/widgets/a-z-widget.php on line 21″

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    The first thing to check is that you are running the latest version of the plugin. This was a known issue in a previous version which _should_ be fixed in 1.5.1.

    Thread Starter rutvikparikh

    (@rutvikparikh)

    oh, absolutely we are using the updated version of the plugin.

    Plugin Author Dani Llewellyn

    (@diddledani)

    ok, I’m not entirely sure how it broke, because I definitely fixed it in 1.5.0 so this appears to be a regression. I’ve uploaded 1.5.2 to attempt to fix it. Locally this new version definitely works for me, so hopefully it will fix the issue for you too ??

    Thread Starter rutvikparikh

    (@rutvikparikh)

    Perfect. Its not throwing any error any more. But now when I try to add the widget, it is not enable any index. All the characters are disabled.

    Thread Starter rutvikparikh

    (@rutvikparikh)

    Hello Author,

    What did you just changed ? Its not working even with the page now. Before it was not working with the widget, now its not even working with the page.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Oh, deary me, I must be fat fingered tonight ?? I b0rked that last update. I’ve definitely fixed it now and uploaded another version which I’m sure works as expected. Version 1.5.3.

    Thread Starter rutvikparikh

    (@rutvikparikh)

    Nope, still not. It throws an error saying
    ” Catchable fatal error: Object of class WP_Post could not be converted to string in /home/content/a2pnexwpnas02_data02/70/3804970/html/wp-content/plugins/a-z-listing/partials/a-z-listing.class.php on line 305″

    Plugin Author Dani Llewellyn

    (@diddledani)

    can you show me what is on line 305 of that file, because the version I have definitely should not be receiving a WP_Post object.

    This is the function around that line in my copy:

    public function index_reduce( $carry, $value ) {
    	$v = array_unique( $value ); // this is line 305
    	if ( ! empty( $v ) ) {
    		$carry[] = $v;
    	}
    	return $carry;
    }
    Thread Starter rutvikparikh

    (@rutvikparikh)

    Yea, I am having the same code in my file.

    */
    	public function index_reduce( $carry, $value ) {
    		$v = array_unique( $value ); // Line 305
    		if ( ! empty( $v ) ) {
    			$carry[] = $v;
    		}
    		return $carry;
    	}
    
    	/**

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 7 years, 8 months ago by bdbrown.
    • This reply was modified 7 years, 8 months ago by bdbrown.
    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ve released a new version 1.5.4 which should fix all the issues. I’ll have to revisit the code above at a later date but everything should work again now. I’ve also instituted a testing regimen to ensure I’m less likely to break things in future updates.

    Thread Starter rutvikparikh

    (@rutvikparikh)

    Perfect. Much appreciated your response and now it seems that its working absolutely as per what we were looking for. Thank You.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal error: Call to undefined function a_z_listing_add_styling() in /home/conte’ is closed to new replies.