Issue with Creating Replies in Admin – HTTP ERROR 500
-
Hi,
We are experiencing an issue with reply creation. While users can successfully create new replies on the frontend, we encounter an “HTTP ERROR 500” when attempting to create a reply from the admin panel.
Could you please provide guidance on how to resolve it? Let us know if you need any additional information or logs.
Dev site: https://zmartkund.se/tilrf/
WordPress 6.7.1
Theme: Divi 4.27.4 (but also when Twenty Twenty-Five)
bbPress: 2.6.11
-
I’d start by deactivating all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
Hi Robin
Thank you for your response.
We have already tried several troubleshooting steps, including:
Changing the theme.
Deactivating all plugins.
Contacting Divi (theme) support.
Contacting bbPress support.
Creating a new .htaccess file.
Uploading fresh WordPress core files.
Following the recommendations in this video: YouTube link.
Testing with the Health Check & Troubleshooting plugin.After extensive testing and investigation, our web hosting provider has concluded that bbPress is attempting to use an abnormally high amount of PHP memory. They have also provided us with an error log file that might help clarify the issue further. Please let me know how we can upload this.
We would appreciate any insights or suggestions you may have to resolve this problem.
Looking forward to your response.
I am just a volunteer here, there is no paid support. If you email me the log, I will take a quick look.
contact me via http://www.rewweb.co.uk/contact-me/
Hi Robin,
Thank you so much for your generous offer to help – we truly appreciate it!
After some troubleshooting, we have identified that the issue is related to our child theme. Given this, we would like to take another attempt at resolving it on our own before reaching out for further assistance.
Once again, thank you for your willingness to help – it means a lot! We will keep you updated if we need any further support.
no problem, I hope you get fixed soon 🙂
Possible Explanation for bbPress replies import issue
It seems we may have found an explanation for the issue with importing replies in BBPress.
From what we now understand, bbPress has changed the way replies are linked to topics. Previously, topics and forums were connected using the post parent meta field, making it easy to import and structure data. However, it appears that replies now reference a different column that contains the topic ID.
The issue arises because the old database contains topic IDs that are unique WordPress-generated values. When importing into the new site, these IDs don’t match because the new site generates different IDs for topics. As a result, replies are unable to connect to their corresponding topics since they are searching for IDs that do not exist in the new database.
- In the old database, the topic IDs are unique WordPress-generated values.
- When importing these into the new site, the IDs don’t match because the new site generates different IDs for the topics.
- As a result, the replies don’t know where to connect since they are searching for IDs that do not exist in the new database.
This change in how replies are structured seems to be the root cause of the problem. If anyone has encountered this before or has suggestions for handling ID mapping efficiently, feel free to share your insights.
If you have exported press from another site, and then imported- yes series, and post parents for topics and replies can be wrong where on the imported site there are existing users, posts or pages. There are no easy solutions – I have some code that should fix replies, but I am on holiday at the moment with no access
Does this mean that no one using bbPress can export old forum posts with content to a new website anymore?
This must be an issue that many people are experiencing.
Hi. I’m running a site with a brand-new forum. I haven’t imported anything and have only created a few test topics. I’m getting the same 500 error, and in my case PHP also tries to allocate memory endlessly.
Creating replies on the frontend works perfectly, but not via wp-admin → Replies → Add New Reply.
Every time I try, an empty reply is created with post_parent set to 0. I assume these empty replies are left floating around in cyberspace and have to be manually deleted from the database?
I’d also appreciate any help. I’m using the Blog FSE theme and the latest version of bbPress, together with the plugin “Enable bbPress for Block Themes”. We do not have a child theme active.
yes you are right, it does do that if the topic id is set to 0.
I’m pretty sure that this has not always been the case, so I suspect a newer version of software (say WordPress or php) is doing this.
I will take a look when I get a moment, but if you create a reply in the backend, then it must know what topic it is attached to, so you need to fill in the topic id.
If you complete a topic ID then it all works.
I suspect that very few people ever create a reply in the backend – users should not have access to this, so it is only moderators and keymasters that can see this – as without a topic ID it is pointless, and you would almost always be in the front end when you spotted that you needed to post a reply.
so thankyou for reporting this, and if you have a compelling reason to need to use the backend, do come back.
Hi. I don’t get any chance to enter a topic ID. The page crashes as soon as I click “Add New Reply”, and the form never loads at all.
I agree that normally there’s no real need to create replies via wp-admin. The reason I want to do it in this case is to paste content from comments on a regular post, in order to move an existing discussion into bbPress (see my other thread about importing individual posts and comments into bbPress). From the admin side it would be easier to create replies, attach them to a topic, change author and date, and paste the original text.
It is possible to do this via the frontend and then edit the replies in the backend, but that adds several extra steps. Also, since the “Add New Reply” function exists in wp-admin, I assumed it should work — and it didn’t feel right that the page crashes instead. 🙂
That said, if there is a more automated or cleaner way to import posts and their associated comments into bbPress, that would be much better, and in that case I wouldn’t really need to use Add New Reply in wp-admin at all.
(I am using latest wp and PHP 8.3 FPM)
- You must be logged in to reply to this topic.