Site logo

Archived topic

Blank screen on bbPress topics

28 replies · Started by Miss on January 18, 2019

Viewing posts 1–15 of 29

Hi there,

I have today installed bbPress to https://cbdsiblings.com and the forums work correctly however the topics return a blank screen.

I have done a lot of investigating and it seems that the issue is due to a theme conflict, however I cannot find anything on GeneratePress and the other themes which have been resolved hold different code in the .php files to fix it.

Please can you advise how to proceed.

Many thanks in advance,

Sophie

Hi there,

we use BBPress on this support forum, so something else must be conflicting. Couple of tests:

1. Rebuild permalinks - Dashboard > Settings > Permalinks - hit save a couple of times to refresh.
2. Try #1 here:
https://docs.generatepress.com/article/debugging-tips/

Let me know.

Hi David,

Thanks for your quick response and apologies for the delay in coming back to you.

I had already tried resetting permalink settings a few times with no joy, I have also disabled all plugins except bbPress with same result.

I initially too thought that permalinks were the problem but after reading a lot of similar queries on forums I'm quite sure now that it's theme related, as with some minor tweaks to various theme's php I have seen this query resolved a few times - it just doesn't work for me as GP theme has different code so I can't spot what needs to be amended.

An example of resolved query:

https://bbpress.org/forums/topic/bbpress-forum-blank-pages/

"Take the shortcode of: [ bbp-forum-index ] and add it to a blank page.

Does that create a visible forum index?

If so, then your problem imho is that your theme is hijacking the content area in a way that prevents the new bbPress code from working. As such, the solution would be found most likely in your theme’s page.php or similar, where the default archive pages are created. I don’t have access to the Gonzo theme since it is on ThemeForest ;-(

but you can see in my recent post, we fixed a similar solution for Canvas 5 from WooThemes. https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/

If not, then please share the link to the page where you posted the shortcode so I can see the underlying output."

And also...

"No,

the solution is to fix the one page template in your parent theme spit doesn’t hijack the content area and force an excerpt to appear (because there is one with bbPress!)

likely there is a conditional on the page.php template in that theme looking if page is single… See my other post link above."

I hope this helps to shed some light?

Thanks so much in advance!

Sophie

Just to confirm - the shortcode mentioned above - bbp-forum-index - works perfectly.

Forum URL: https://cbdsiblings.com/community/

I created a test topic which isn't showing in the forum index table topic count, and none of the topics load a topic page.

Thanks again,

Sophie

Apologies also to confirm, I have increased my memory limit, enabled debug mode and received no errors, and tested on original theme - however this does not resolve the issue either...

Thanks, Sophie

Odd, as we are using BBPress here and i can see the Shortcode you added above is rendering. Have you got anything added to Hooks or are there custom functions or templates added to the site?

Hi both,

Thanks for your replies. Ah yes I didn't realise I could make the debug log that way - so it returns:

PHP Notice: Undefined index: bbp_template_before_single_forum in /home2/intuneb2/public_html/cbdsiblings-com/wp-content/plugins/header-footer/plugin.php on line 248

Line 248 section referred to:

function hefo_bbp_template_before_single_forum() {
global $hefo_options, $hefo_is_mobile, $wpdb, $post;

if ($hefo_is_mobile && isset($hefo_options['mobile_bbp_template_before_single_forum_enabled'])) {
echo hefo_execute(hefo_replace($hefo_options['mobile_bbp_template_before_single_forum']));
} else {
***LINE 248>> echo hefo_execute(hefo_replace($hefo_options['bbp_template_before_single_forum']));
}
}

Do you know how this needs to be amended to fix it?

Thanks so much!

Sophie

Hi there,

which Header Footer plugin are you using? And whats the specific need for it?

Hi David,

I use Head, Footer and Post Injections Version 3.1.2 | By Stefano Lissa

This is for Google Tag Manager installation, if I remember correctly I chose this one as it allows for after the body tag injection, plus php.

So I have moved the GTM snippet into theme header.php and deactivated/deleted the plugin.

I am still unable to load the pages. I ran a new error log:

[23-Jan-2019 01:13:26 UTC] PHP Parse error: syntax error, unexpected '}', expecting end of file in /home2/intuneb2/public_html/cbdsiblings-com/wp-content/themes/generatepress_child/header.php on line 32

This error relates directly to a Mailchimp script and so is completely unrelated, I have removed the script entirely for now anyway and no change in bbPress performance...

I've now noticed that GP Premium will not update, and this is the error that I receive:

"Downloading update from https://generatepress.com/edd-sl/package_download/MTU0ODI2MDIzNzo1MjVmMWY0OWU1YjRhZGMzYWQ5ZjE2YjM3NGI0YTM2YjoyNTQ0MTphMzk2MTYwNjI1YmI2YzgzNzFlYzQ4YjE0M2IyMjNiZjpodHRwc0AvL2NiZHNpYmxpbmdzLmNvbTow…

Download failed. Unauthorized"

I did a search and followed the instructions here - https://docs.generatepress.com/article/updating-issues/#getting-an-unauthorized-message

App has now updated, still no change with bbPress and no new errors on the log for previous half an hour...this has really got me!

Many thanks,

Sophie

Hi Tom,

My GTM script is copied directly from GTM and in the same format as in your article, tested and working perfectly.

As mentioned above, the error actually referred to a Mailchimp verification script which I have removed and there are no long any errors showing at all.

Many thanks,

Sophie

Ah, awesome! So it's all working now that the Header/Footer plugin isn't needed?

No, there is no change - there are no errors but the topics are still not working. Apologies that I was unclear!

Meaning I have left wpconfig as:

efine('WP_DEBUG', true);

define( 'WP_DEBUG_LOG', true );\

I have deleted the error log and retested, and there are no errors....

This archived topic is closed to new replies.