Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • I don’t think that we’ll be able to resolve your problem here since I have no idea what could be wrong with your setup.
    You are the only person who has a problem with the actual functionality of Statrix, so I am interested in what could be the cause.

    I suggest that you contact me by e-mail (esense -at- gmail -dot- com), so we could negotiate the use of a more direct way of communication.

    Thank you for your feedback!

    There was a person with exactly the same problem as you.
    He told me that his hosting supports PHP v5.2.5.
    So he checked it again after the Statrix activation failure, and he found out something.

    His hosting supports PHP5, but he should use the .php5 file extension or add this line in a .htaccess file in the same directory as the PHP file/s:

    AddType application/x-httpd-php5 .php

    Otherwise, the PHP version defaults to 4.

    So after he created the .htaccess file, he successfully activated Statrix and has been using it since.

    You could easily check your actual PHP version by creating a *some_filename*.php file, containing this:

    <?php
    phpinfo();
    ?>

    and opening it with your browser.

    You could try this:

    //requirements check
    if(*there are missing plugin requirements*) {
            echo "Missing plugin requirements\n";
            exit;
    }

    You put this before the rest of the code of your plugin.

    So the result is, that when somebody activates the plugin and there are missing requirements, the plugin activation fails and the error is what you have written in your echo. ??

    Your PHP is not version 5 at all. ??

    line 687:

    function printExport($filename, Exporter $exporter) {
    ...

    The error is because your PHP doesn’t support objects like it should be in version 5.0. You can check that in the PHP5 changelog (https://www.php.net/ChangeLog-5.php#5.0.0).

    I’m sorry, but I really don’t think I should downgrade my design to the point that it could work on PHP4. ??

    I’ve tested down to v5.0.3 and Statrix is working properly. I have added a Requirements section in the installation manual, but it seems that it’s not enough.

    That’s why I’ve already tagged Statrix v0.5, where it checks the PHP version itself. So if it’s lower than 5.0, when you try to activate it, Statrix will tell you:

    Your PHP version is 4.4.8. Statrix requires PHP version 5.0 or greater (tested down to PHP v5.0.3).

    After few minutes it should be available for download. ??

    I hope this will end this PHP version discussion once and for all. ??

    Can you show me the settings you’ve made in the Options page of Statrix?

    cronus3166: your PHP should be at least 5.0, not your MySQL. ?? Could you tell me what is your PHP version?

    azzatron: can you tell me what exactly is your PHP version too?

    If your PHP version is lower than 5.1, you would not be able to activate the Statrix plugin at all. WordPress takes care about such situations.

    So the only problem Statrix could cause is unsuccessful installation of itself. It could not break your blog or anything, related with it. ??

    You could delete the Statrix unzipped directory (wp-content/plugins/statrix). If you don’t, the only thing that would happen is that your blog will still detect Statrix as an available plugin for activation. When it is not activated, WordPress doesn’t execute it at all.

    This means, that if you have a problem with your blog, it’s not because of Statrix. Still, if you doubt that, you could try to remove Statrix unzipped directory (*your_blog*/wp-content/plugins/statrix). By doing that, you will remove all traces of Statrix from your blog.

    And in the very unlikely case that you actually managed to activate it, despite the error caused by your old PHP version, you could check your database for *prefix*_statrix table (the default prefix is wp). If it does exists, you could drop it.

    And after that, if your blog is still broken, then it most certainly is NOT because of Statrix.

    Thank you all for the feedback.

    The problem is, that your PHP version is lower than 5.1. And PHP < v5.1 doesn’t support typehints for array types.
    I am sorry that I’ve forgotten to put that in the installation manual.

    In the next version I’ll remove the array typehints, so you will be able to use Statrix.
    Expect the next version later today. ??

    You can try this:

    require_once('../../../wp-config.php');
    require_once('../../../wp-includes/wp-db.php');
    require_once('../../../wp-includes/pluggable.php');
    
    echo wp_get_current_user()->ID;

    Just make sure the path is OK, so that you are able to require the files successfully. ??

Viewing 10 replies - 16 through 25 (of 25 total)