Plugin (GamiPress Leadershipboard) conflict

I’m using Pro 4.3.3 with a child theme and get the error message below on the page where I have put the shortcode to display the GamiPress Leadershipboard. All other functions works normal. When I change to a default theme (Twenty TwentyOne) the problem disappear and the Leadershipboard displays as it should.

Fatal error : Uncaught ArgumentCountError: Too few arguments to function Cornerstone_Element_Front_End::begin_excerpt(), 1 passed in /home/galentupp/public_html/wp-includes/class-wp-hook.php on line 292 and exactly 2 expected in /home/galentupp/public_html/wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php:49 Stack trace: #0 /home/galentupp/public_html/wp-includes/class-wp-hook.php(292): Cornerstone_Element_Front_End->begin_excerpt(’’) #1 /home/galentupp/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(’’, Array) #2 /home/galentupp/public_html/wp-content/plugins/gamipress-leaderboards/templates/leaderboard.php(41): apply_filters(‘get_the_excerpt’, ‘’) #3 /home/galentupp/public_html/wp-includes/template.php(732): require(’/home/galentupp…’) #4 /home/galentupp/public_html/wp-content/plugins/gamipress/includes/template-functions.php(191): load_template(’/home/galentupp…’, false) #5 /home/galentupp/public_html/wp-content/plugins/gamipress/includes/template-functions.php(1 in /home/galentupp/public_html/wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php on line 49

Hi @CyberBengt,

We really don’t have tested this plugin with the theme and not even received any compatibility issue with it till now. I would suggest you contact the plugin author on this.
Although we can’t guarantee a fix we’ll be interested to know why our theme is causing such issues you described if proven. To make sure that is our theme related issue, I would suggest you troubleshoot few common issues:

1.Plugin Conflict
2.Theme Update related issue
3.Child Theme Related issue
4.CSS/JS Customization

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps and you are still getting the issue, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hey @CyberBengt,

This is a known conflict. This can be temporarily be fixed by updating line 49 of the class-element-front-end.php file that is located in /wp-content/themes/pro/cornerstone/includes/classes/elements/

Change $text, $post to $text = "", $post = 1

image

Hope that helps.

Thank’s @christian

That solved the problem. But I suppose the problem will return next time I update the theme, or do you include that fix in next update?

Best Regards
Bengt

Hello @CyberBengt,

We have already reported the issue and the issue is in our issue tracker for our development team. There is no ETA at the moment so I would request you, please stay tuned for succeeding theme updates.

Thanks for understanding

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.