Title: PHP errors
Last modified: November 14, 2019

---

# PHP errors

 *  Resolved [lotoazul11](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-errors-174/)
 * 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(): http:// 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([http://www.geoplugin.net/json.gp?ip=173.255.160.23](http://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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-174%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/php-errors-174/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-errors-174/page/2/?output_format=md)

 *  Plugin Author [Ankit Panchal](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12135764)
 * 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.
    -  This reply was modified 6 years, 6 months ago by [Ankit Panchal](https://wordpress.org/support/users/ankitmaru/).
 *  Thread Starter [lotoazul11](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12135938)
 * 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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12148904)
 * Hello [@lotoazul11](https://wordpress.org/support/users/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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12152277)
 * Hello [@lotoazul11](https://wordpress.org/support/users/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](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12153478)
 * hi [@ankitmaru](https://wordpress.org/support/users/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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12153542)
 * Hello [@lotoazul11](https://wordpress.org/support/users/lotoazul11/)
    Okay, Let
   me check this.
 * Thanks
 *  Plugin Author [Ankit Panchal](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12153604)
 * Hello [@lotoazul11](https://wordpress.org/support/users/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](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12154441)
 * hi [@ankitmaru](https://wordpress.org/support/users/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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12154488)
 * Hello [@lotoazul11](https://wordpress.org/support/users/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](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12154588)
 * 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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12157949)
 * Hello [@lotoazul11](https://wordpress.org/support/users/lotoazul11/)
    Could you
   tell me which PHP version are you using?
 * Thanks.
 *  Thread Starter [lotoazul11](https://wordpress.org/support/users/lotoazul11/)
 * (@lotoazul11)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12158381)
 * cpanel says version 7.2.7. think that might be the problem?
 *  Plugin Author [Ankit Panchal](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12158550)
 * [@lotoazul11](https://wordpress.org/support/users/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.
 *  [mechcalvin](https://wordpress.org/support/users/mechcalvin/)
 * (@mechcalvin)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12186185)
 * 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](https://wordpress.org/support/users/ankitmaru/)
 * (@ankitmaru)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-errors-174/#post-12200906)
 * 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)

1 [2](https://wordpress.org/support/topic/php-errors-174/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-errors-174/page/2/?output_format=md)

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-page-visit-counter_004aad.
   svg)
 * [Advanced Page Visit Counter – Most Wanted Analytics Plugin for WordPress](https://wordpress.org/plugins/advanced-page-visit-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-page-visit-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-page-visit-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-page-visit-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-page-visit-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-page-visit-counter/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 18 replies
 * 4 participants
 * Last reply from: [cospeonlus](https://wordpress.org/support/users/cospeonlus/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/php-errors-174/page/2/#post-12279947)
 * Status: resolved