Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter etesea

    (@etesea)

    Hi Enrico,

    Sure, will do!
    Thanks again

    Thread Starter etesea

    (@etesea)

    Marking this as resolved

    Thread Starter etesea

    (@etesea)

    Hi Enrico,

    Thank you for taking time to install ACF and test it! That, essentially, helped me find my mistake!
    Since it was proven that maps worked fine with ACF, I decided to create another copy of the theme with the minimum amount of basic php files and then add additional php/js files one by one. The reason maps didn’t load in my case turned out to be very simple – the minified file with all js libraries used in the theme have been inherited from the front end, and it held another jQuery include. So, basically there were two jquery files added – one WP default, and another in minified file.

    Thank you for helping me find this issue and thank you for your time and great support for the plugin!

    Thread Starter etesea

    (@etesea)

    Hello again,

    And thanks again for taking time to look into this!

    Basically, there’s no sense in disabling ACF plugin, because current theme totally consists of custom reusable blocks created with it. So no specific page templates are used for pages, and no content would be visible without ACF (all default blocks are disabled). Therefore, it’s important for these two plugins to coexsist.
    Again, when I change theme to default, the map is visible without any additional actions.

    I’ve changed line 553 in rvm_shortcode.php, but, unfortunately, errors are still present.

    I’m not sure why you do not receive issues in console, I have them in different testing environments, but, just in case, I will try to implement another one and check again ??

    Again, if you have any other suggestions, I would appreciate them a lot! Meanwhile, if this isn’t currently solvable, I will check plan B – see whether map is loaded in case I use a custom page template.

    Anyway, thanks for your time and effort!

    P.S. In case this might be useful, Query Monitor plugin shows this suppressed notice: “Methods with the same name as their class will not be constructors in a future version of PHP; rvm_widget has a deprecated constructor” (line 14 of rvw_widget.php)

    • This reply was modified 4 years, 7 months ago by etesea.
    Thread Starter etesea

    (@etesea)

    Hi Enrico,

    Thank you for the quick reply!
    I’ve disabled all plugins except Advance Custom Fields, which are essential for the custom theme I’m working on. I’m using custom blocks added through ACF, all default Gutenberg blocks have been disabled except for Widgets –> shortcode.
    jQuery script is loaded in head, script for Vector Maps loads after jQuery but errors are still present.

    So, I’ve created several pages for the testing purposes, all of them use default maps:
    1. Italy map -> https://20304050.hqsite.online/testxc/italy-map/
    Map is added through to a custom widget (added with register sidebar function)
    2.Camera map -> https://20304050.hqsite.online/testxc/camera-map/
    Shortcode is added through Widgets –> shortcode.
    3.World map -> https://20304050.hqsite.online/testxc/world-map/
    Shortcode is added through Widgets –> shortcode.

    Thank you for looking into these issues!

Viewing 5 replies - 1 through 5 (of 5 total)