Viewing 7 replies - 31 through 37 (of 37 total)
  • Thread Starter GevoelVoorHumus

    (@gevoelvoorhumus)

    Push a big update and then go on vacation? Good timing ??

    Thanks for your help and sorry to have bothered you. There was no rush for me!

    Cheers,

    Marc

    @hupe13 – 5 hours, 9 minutes ago

    My issues with version 3.x is WordPress stop working when enabling plugin. Disabling plugin – WordPress runs ok.

    My setup:

    • Danish locale
    • WordPress 5.5
    • AND (Due to old theme) PHP 5.6! – which is probably the course of the problems with version 3.x
    • Using “AddType application/x-httpd-php56 .php” in .htaccess forcing WP to run on php 5.6, which usually works ok.

    Plugin Contributor hupe13

    (@hupe13)

    @gyldensaa:
    Should I give you a lecture on internet security now? Please change your theme and update!

    Several maps may be broken due to changing url ampersand to & amp;
    shortcodes/class.map-shortcode.php #317:
    var baseUrl = '<?php echo htmlspecialchars($tileurl, ENT_QUOTES); ?>';

    Quick fix to change back to the previous version:
    var baseUrl = '<?php echo $tileurl; ?>';

    • This reply was modified 3 years, 4 months ago by lophas.
    • This reply was modified 3 years, 4 months ago by lophas.
    • This reply was modified 3 years, 4 months ago by lophas.
    Plugin Author bozdoz

    (@bozdoz)

    @lophas thanks for the heads up! I should change this to use a filter validation for URLs specifically.

    Plugin Author bozdoz

    (@bozdoz)

    @gevoelvoorhumus I cannot figure out how to reproduce this issue.

    Based on the screenshot you gave me, I am guessing you are just using a plain [leaflet-map] shortcode, using the default lat/lng values. I don’t see how those values are passing the number validation:

    filter_var($out, FILTER_VALIDATE_FLOAT, array('options' => array('decimal' => '.')));

    That should force the number to have a ‘.’ as a decimal, and I think return null otherwise (not return the comma values)

    Also, I’ve set up my development machine to use php 5.6, and wordpress 5.5.3, and switched my language to Dansk (spits out the locale “da_DK”), but I still can’t get the commas to remain in the script.

    Thread Starter GevoelVoorHumus

    (@gevoelvoorhumus)

    I don’t know what the changed were in 3.0.2., but they work for me! I also put the map back with my custom coordinates, and that also works fine!

    So thank you! Maybe it had something to do with what @lophas said?

Viewing 7 replies - 31 through 37 (of 37 total)
  • The topic ‘All maps are gone’ is closed to new replies.