• Resolved leewilshire

    (@leewilshire)


    Hi Steve

    I’ve been having a bit of an issue with Canalplan displaying maps on blog pages for some time but have only had the time to troubleshoot it myself now.

    I have a Multisite install with canalplan active on a site here: boating.leewilshire.com

    The posts display correctly and pull in route data via the CPRS tag – the google map though doesn’t display – looks like canalplan is putting in a blank DIV of the correct size but not populating the google map itself.

    The other weird thing is on the trips page boating.leewilshire.com/trips/ the links fail to work instead of having the “trips” prefix to the route id they come through as “UNDEFINED” – manually changing them to “trips” works.

    I have disabled everything else plugin wise and it is still happening, I wonder if it is simply a corrupted cache or config file. Before I go digging around in the plugin itself I thought I’d give you heads up and ask for help!

    Cheers
    Lee

    PS – boat tracking on the beta site looks good!

    https://wordpress.org/plugins/canalplan-ac/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Steve

    (@steveatty)

    Google maps now work differently – the div should always be empty – the map code is put out later.

    I think you’ve got the Canalplan Location Widget sitting somewhere on a side bar but its not got valid location data. So basically its blowing up the script. I’ll work on a fix to basically stop that happening.

    If you go to the general settings page for canalplan what does it say under Route Page Slug?

    It should say something like :

    The Route Page Slug is the name of the page you are using for your Route Handling page. The page needs to contain the following code to work : {BLOGGEDROUTES}.

    The Site Administrator has set the page slug for blogged routes to be ‘ trips’ so you need to make sure that http://blogs.canalplan.org.uk/mintball/trips exists

    It might be because I forgot to update the documentation – if you’ve renamed and edited the canalplan_multisite.php file then it needs to be located in the uploads directory under wp-content.

    Plugin Author Steve

    (@steveatty)

    I think I’ve fixed the problem with the Location Widget blowing out the other maps on the page.

    I can zip it all up and you can get it and manually replace the files if you feel confident?

    Thread Starter leewilshire

    (@leewilshire)

    Hi Steve

    Your assessment is spot on. Tested it by removing the widget and the maps popped right back up.

    I am happy to manually replace files, however if the fix is going to be rolled into an update of the plugin at some point I’ll happily remove the location widget for now as it’s of minimal relevance.

    Either way is fine by me, whatever is least hassle for you.

    Cheers!
    L

    Plugin Author Steve

    (@steveatty)

    If you set your location using the Location Menu (you can manually enter your lat and long or try to get it from the browser, or you can search for a canalplan location) then the widget shouldn’t fail.

    I’ll be pushing the fix out tonight…

    Plugin Author Steve

    (@steveatty)

    Did you look at my suggested stuff to do with the trip links having UNDEFINED in them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPRM tag failing & other oddities’ is closed to new replies.