Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author leogermani

    (@leogermani)

    Hi xrobek,

    This plugin requires PHP version 5.3 or greater. We are going to put this information in the docs.

    Leo,,

    Thread Starter xrobek

    (@xrobek)

    Thanks. I’m using PHP Version 5.2.10.

    Unfortunately I had the same issue and voted it as broken for version 3.3

    My version is 5.2.17, will test it later with the required version.

    As a suggestion, why not test for the PHP version before activating it?

    I can help with that if needed.

    Hi, I’ve made some changes and it works now in PHP 5.2

    File: A_UserExporter.class.php

    Comments in Lines 2 and 96

    https://pastebin.com/x2xNi9YL

    It worked for me

    Greetings

    with php 5.2.x, you can use this trick :

    <?php if (!function_exists('get_called_class')): 
    
      function get_called_class()
      {
        $bt = debug_backtrace();
        $lines = file($bt[1]['file']); 
    
        preg_match('/([a-zA-Z0-9\_]+)::'.$bt[1]['function'].'/',
                   $lines[$bt[1]['line']-1],
                   $matches); 
    
    if(empty($matches[1])){
        $pp= serialize( $bt[1]["object"]);
        $nx=strpos($pp,'"')+1;
        $nx=substr($pp,$nx,strpos($pp,'"'));
        if (!empty($nx))
        {
        echo   " RETURING....: (".  $nx  . ")";
        return $nx;
        }
    }
    echo   " RETURING....: (" . $matches[1]  . ")";
        return $matches[1];
    }
    endif;
    ?>

    Trick is not working WP 3.3.2, WPUE 1.2, PHP 5.2.

    failed to open stream: No such file or directory in (…) on line 771
    RETURING….: ()

    This error appears when click SAVE settings.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP Users Exporter] Unable to activate’ is closed to new replies.