WordPress.org

Ready to get started?Download WordPress

Forums

Simplr Registration Form Plus+
[closed] Not working need help (13 posts)

  1. testeree
    Member
    Posted 7 months ago #

    after installation i put this

    [Register role="subscriber" password="yes"] into a page and get that error code

    Warning: require_once(__DIR__/lib/sreg.class.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/12/d25539295/htdocs/cms/wp_intern/wp-content/plugins/simplr-registration-form/simplr_form_functions.php on line 439

    Fatal error: require_once() [function.require]: Failed opening required '__DIR__/lib/sreg.class.php' (include_path='.:/usr/lib/php5') in /homepages/12/d25539295/htdocs/cms/wp_intern/wp-content/plugins/simplr-registration-form/simplr_form_functions.php on line 439

    Thx for your help!

    http://wordpress.org/plugins/simplr-registration-form/

  2. duncankills
    Member
    Posted 7 months ago #

    exact same with me

  3. pazifikwelle
    Member
    Posted 7 months ago #

    exact same with me

  4. aartikhairnar
    Member
    Posted 6 months ago #

    please give the solution asap..!!!

  5. vaneedenhenry
    Member
    Posted 6 months ago #

    exact same with me

  6. xpafiolis
    Member
    Posted 6 months ago #

    +1 need file! pLEASE send file!

  7. andredenito
    Member
    Posted 6 months ago #

    I have the identical issue too. It may be worth adding that we are using a multi-site install.

  8. jjborja
    Member
    Posted 6 months ago #

    For a quick fix, replace the sreg_basic function on line 438, with the following function.

    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
  9. Nagaraj
    Member
    Posted 6 months ago #

    Wow jjborja !

    It worked Wonderful for me Thank you so much

  10. jotaslaush
    Member
    Posted 6 months ago #

    It worked as a charm, thank you very much.

    Is there any explanation about why did the plugin crashed?

  11. beginr
    Member
    Posted 6 months ago #

    It worked form me as well! Thank you so much!

  12. beginr
    Member
    Posted 6 months ago #

    @jjborja
    I see you're a freelancer, can I get your contact info or do you have a site?

  13. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Please try http://directory.codepoet.com/ or http://jobs.wordpress.net/

    This topic has now been closed as per the Forum Rules

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.