WordPress.org

Forums

WordPress phpinfo()
Invalid argument (7 posts)

  1. bamajr
    Member
    Posted 10 months 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

    http://wordpress.org/extend/plugins/wordpress-php-info/

  2. christopherross
    Member
    Plugin Author

    Posted 10 months ago #

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

    Chris

  3. bamajr
    Member
    Posted 10 months ago #

    @christopherross - yes sir, it is fixed!

  4. harveyducros
    Member
    Posted 10 months 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
    Member
    Posted 10 months ago #

    @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

  6. harveyducros
    Member
    Posted 10 months 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
    Member
    Posted 10 months ago #

    @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

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.