Info
- 6 posts
- 2 voices
- Started 7 months ago by binarymoon
- Latest reply from binarymoon
- This topic is not resolved
Error saving forum settings
-
- Posted 7 months ago #
In the WordPress admin I am getting an error saving forum settings.
Warning: intval() expects parameter 2 to be long, string given in /xxx/xxx/xxx/wp-includes/plugin.php on line 170
Because of this error I also get further errors when using the TwentyTen bbpress theme.
Warning: Division by zero in /xxx/xxx/xxx/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php on line 382
This is happening because get_option('_bbp_replies_per_page'); is now empty
-
- Posted 7 months ago #
I disabled WP_DEBUG in wp-config.php and resaved and the errors went away. Still, I always develop with WP_DEBUG enabled so it would be good if I could test things without getting errors.
-
- Posted 7 months ago #
Why would you want 0 replies per page?
-
- Posted 7 months ago #
That's the whole point - I didn't set it to 0. I was trying to set the number smaller to see what happens when topics get split into pages (which incidentally doesn't seem to happen).
To reproduce enable WP_DEBUG and try saving a setting in the bbpress control panel. I got all sorts of errors when I did that.
In addition I have not yet been able to edit a setting. If I disable WP_DEBUG then the page refreshes when I press save but the settings do not get updated.
Please note I am using WP3.3 nightlies - so perhaps something has changed there.
-
- Posted 7 months ago #
Tested this on 3 different installs and cannot duplicate. Something else must be conflicting somewhere.
-
- Posted 7 months ago #
I would be happy to give you access to my test setup if you want to see it for yourself?
You can email me here if you're interested - http://www.binarymoon.co.uk/contact/
-
You must log in to post.