cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
66 stars 15 forks source link

Compatibility with WPML #717

Closed vpanugaling closed 8 years ago

vpanugaling commented 9 years ago

Good day, as I installed the wpml plugin there's an error in geo-mashup-db.php

_Fatal error: Call to undefined method SitePress::posts_joinfilter() in /CodeJet/wp-content/plugins/geo-mashup/geo-mashup-db.php on line 1664

As I can see in the code you add some configuration to make it work with wpml

cyberhobo commented 9 years ago

I've applied for WPML's compatibility program - hopefully they'll help me resolve this.

senlin commented 9 years ago

Huge +1 for that @cyberhobo Can you update this thread once compatible?

cyberhobo commented 9 years ago

Yes, I'll try to keep this updated. I got a quick response from the support team, but haven't heard back from the developers yet.

On Tue, Aug 11, 2015 at 1:28 PM, Piet Bos notifications@github.com wrote:

Huge +1 for that @cyberhobo https://github.com/cyberhobo Can you update this thread once compatible?

— Reply to this email directly or view it on GitHub https://github.com/cyberhobo/wordpress-geo-mashup/issues/717#issuecomment-130056762 .

senlin commented 9 years ago

Great thanks. You might need to follow up with the devs on that, I think the queue with requests is getting longer and longer :)

twentyfortysix commented 9 years ago

I will be happy if this issue would be solved soon.. Just wanna let you know ;)

cyberhobo commented 9 years ago

I'm in contact with a WPML developer, and they have an integration instance set up. I may need help setting up test cases there, if so I'll ask here.

janhuntjens commented 9 years ago

Have you got any news on this? I'm holding back my WPML updates because of this. I assume it's more complicated than my first thoughts, but didn't they just rename the posts_join_filter() function?

jj-webholism commented 8 years ago

Was wondering if there's been any movement, or if there's an idea of timescales on this? WPML is long overdue for being upgraded, but this will break Geo Mashup. I'd rather stick with Geo Mashup, but if it's going to be another few months for a fix, we might need to sadly seek out an alternative. :(

Any update would be greatly appreciated.

cyberhobo commented 8 years ago

I have been talking with the WPML devs and they did set up an integration site, but I can't debug or experiment with code there. I'm hoping they'll give me a copy of WPML so I can work on a new integration. If so I'll give it a shot over the holidays.

If anyone more familiar with WPML wants to take a stab at a fix, I'd be happy to review pull requests. I think the relevant historical issues and fixes are these:

The original issue: https://github.com/cyberhobo/wordpress-geo-mashup/issues/607 attempted solution: https://github.com/cyberhobo/wordpress-geo-mashup/commit/bc0a5bae2f99eb5874be37325d324a06fcb48791

followup issue: https://github.com/cyberhobo/wordpress-geo-mashup/issues/627 followup commit: https://github.com/cyberhobo/wordpress-geo-mashup/commit/39294262dfcb2df4a1317b18fff400a685cb90df

cyberhobo commented 8 years ago

I've taken a stab at an updated integration. I can verify that it removes the error messages, but I'd like confirmation that maps remain correct on a real WPML installation if possible. You can try it by replacing your geo-mashup-db.php file (version 1.8.6) with this one: https://raw.githubusercontent.com/cyberhobo/wordpress-geo-mashup/9413a08793a9a3ff7519d970a704df8a7f18b20c/geo-mashup-db.php

senlin commented 8 years ago

Thanks Dylan, this seems to work very well. I am now able to add a location per language (for example an office location). Of course this is only one test case, I'm sure you want to hear from others too.

One thing I noticed is that the javascript is throwing a warning in the backend: Google Maps API warning: SensorNotRequired: https://developers.google.com/maps/documentation/javascript/error-messages util.js:32

senlin commented 8 years ago

I think it would be a nice idea if Global Map could work in such a way that it grabs the location of each individual language and displays them in a global map, but that probably is a bit too much to ask for :)

cyberhobo commented 8 years ago

Thanks Piet! This will be all I can manage for 1.8.7 I think. I did address the sensor warning in issue #732.

senlin commented 8 years ago

Already great that the WPML bug is finally squashed! Thanks for all your hard work!