AnsPress is intefering with my theme

4.98K viewsCore
0

I’m using the Make theme from Theme Foundry and when creating sections on a page unrelated to AnsPress I’m getting this error:

Warning: Missing argument 2 for anspress_theme::the_title() in /home/domain/public_html/mysite.com/wp-content/plugins/anspress-question-answer/includes/anspress-theme.php on line 120

In looking into the file, I see that you are using a public function called the_title() – using this function appears to be causing some problems elsewhere outside of AnsPress. This is a rather generic function name.

Can you look into this please?

1

there was actually problem in line 120 in anspress-question-answer/includes/anspress-theme.php and the solution is by replacing this line “120”:
public function the_title( $title, $id ) {
with this :
public function the_title( $title, $id = null ) {
to make the function work with null id

Thanks for pointing it out.

0

As you can see, anspress_theme::the_title() this means the_title() is inside anspress_theme object, so there should not be any conflict.
BTW, This functions are already removed from 2.0