Support » Plugin: Waymark » Warning error by new update

  • Resolved cameraspots1

    (@cameraspots1)


    Hi,

    Since the update i have an error.

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/waymark/inc/Waymark_Config.php on line 161

    Maybe you can check.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Joe Hawes

    (@morehawes)

    Hi @cameraspots1,

    Thanks for bringing this to my attention. I am not seeing this anywhere on my end, so I am unable to replicate.

    From the error I have created a release with a possible fix, which you can download here. In order to install this version you will need to either manually install it, or use a plugin that allows you to upload it through the WP Admin.

    If this does not resolve your issue please provide as many details as possible about where and when you are seeing this error.

    Thanks,

    Joe

    Thread Starter cameraspots1

    (@cameraspots1)

    Solved!

    I change only the Waymark_Config.php with your downloaded file. So a new manual installation was not necessary.

    And your mapbox key tutorial for basemaps is working very well!
    Maybe for others users you can put a link to your tutorial after the question mark in settings/basemaps. Now it is going directly to thunderforest. But this is only an idea.

    Good job

    Many thanks!

    Plugin Author Joe Hawes

    (@morehawes)

    Hi @cameraspots1,

    I change only the Waymark_Config.php with your downloaded file. So a new manual installation was not necessary.

    Glad that fix the issue, I will be sure to include the fix in the next update.

    Maybe for others users you can put a link to your tutorial after the question mark in settings/basemaps.

    Good idea, I will look at improving this.

    Thanks,

    Joe

    shadocmotard

    (@shadocmotard)

    Hello

    I get quite the same error, even after loading your fix :

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 157
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 161
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 157
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 161
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 157
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 161
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 157
    
    Warning: sizeof(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/waymark/inc/Waymark_Config.php on line 161

    This set of warning appears at 2 different locations :

    1/ above title
    2/ between the picture you choose to illustrate the post (sorry, I don’t know the English wording, in French: image mise en avant) and the text

    my config :

    WordPress V 5.6 French
    template : Screenr , but not relevant as I tried others and the same happened

    May you help ?

    Otherwise, it would be fine if you enrich the available icons to better differentiate, for example : churches, castles, museums, gardens,…

    Thanks

    Patrice

    Plugin Author Joe Hawes

    (@morehawes)

    Hi Patrice,

    Thanks for the details. Judging from the line numbers in the error messages, these appear to be from the plugin before the fix. Could you provide any errors you are getting with the 0.9.15-config_fix version activated?

    Cheers,

    Joe

    shadocmotard

    (@shadocmotard)

    Hello,

    it is working. I don’t know what happened as I changed the config.php file yesterday evening before posting to you. Either a wrong doing or not enough time for the server to update ?

    Anyway, anything is fine. Thanks for your help and this plugin

    Patrice

    shadocmotard

    (@shadocmotard)

    Hello

    it’s me again.

    I just noticed a small detail : I’m in the process of testing new templates. Whenever I test a new template (Preview ? button, near the Activate ? one) , I get some messages, but too quickly to be 100% sure they are the same and to be bothering.

    Patrice

    shadocmotard

    (@shadocmotard)

    I notice another issue. Somme templates interact with your plugin :
    – the map is shown
    – the GPS trackis invisible
    – the labels are shown (start,finish,beer …)

    as an example :
    – Screenr template OK
    – MIK no OK

    Patrice

    Plugin Author Joe Hawes

    (@morehawes)

    Hi @shadocmotard,

    I get some messages, but too quickly to be 100% sure they are the same and to be bothering.

    Try viewing the HTML source of the page, you might find them there. Alternatively, PHP error messages should be logged, but these might take a little finding on your setup.

    If these are Waymark related errors, but different from the ones shown above please can you provide them in a different support topic with as many details as possible?

    I notice another issue. Somme templates interact with your plugin :
    – the map is shown
    – the GPS trackis invisible
    – the labels are shown (start,finish,beer …)

    Please can you create a separate support topic for this and provide a link to your site so I can see this?

    Thanks,

    Joe

    shadocmotard

    (@shadocmotard)

    Hi

    I get some messages, but too quickly to be 100% sure they are the same and to be bothering.

    Try viewing the HTML source of the page, you might find them there. Alternatively, PHP error messages should be logged, but these might take a little finding on your setup.

    It seems that the messages are not relatedto you. Here they are (some in French, sorry)

    Cette page utilise la propriété non standard « zoom ». Envisagez d’utiliser calc() dans les valeurs des propriétés pertinentes ou utilisez « transform » avec « transform-origin: 0 0 ». customize.php

    JQMIGRATE: Migrate is installed, version 3.3.2 jquery-migrate.min.js:2:709
    Content Security Policy: « x-frame-options » ignoré en raison de la directive « frame-ancestors ».

    Un iframe possédant à la fois allow-scripts et allow-same-origin pour son attribut sandbox peut se retirer du mode bac à sable (sandboxing). customize.php

    Cette page utilise la propriété non standard « zoom ». Envisagez d’utiliser calc() dans les valeurs des propriétés pertinentes ou utilisez « transform » avec « transform-origin: 0 0 ». http://www.lesrouestournent.com

    JQMIGRATE: Migrate is installed, version 3.3.2 jquery-migrate.min.js:2:709
    Uncaught TypeError: s is null
    <anonymous> https://c0.wp.com/p/jetpack/9.2.1/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js:2
    <anonymous> https://c0.wp.com/p/jetpack/9.2.1/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js:2
    eu-cookie-law.min.js:2:210
    Échec du chargement pour l’élément <script> dont la source est « https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&appId=249643311490&version=v2.3 ». http://www.lesrouestournent.com:1:1
    La ressource à l’adresse « https://platform.twitter.com/widgets.js » a été bloquée car le blocage de contenu est activé.

    Please can you create a separate support topic for this and provide a link to your site so I can see this?

    done

    jmillernz

    (@jmillernz)

    Hi Joe,

    I also had an error start coming up after updating your plugin. It appeared at the top of the page beneath the header menu and was exactly the same the first poster, except mine read ‘line 157’.

    I downloaded the fix you provided and swapped in only the newer Waymark.php file – this has fixed the issue.

    Cheers,

    Jordan

    Plugin Author Joe Hawes

    (@morehawes)

    Hi @jmillernz,

    Thanks for posting about this.

    I downloaded the fix you provided and swapped in only the newer Waymark.php file – this has fixed the issue.

    Do you mean you swapped out the Waymark_Config.php file? As Waymark.php was unchanged in the fix.

    I’m glad the fix worked for you, I plan on pushing it out for everyone shortly.

    Cheers,

    Joe

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.