• ….-form/lib/sreg.class.php): failed to open stream: No such file or directory in ….plugins/simplr-registration-form/simplr_form_functions.php on line 439

    [22-Sep-2013 12:02:29 UTC] PHP Fatal error: require_once(): Failed opening required ‘…..form/lib/sreg.class.php’ (include_path=’.:/Applications/MAMP/bin/php/php5.4.4/lib/php’) in ….plugins/simplr-registration-form/simplr_form_functions.php on line 439

    ==> File is simply not included in your production package.
    ==> Please submit updated version of your plugin!

    https://www.ads-software.com/plugins/simplr-registration-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • +1 anyone have file???? PLEAAAAASE

    Nagaraj

    (@nagrajsuligavi)

    For Solution, replace the sreg_basic function on line 438, with the following function. Enjoy !!

    function sreg_basic($atts) {
    //Check if the user is logged in, if so he doesn’t need the registration page
    if ( is_user_logged_in() AND !current_user_can(‘administrator’) ) {
    global $user_ID;
    $first_visit = get_user_meta($user_ID, ‘first_visit’,true);
    if(empty($first_visit)) {
    $message = !empty($atts[‘message’])?$atts[‘message’]:”Thank you for registering.”;
    update_user_meta($user_ID,’first_visit’,date(‘Y-m-d’));
    echo ‘<div id=”message” class=”success”><p>’.$message.'</p></div>’;
    } else {
    echo “You are already registered for this site!!!”;
    }
    } else {
    //Then check to see whether a form has been submitted, if so, I deal with it.
    global $sreg;
    if(isset($sreg->success)) {
    return $sreg->output;
    } else {
    if(is_array($sreg->errors)) {
    $out = ”;
    foreach($sreg->errors as $mes) {
    $out .= ‘<div class=”simplr-message error”>’.$mes .'</div>’;
    }
    } elseif(is_string($sreg->errors)) {
    $out = ‘<div class=”simplr-message error”>’.$message .'</div>’;
    }
    return $out.simplr_build_form($_POST,$atts);
    }

    } //Close LOGIN Conditional

    } //END FUNCTION

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing sreg.class’ is closed to new replies.