BBPress error in error log

I am getting this error:

PHP Warning: A non-numeric value encountered in /home/donnadont/public_html/wp-content/plugins/bbpress/includes/forums/template.php on line 1504

I looked it up on their forum and the last time someone had the error, it was a theme error, and I’m aware that X “integrates” certain plugins, and also that BBPress is one of them. So any chance this is an error in my theme. Because I looked at the code in referenced page, and it is correct, and should not cause the error. (but I wouldn’t begin to know where to go look in the theme files for where you guys did the integration)

I should add that the error is not new. I just happened to check the log. It’s been there at least since October last year, which is probably about the time I added the forum, so the date may not be relevant at all.

Here is the link to the other solution, which was over a year ago: https://bbpress.org/forums/topic/non-numeric-value-in-forum-template/#post-190954

Thanks. I know I’ve been a little “short” with you guys in the past when I’ve been frustrated, but I do think it’s a great theme, and you guys do amazing work. I guess I should say so once in a while… :slight_smile:

Hi there,

Actually, that is a PHP Warning and not an error, so there will be no problem using the plugin and the theme while that warning presents. You can simply turn the WordPress debug mode off to prevent showing the warning on the front end of your website:

https://codex.wordpress.org/Debugging_in_WordPress

Now regarding the warning itself, I am not sure if this is something related to our theme as it refers to the actual file inside the plugin. But to be on the safe side, please change the theme from X to the default WordPress theme temporarily and check the case and see if the warning is there.

If yes then our theme is not generating the warning and it is related to the plugin itself. If no then it might be something related to our theme.

Meanwhile, I strongly suggest that you update the PHP to version 5.6 or 7.1 and test the case.

Thank you.

already running 7.1, and all is current…

Hi there,

You did not mention the error when your theme from X to default WordPress theme. What was the result then? I strongly suspect that our theme causes the problem and it must be something related to the plugin.

But anyway as I mentioned that is not an error and it is a warning so you can simply ignore that.

Thank you.

it went away when I changed themes

Hi,

You mean it only happens when xtheme is active?

Would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks

1 Like

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