The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WordPress phpinfo()
Invalid argument (7 posts)

  1. bamajr
    Posted 4 years ago #

    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 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


  2. christopherross
    Posted 4 years ago #

    It should be fixed now, I just uploaded a new version (3.5.1)


  3. bamajr
    Posted 4 years ago #

    @christopherross - yes sir, it is fixed!

  4. harveyducros
    Posted 4 years ago #

    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

  5. bamajr
    Posted 4 years ago #


    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:


  6. harveyducros
    Posted 4 years ago #

    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.

  7. bamajr
    Posted 4 years ago #


    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:


    Save the file and upload it to your website, via FTP. then access that file by going to: 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.