Title: [Plugin: WordPress phpinfo()] Invalid argument
Last modified: August 20, 2016

---

# [Plugin: WordPress phpinfo()] Invalid argument

 *  [bamajr](https://wordpress.org/support/users/bamajr/)
 * (@bamajr)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/)
 * I installed this plugin today, after using phpinfo() as a stand-alone script 
   for many years.
 * After installation and activation, the following error appears at the top of 
   the [http://mywebsite.com/wp-admin/tools.php?page=thisismyurl_php_info](http://mywebsite.com/wp-admin/tools.php?page=thisismyurl_php_info)
   page
 * `Warning: Invalid argument supplied for foreach() in /home/mywebsite.com/public_html/
   wp-content/plugins/wordpress-php-info/wordpress-php-info.php on line 81`
 * [http://wordpress.org/extend/plugins/wordpress-php-info/](http://wordpress.org/extend/plugins/wordpress-php-info/)

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

 *  [christopherross](https://wordpress.org/support/users/christopherross/)
 * (@christopherross)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958510)
 * It should be fixed now, I just uploaded a new version (3.5.1)
 * Chris
 *  Thread Starter [bamajr](https://wordpress.org/support/users/bamajr/)
 * (@bamajr)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958539)
 * [@christopherross](https://wordpress.org/support/users/christopherross/) – yes
   sir, it is fixed!
 *  [harveyducros](https://wordpress.org/support/users/harveyducros/)
 * (@harveyducros)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958593)
 * Hi Chris,
    How can I check which version of PHP my server is using? I have checked
   in the tools section but can’t find any reference to version 5.2 or 5.3
 *  Thread Starter [bamajr](https://wordpress.org/support/users/bamajr/)
 * (@bamajr)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958594)
 * [@harveyducros](https://wordpress.org/support/users/harveyducros/)
 * I’m making a few assumption here, but if the WordPress phpinfo() plugin is installed
   and activated correctly, the information you are looking for will be at:
 * [http://YourWordPressWebsite.com/wp-admin/tools.php?page=thisismyurl_php_info](http://YourWordPressWebsite.com/wp-admin/tools.php?page=thisismyurl_php_info)
 *  [harveyducros](https://wordpress.org/support/users/harveyducros/)
 * (@harveyducros)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958595)
 * Thanks bamajr,
    I have checked this again without any success – no direct indication
   as to version 5.2 or 5.3 only hundreds of lines of code.
 * I have deactivated and then reactivated the plugin and the message states that
   it has been successfully activated.
 * Unfortunately I need to know the correct version in order to install another 
   plugin which is different for each versions.
 * Any further help would be appreciated.
 *  Thread Starter [bamajr](https://wordpress.org/support/users/bamajr/)
 * (@bamajr)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958596)
 * [@harveyducros](https://wordpress.org/support/users/harveyducros/)
 * You could contact your hosting provider, but usually, there is a way to tell 
   from within the management panel (hosting panel), provided to you by your web
   host.
 * Another thing you can do is to create a file called phpinfo.php
 * In that file paste the following code:
 *     ```
       <?php
       	phpinfo();
       ?>
       ```
   
 * Save the file and upload it to your website, via FTP. then access that file by
   going to: [http://YourWordPressWebsite.com/phpinfo.php](http://YourWordPressWebsite.com/phpinfo.php)
 * I don’t recommend doing this from within your WordPress installation directory.
   I would suggest trying this in a separate directory or a sub-domain, on the same
   server.

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

The topic ‘[Plugin: WordPress phpinfo()] Invalid argument’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-php-info_f9f9f9.svg)
 * [WordPress phpinfo()](https://wordpress.org/plugins/wordpress-php-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-php-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-php-info/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-php-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-php-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-php-info/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [bamajr](https://wordpress.org/support/users/bamajr/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-phpinfo-invalid-argument/#post-2958596)
 * Status: not a support question