Warning: Illegal offset type in isset or empty in
-
I am new to bbpress and I keep getting the following error in the Topic page of my forum:
Warning: Illegal offset type in isset or empty in /home/postpr7/public_html/aquariumcarebasics.com/wp-includes/post.php on line 1060
Not sure what to do.
Any ideas?
I am running WP 3.7.1 and bbpress 2.5
Please let me know
-
Tried testing on your forum, but your forums disappeared while I was looking around.
Can you try reinstalling bbPress? I can’t see any reason why
get_post_type_object()
would fail in any bbPress context.thank you for getting back to me so quickly, I did an uninstall and fresh install of bbpress, I made a new forum and a new topic, and I am still getting the same error. Here are the links:
http://www.aquariumcarebasics.com/
http://www.aquariumcarebasics.com/forum/ (forum index page, using shortcode)
http://www.aquariumcarebasics.com/discussion/bamboo-shrimp-care/ (forum page)
http://www.aquariumcarebasics.com/topic/best-temperature-bamoo-shrimp/ (topic page, with error)Warning: Illegal offset type in isset or empty in /home/postpr7/public_html/aquariumcarebasics.com/wp-includes/post.php on line 1060
Please let me know what you think!
I have not heard back from the board in a while so I went ahead and did another uninstall and fresh install of bbpress. Before reinstalling bbpress again, I repaired and optimized my database and my site does not have any other errors.
I followed the exact steps in the book bbpress complete. I am running twenty-twelve theme with WP 3.7.1 and bbpress 2.5. I left all defaults in place and I still get the error when accessing topics.
Warning: Illegal offset type in isset or empty in /home/postpr7/public_html/aquariumcarebasics.com/wp-includes/post.php on line 1060
Here are the links to check out:
http://www.aquariumcarebasics.com/forums/
http://www.aquariumcarebasics.com/forums/forum/bamboo-shrimp-care/
http://www.aquariumcarebasics.com/forums/topic/best-temperature-bamboo-shrimp/Please let me know what you think
Thanks!
Hi, i’m registered on your site to test this problem… Is strange problem..
This issue was only in a single topic template.. please.. Open File content-single-topic.php and backup it..
On line 28 remove entire this:
<?php if ( bbp_show_lead_topic() ) : ?> <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?> <?php endif; ?>
This is only a test to see if anything happens..
You have another problem.. If i logout from yuor site i cannot view my test topic.. i see only your..
If i get login i see all..
Trying to sort my way through this. I have a dummy site set up on the same ISP. Running WP 3.7.1 and bbpress 2.5. Both a fresh install, and bbpress is working without an error.
So does that mean I may have a conflict with one of my plugins?
Maybe… have you a cache plugin active? Try to disable all plugin and use only bbpress!!
If you search on google your problem you aren’t alone… many many sites have it but not with bbpress!!
I am in via FTP. where is the location of “content-single-topic.php”?
Yes, I run W3 Total Cache
Try to disable it..
I think you have a plugin registering a post type incorrectly, and then core complains.
Content-single-topic.php is in plugin/bbpress/templates/default/bbpress/
What you have changed? i cannot see error now 😀
And.. i see all topic and i not logged in Yeaahhh!!
Yes, I agree…I have a plugin registering a post type incorrectly. Thanks for your help. I disabled all of my plugins except the one for the WP Lightbox Ultimate & Meta Slider, and the error went away. Now I will make a cup of coffee and activate one plugin at a time to see if / when the error comes back.
Will report back to the forum as soon as I figure it out, so maybe it can help someone else.
Thanks again!
http://www.aquariumcarebasics.comWell.. We wait to have info from you… 🙂
I figured it out…bbpress was in conflict with a plugin called “Advanced Post Types Order”. By disabling all plugins and turning them on one at a time, I found out that this was the plugin that was causing the conflict / error in bbpress.
Of course, I proceeded in reverse alphabetical order working backwards from the W’s and “Advanced Post Types Order” was the last one I checked (first on the list going alphabetically), knowing my luck, I should have bet money on that.
Anyway, that is one problem solved. Thanks to the forum for the help, support and hand-holding.
My problems now is that “Advanced Post Types Order” is a plugin that I like and need. I will recreate the error on my dummy site and submit it to the authors of “Advanced Post Types Order” because I think they would like to know….because its bbpress.
In the meantime, is there any alternative to this plugin that allows me to order my posts?
Please let me know, thanks!
Hi, this type of error is also here: https://wordpress.org/support/topic/plugin-post-types-order-advanced-version-illegal-offset-type-error
You add a topic in support forum of this plugin…
Nice, glad the issue is resolved, thanks @freewpress for digging into this 🙂
Follow up also https://wordpress.org/support/topic/plugin-conflict-with-bbress-warning-illegal-offset-type
I just wanted to round off the topic in case someone else ever has an issue with this.
I contacted the makers of “Advanced Post Types Order” who advised that a version exists that resolves this problem: Version 2.5.9.2. I uploaded and activated and the error went away.
No problem for me Stephen… I like bbpress…
- You must be logged in to reply to this topic.