Home › Forums › Calendar Products › Events Calendar PRO › Map view not working with BuddyBoss Wall
- This topic has 13 replies, 2 voices, and was last updated 10 years, 11 months ago by
Barry.
-
AuthorPosts
-
April 15, 2015 at 12:35 pm #955813
Brian
ParticipantI cannot get Events Calendar Pro map view to work with the BuddyBoss Wall plugin. The spinner, spins forever and no pins show up on the map.
It works fine with BuddyBoss Wall is deactivated.
What would cause this and how would I/you debug it? Thanks.
BuddyBoss Theme 4.1.9
BuddyBoss Wall 1.1.5
Events Calendar 3.9.1
Events Calendar Pro 2.92
BuddyPress 2.2.2.1
WordPress 4.1.1
disabled all other pluginsNot working:
http://buddyboss.clusterinteracti.netdna-cdn.com/wp-content/uploads/2015/04/map-view.pngWorking:
http://buddyboss.clusterinteracti.netdna-cdn.com/wp-content/uploads/2015/04/map-view-working.pngApril 15, 2015 at 3:47 pm #955876Barry
MemberI’m sorry you’re hitting up against difficulties, Brian: would it be possible to get a link to a live example of the problem, even if that is only on a basic test site?
April 15, 2015 at 11:07 pm #955951Brian
ParticipantHmmm. Not really because this is a dev site on my local machine. I can send you the plugin if that helps.
April 16, 2015 at 7:47 am #956033Barry
MemberSure, we can take a quick look (though I can’t offer any guarantees). Please feel free to upload a .zip of the plugin to your website or a service like Dropbox then provide the download link by private reply 🙂
April 16, 2015 at 10:55 am #956104Brian
ParticipantThis reply is private.
April 16, 2015 at 11:22 am #956110Barry
MemberSo map view (and map view pagination) continues to work when I activate both plugins: are there any further set up steps I’d need to run through? I did for instance position a BuddyBoss Wall widget on the map view page, again there was no issue.
If a particular setup process/configuration is required to see this we can still take a look – but I’d ask that you do this on a publicly accessible test site so we can take a look at it in situ 🙂
April 16, 2015 at 12:13 pm #956119Brian
ParticipantThis reply is private.
April 20, 2015 at 6:40 am #956627Barry
MemberHi Brian,
It worked perfectly as you said, and then I figured out what broke it.
Just change the line in wp-config.php from
define(‘WP_DEBUG’, false);
to
define(‘WP_DEBUG’, true);That is odd!
Again, I’m unable to replicate locally so perhaps there’s another factor at work here. If you switch to a clean installation – running just our plugins and BuddyPress/the wall plugin (and add nothing else) – do you still hit this with WP_DEBUG set to true?
If not, perhaps we can isolate some other setting that might be impacting?
April 20, 2015 at 9:48 am #956752Brian
ParticipantHi Berry,
That’s exactly what I did here:
http://acropedia.brianswebstudio.com/events/map/That is a clean install with just those plugins and the Twenty Fifteen theme with WP_DEBUG set to true.
As you can see from visiting that link, map view is broken.
April 20, 2015 at 9:14 pm #956927Barry
MemberWithin your wp-config.php file can you add (next to your WP_DEBUG definition):
define( 'SCRIPT_DEBUG', true );Then let me know when it’s in place? This will make it easier to track the chain of events.
April 20, 2015 at 9:37 pm #956934Brian
ParticipantThis reply is private.
April 21, 2015 at 3:47 pm #957165Barry
MemberThanks Brian, that helped!
(Thanks also for offering login credentials, however our current policy is not to accept login credentials that would give us even limited administrative access.)
It seems the breakage is because an error message is being inserted into some data which one of our map view scripts depends upon. In production of course you should not have WP_DEBUG/WP_DEBUG_DISPLAY on and this won’t happen there, but it would certainly be a problem when developing and testing.
However, I believe the problem’s source is actually BuddyBoss Wall itself:
- When WordPress’s plugins_loaded action fires – which is quite early on in the lifetime of a request – some BuddyBoss Wall logic runs
- Amongst other things, BuddyBoss_Wall_Plugin::setup_actions() is called and this tries to determine various things about the status of the current visitor
- Following the chain of events along, BuddyPress’s bp_setup_current_user() function is called which complains about being accessed so early – triggering the warning notice which is being injected into the data our own map view requires
So this ultimately is stemming from code in BuddyBoss Wall and it is probably worth pursuing this with the authors of that plugin – since it targets BuddyPress it ought to follow along with the best practices of that plugin and, as it stands (and I believe this is actually a general WordPress best practice), causing the user object to be initialized before $wp->init() is something of a “no no”.
Does that help here?
April 22, 2015 at 9:08 am #957397Brian
ParticipantYes, thank you Barry. You have been most helpful.
I will pass this information on to BuddyBoss developers in the hopes it can be resolved quickly.
Marking this as resolved for now.
Best,
BrianApril 22, 2015 at 9:17 am #957403Barry
MemberGreat, hopefully they can take it from here 🙂
What I’ll do at this point is close the topic (since it has been marked as resolved) but if you need anything further from our side for this issue please simply create a fresh topic and link back to this one to give some context to whichever team member takes it on.
Thanks again!
-
AuthorPosts
- The topic ‘Map view not working with BuddyBoss Wall’ is closed to new replies.
