• Resolved lotoazul11

    (@lotoazul11)


    hi! first of all, thank you so much for this plugin, it’s exactly what i was looking for, and for the most part it’s pretty easy to install and set up. i’m having a bit of an issue with it, though: while the counter is showing up in my posts where/as i intended, i also get these two PHP errors at the top of the page, above my header:

    Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 262

    Warning: file_get_contents(https://www.geoplugin.net/json.gp?ip=173.255.160.23): failed to open stream: no suitable wrapper could be found in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 262

    i tried to check the class-advanced-page-visit-counter-public.php file, but i think that’s a bit more involved than my middling knowledge of PHP would allow. any ideas as to what i can do to fix that?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello,

    Sorry for the issue you are facing.
    Yes, I have fixed that issue in my next update.
    The next update is releasing by this Monday Morning.
    Also, there are many new features are coming in this new update.

    Keep your plugin updated.
    Thanks.

    Thread Starter lotoazul11

    (@lotoazul11)

    awesome! thank you so much for the quick response, i really appreciate that. i really do love this plugin, you’ve done a great job. ??

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11

    Thank you so much for you words.
    I am pushing new updates today.

    Please keep using this plugin.
    We have lot’s of new premium features in pipeline to release in future updates.

    Thanks

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11
    Please update the plugin.
    We have integrate lot’s of new features.

    Please update it and do let me know if you found any issues.
    Thank you

    Thread Starter lotoazul11

    (@lotoazul11)

    hi @ankitmaru! thanks for taking a stab at this. i updated the plugin and now i’m getting a few more errors. these three at the top of the page:

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 311

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 320

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 344

    and then this one where my post content starts (i have the counter set to be shown above my content):

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 537

    appreciate any input you can give me on this. ??

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11
    Okay, Let me check this.

    Thanks

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11
    Please update your plugin to 2.5.2 minor updates.

    The issue should be fixed now.
    Please do let me know if you are facing any kind of issue.

    Thanks.

    Thread Starter lotoazul11

    (@lotoazul11)

    hi @ankitmaru

    i’ve updated the plugin again. still getting the same errors, but in different lines:

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 313

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 322

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 346

    and again before the post content:

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 539

    thanks for the help

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11

    I think you have enable WP_DEBUG mode turned on.
    Could you please disable it from your wp-config.php file?

    Thank you

    Thread Starter lotoazul11

    (@lotoazul11)

    from my wp-config.php file:

    define( ‘WP_DEBUG’, false );

    looks like it’s already disabled, so i don’t think that’s the problem… any other suggestions?

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello @lotoazul11
    Could you tell me which PHP version are you using?

    Thanks.

    Thread Starter lotoazul11

    (@lotoazul11)

    cpanel says version 7.2.7. think that might be the problem?

    Plugin Author Ankit Panchal

    (@ankitmaru)

    @lotoazul11
    If it’s 7.2.7 than no worries.
    I will try to find out the issues.
    I have tested on many sites, but I have not found any issues like this.

    I am still working on it.
    I will keep posted on this.
    Thanks.

    I also undergoing the same error

    Warning: json_decode() expects parameter 1 to be string, array given in /home/kyoudai/public_html/reverie/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 311

    running php 7.3.12

    Plugin Author Ankit Panchal

    (@ankitmaru)

    Hello,

    Thank you for raising the issue.
    Yes, It is resolved now, We are pushing updates by this week.

    Thanks for contacting me.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘PHP errors’ is closed to new replies.