• Resolved yt

    (@ar_m)


    Hi Oliver Juhas
    The Enable bbPress for Block Themes plugin is a great, lightweight, low-resource of host plugin.
    Personally, I would like to sincerely thank you for producing this plugin.

    My site uses the latest WordPress 6.8.2 version with the Block Theme 2025 template, which I use your plugin to display the forum.

    The problem with the forum is that:

    When you enter a word or phrase in the forum search, it gives the error:


    public_html/wp-includes/block-template.php on line 180


    in the header of site.

    I think it is related to the block-template.php file.

    If possible, I would like to request you to include a feature in your plugin that would fix this problem.

    I appreciate your help in advance

    • This topic was modified 4 months ago by yt.
Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author WebMan Design | Oliver Juhas

    (@webmandesign)

    Hi @ar_m.

    Thank you, I’m glad you like the plugin 🙂

    Please note that wp-includes/block-template.php file is a WordPress native file, not the plugin’s one. The issue might be caused by other means.

    When I test bbPress search functionality, it works perfectly fine for me.

    Can you provide more information about the issue:

    1. Is the forum search form rendered as a bbPress shortcode or do you use the one displayed in bbPress layouts/templates?
    2. Can you please provide URL to affected website?
    3. Is this a vanilla WordPress and plugins installation? If not, can you explain what have you changed?
    4. Can you provide steps to reproduce the issue?
    5. You can test a vanilla installation also at https://playground.wordpress.net/?plugin=bbpress&plugin=enable-bbp-block-theme
      I don’t get any error with this installation when testing both with bbPress search form shortcode (placed in the header of the site) or with search form rendered in bbPress layouts. Do you experience any issue here?

    Tip: I personally use the plugin on my support forum website at https://support.webmandesign.eu/ and you can see the bbPress search functionality works perfectly fine in there too.

    Best regards,

    Oliver

    Thread Starter yt

    (@ar_m)

    Hello Oliver
    Thanks for your detailed response.

    I will respond to your requests in order:

    1-Although I do not have much knowledge about coding, I do know that the wp-includes/block-template.php file is related to WordPress, not your plugin, but the error displayed in the forum header is related to line 180 of the above file, which is displayed on the forum as a result of activating your plugin.

    Today I checked the above again and the same problem remains

    In addition to the previous problem, today I also noticed another problem that occurs as a result of activating your plugin in the forum, which is:

    When clicking on any of the topic tags, nothing is displayed and instead two error lines errors are displayed in the forum header as follows:

    Warning: Undefined array key “archive” in /home/ … /public_html/wp-includes/block-template.php on line 180

    Warning: Undefined array key “archive” in /home/ … /public_html/wp-includes/block-template.php on line 180

    Which is similar to the previously reported error.

    2- You can check the search error in the forum by referring to my site’s forum address

    https://ghazavatonline.ir/forums/

    and entering a phrase in the forum search field

    You can also check the problem related to the failure to display topics assigned to tags, for example, by going to the following address

    https://ghazavatonline.ir/?p=100243

    and clicking on the word “تخلفات انتظامی قضات”

    or directly to the following link

    https://ghazavatonline.ir/forums/topic-tag/disciplinary-breaches-of-judges/

    You will notice that no tags are displayed, instead two lines of code are displayed in the forum header.


    3- I did not use any code to display the search form, but it is displayed by activating BBPress.


    4- A normal WordPress and plugin installation has been done and no changes have been made

    5- The website https://support.webmandesign.eu/

    is down and gives the error:
    This site can’t be reached

    Thank you in advance for your time to respond

    Best regards,

    AR_M

    Thread Starter yt

    (@ar_m)

    Sorry, I forgot to mention thatو

    I disabled your plugin once and enabled the “bbp style pack” plugin that I was working with before.

    Neither of the two problems mentioned regarding the search form nor the display of topics assigned to tags exist.

    So, my guess is that the two mentioned problems could probably be related to your plugin.

    Thread Starter yt

    (@ar_m)

    And the full error is as follows

    HP Warning: Undefined array key “archive” in /home/..…. /public_html/wp-includes/block-template.php on line 180

    which is repeated twice

    Plugin Author WebMan Design | Oliver Juhas

    (@webmandesign)

    Please understand I can not trace the source of the issue from the information provided here. I can not replicate the issue on my test server.

    Can you please test with https://playground.wordpress.net/?plugin=bbpress&plugin=enable-bbp-block-theme ? Is the issue happening there for you too? (Please do not install any other plugin, just use the native WordPress, Twenty Twenty-Five theme and bbPress and Enable bbPress for Block Themes plugins.)

    Have you tried to disable all the other plugins?
    Have you tried to reset all your theme modifications?

    If the issue persist, please provide admin access to your website (maybe contact me with direct message via WordPress slack if you still can not access my official support forum at https://support.webmandesign.eu/ ) so I can check personally (although it might be difficult for me as I don’t speak Persian or any other RTL language).
    If you provide the admin access, can I disable plugins on your website while testing?

    Alternatively, can you maybe export your theme via Site Editor and provide the exported ZIP file. I might have a look if the issue is related to your theme setup.

    PS: The https://support.webmandesign.eu/ website is active and does not throw any error for me. Not sure where are you accessing my website from, but my security plugin is blocking some IP addresses already due to strange activity. If you want to visit the website, please try using a VPN maybe.

    Plugin Author WebMan Design | Oliver Juhas

    (@webmandesign)

    Here, I’ve created a video of my test with https://playground.wordpress.net/?plugin=bbpress&plugin=enable-bbp-block-theme for you:

    Please test this yourself with the WordPress Playground link above. Does it work for you?

    Plugin Author WebMan Design | Oliver Juhas

    (@webmandesign)

    And here is a similar video with checking the error log:

    Moderator Support Moderator

    (@moderator)

    @webmandesign

    “If the issue persist, please provide admin access to your website”

    While I know you have the best of intentions, forum policy is that you not ask users for admin or server access. Users on the forums are not your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.

    If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.

    Thankfully are other ways to get information you need:

    *Ask the user to install the Health Check plugin and get the data that way.

    *Ask for a link to the http://pastebin.com/ or https://gist.github.com log of the user’s web server error log.
    *Ask the user to create and post a link to their phpinfo(); output.
    *Walk the user through enabling WP_DEBUG and how to log that output to a file and how to share that file.
    *Walk the user through basic troubleshooting steps such and disabling all other plugins, clear their cache and cookies and try again (the Health Check plugin can do this without impacting any site visitors).
    *Ask the user for the step-by-step directions on how they can reproduce the problem.

    You get the idea.

    We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.

    When you help users here and in public, you also help the next person with the same problem.

    Plugin Author WebMan Design | Oliver Juhas

    (@webmandesign)

    @moderator Thank you for the information. I completely understand. I’m trying my best to help user with the information provided.

    I can no longer edit the original message where I ask for admin access – I would like to strike it through.

    @ar_m please disregard the admin access request and follow the steps I provided to determine the source of the issue.

    @ar_m  and @webmandesign

    I have tried it with 2025 theme and just bbpress and this plugin, and cannot replicate the problem on my test site also.

    Given that it you say it works with style pack but not this plugin, then it may be an issue with this plugin and your particular site configuration but it may also not be! This plugin is a ‘purer’ (and better) version of how to get bbpress working with blocks than style pack.

    So if it works for you in webmandesign’s test site, then we are probably looking at a configuration difference.

    • This reply was modified 3 months, 3 weeks ago by Robin W.
    Thread Starter yt

    (@ar_m)

    Hello @webmandesign

    Thank you very much for your sincere efforts to solve my problem, sending links to the WordPress Playground, your site forum that was accessible with a VPN, and especially the two videos made on YouTube.

    Thread Starter yt

    (@ar_m)

    Hello @robin-w
    Thank you very much for your help in solving the problem.
    You are always ready to help users in the forums
    May God protect you

    Thread Starter yt

    (@ar_m)

    @webmandesign and @robin-w

    Fortunately, with your help, I managed to solve the problem with great effort.

    The cause of the problem is the content block in the archive template:

    Since the default WordPress 2025 theme block template, the archive template displays the entire content of each post and it is not possible to limit it to a few lines of text, I removed this block and replaced it with a summary block, which worked very well.

    With the installation of the “Enable bbPress for Block Themes” plugin, there was a problem in displaying search results and topics connected to the selected tag, which was described earlier.

    The problem was solved by resetting the archive template.
    Thank you for your help.

    Thread Starter yt

    (@ar_m)

    @webmandesign

    I wonder if, given the cause of the problem, it is possible to change your plugin to accommodate the removal of the content block in the archive format and replacing it with the abstract block.

    If so, I would be very grateful if it would be implemented in an update.

    Also, given that the plugin’s main page “Enable bbPress for Block Themes” in the plugin information section states that it has been tested with WordPress 6.7.2, please also consider testing with WordPress 6.8.2 if you are willing to do so.

    Best regards and best wishes for your continued success

    • This reply was modified 3 months, 3 weeks ago by yt.

    glad you are fixed 🙂

Viewing 15 replies - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.