Marcus
Well-known member
When I click on the login/register of my forum there is an error if I click on register and have a username already filled in. If I let this field empty, then I can access the register page. However then I also can't complete registration as the page /register/register gives me a " Fatal error: require(): Cannot redeclare class zend_loader in /var/www/vhosts/domain.com/httpdocs/library/Zend/Validate.php on line 201 " error. Same error is for /login/login
 
After outcommenting the 201th require_once line in library/Zend/Validate.php it works!
	
	
	
		
				
			After outcommenting the 201th require_once line in library/Zend/Validate.php it works!
		Code:
	
	    public static function is($value, $classBaseName, array $args = array(), $namespaces = array())
    {
        $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Validate'));
        $className  = ucfirst($classBaseName);
        try {
            if (!class_exists($className, false)) {
                //           require_once 'Zend/Loader.php';
                foreach($namespaces as $namespace) {
                    $class = $namespace . '_' . $className;
                    $file  = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
                    if (Zend_Loader::isReadable($file)) {
                        Zend_Loader::loadClass($class);
                        $className = $class;
                        break;
                    }
                }
            } 
 
		 
 
		
 
 
		 
 
		