WordPress.org

Ready to get started?Download WordPress

Forums

WP Users Exporter
[resolved] Unable to activate (7 posts)

  1. xrobek
    Member
    Posted 2 years ago #

    Tried to activate. Triggered fatal error: "Call to undefined function get_called_class() in ..../wordpress/wp-content/plugins/wp-users-exporter/A_UserExporter.class.php on line 70

    http://wordpress.org/extend/plugins/wp-users-exporter/

  2. leogermani
    Member
    Plugin Author

    Posted 2 years ago #

    Hi xrobek,

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

    Leo,,

  3. xrobek
    Member
    Posted 2 years ago #

    Thanks. I'm using PHP Version 5.2.10.

  4. Gabriel Reguly
    Member
    Posted 2 years ago #

    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.

  5. lucasan37
    Member
    Posted 2 years ago #

    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

    http://pastebin.com/x2xNi9YL

    It worked for me

    Greetings

  6. Tsun4Ever
    Member
    Posted 2 years ago #

    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;
    ?>
  7. Krzysztof Dryja (Aspexi)
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic