Closed Thread
Results 1 to 5 of 5

Thread: I can not login into my site... Wordpress

  1. #1
    telbronic52 is offline x10Hosting Member telbronic52 is an unknown quantity at this point
    Join Date
    Jul 2010
    Posts
    7

    I can not login into my site... Wordpress

    Hello, when i try login by Admin into my Wordpress Blog/Site a error occurs... follow the pictures to help...

    My Wordpress Blog/site : http://telbronic.x10.mx/




    I can not login into my site to create posts, mmodify posts, etc, etc.. please someone can help me ?

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: I can not login into my site... Wordpress

    cPanel --> File Manager

    Open /public_html/wp-content/themes/vesper-pt-pt/functions.php in Code Editor

    Find out what is happening on line 222.
    Nothing is always absolutely so.

  3. #3
    telbronic52 is offline x10Hosting Member telbronic52 is an unknown quantity at this point
    Join Date
    Jul 2010
    Posts
    7

    Re: I can not login into my site... Wordpress

    cPanel --> File Manager

    Open /public_html/wp-content/themes/vesper-pt-pt/functions.php in Code Editor

    Find out what is happening on line 222.
    Hi, thanks dor your help. But i don't understand anything of PHP.

    The code on function.php is:

    Code:
    <?php
    
    if ( function_exists('register_sidebar') )
    
        register_sidebar(array(
    
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
    
            'after_widget' => '</li>',
    
            'before_title' => '<h2 class="widgettitle">',
    
            'after_title' => '</h2>',
    
        ));
    
    
    
    remove_action('wp_head', 'pagenavi_css');
    
    	
    
    function wp_the_excerpt_reloaded($args='') {
    
    	parse_str($args);
    
    	if(!isset($excerpt_length)) $excerpt_length = 120; // length of excerpt in words. -1 to display all excerpt/content
    
    	if(!isset($allowedtags)) $allowedtags = '<a>'; // HTML tags allowed in excerpt, 'all' to allow all tags.
    
    	if(!isset($filter_type)) $filter_type = 'none'; // format filter used => 'content', 'excerpt', 'content_rss', 'excerpt_rss', 'none'
    
    	if(!isset($use_more_link)) $use_more_link = 1; // display
    
    	if(!isset($more_link_text)) $more_link_text = "(mais...)";
    
    	if(!isset($force_more)) $force_more = 1;
    
    	if(!isset($fakeit)) $fakeit = 1;
    
    	if(!isset($fix_tags)) $fix_tags = 1;
    
    	if(!isset($no_more)) $no_more = 0;
    
    	if(!isset($more_tag)) $more_tag = 'div';
    
    	if(!isset($more_link_title)) $more_link_title = 'Continuar a Ler';
    
    	if(!isset($showdots)) $showdots = 1;
    
    
    
    	return the_excerpt_reloaded($excerpt_length, $allowedtags, $filter_type, $use_more_link, $more_link_text, $force_more, $fakeit, $fix_tags, $no_more, $more_tag, $more_link_title, $showdots);
    
    }
    
    
    
    function the_excerpt_reloaded($excerpt_length=120, $allowedtags='<a>', $filter_type='none', $use_more_link=true, $more_link_text="(more...)", $force_more=true, $fakeit=1, $fix_tags=true, $no_more=false, $more_tag='div', $more_link_title='Continue reading this entry', $showdots=true) {
    
    	if(preg_match('%^content($|_rss)|^excerpt($|_rss)%', $filter_type)) {
    
    		$filter_type = 'the_' . $filter_type;
    
    	}
    
    	echo get_the_excerpt_reloaded($excerpt_length, $allowedtags, $filter_type, $use_more_link, $more_link_text, $force_more, $fakeit, $no_more, $more_tag, $more_link_title, $showdots);
    
    }
    
    
    
    function get_the_excerpt_reloaded($excerpt_length, $allowedtags, $filter_type, $use_more_link, $more_link_text, $force_more, $fakeit, $no_more, $more_tag, $more_link_title, $showdots) {
    
    	global $post;
    
    
    
    	if (!empty($post->post_password)) { // if there's a password
    
    		if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match cookie
    
    			if(is_feed()) { // if this runs in a feed
    
    				$output = __('Este post está protegido por password');
    
    			} else {
    
    	            $output = get_the_password_form();
    
    			}
    
    		}
    
    		return $output;
    
    	}
    
    
    
    	if($fakeit == 2) { // force content as excerpt
    
    		$text = $post->post_content;
    
    	} elseif($fakeit == 1) { // content as excerpt, if no excerpt
    
    		$text = (empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;
    
    	} else { // excerpt no matter what
    
    		$text = $post->post_excerpt;
    
    	}
    
    
    
    	if($excerpt_length < 0) {
    
    		$output = $text;
    
    	} else {
    
    		if(!$no_more && strpos($text, '<!--more-->')) {
    
    		    $text = explode('<!--more-->', $text, 2);
    
    			$l = count($text[0]);
    
    			$more_link = 1;
    
    		} else {
    
    			$text = explode(' ', $text);
    
    			if(count($text) > $excerpt_length) {
    
    				$l = $excerpt_length;
    
    				$ellipsis = 1;
    
    			} else {
    
    				$l = count($text);
    
    				$more_link_text = '';
    
    				$ellipsis = 0;
    
    			}
    
    		}
    
    		for ($i=0; $i<$l; $i++)
    
    				$output .= $text[$i] . ' ';
    
    	}
    
    
    
    	if('all' != $allowed_tags) {
    
    		$output = strip_tags($output, $allowedtags);
    
    	}
    
    
    
    //	$output = str_replace(array("\r\n", "\r", "\n", "  "), " ", $output);
    
    
    
    	$output = rtrim($output, "\s\n\t\r\0\x0B");
    
    	$output = ($fix_tags) ? $output : balanceTags($output);
    
    	$output .= ($showdots && $ellipsis) ? '...' : '';
    
    
    
    	switch($more_tag) {
    
    		case('div') :
    
    			$tag = 'div';
    
    		break;
    
    		case('span') :
    
    			$tag = 'span';
    
    		break;
    
    		case('p') :
    
    			$tag = 'p';
    
    		break;
    
    		default :
    
    			$tag = 'span';
    
    	}
    
    
    
    	if ($use_more_link && $more_link_text) {
    
    		if($force_more) {
    
    			$output .= ' <span class="more-link"><a href="'. get_permalink($post->ID) . '#more-' . $post->ID .'" title="' . $more_link_title . '">' . $more_link_text . '</a></span>' . "\n";
    
    		} else {
    
    			$output .= ' <span class="more-link"><a href="'. get_permalink($post->ID) . '" title="' . $more_link_title . '">' . $more_link_text . '</a></span>' . "\n";
    
    		}
    
    	}
    
    	$output = apply_filters($filter_type, $output);
    
    	return $output;
    
    }
    
    
    
    ?>
    in line 222 i don't have anything....

    One more information, this only happens because i change the theme of wordpres blog. It is possible change the theme without login in wordpress blog ?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: I can not login into my site... Wordpress

    If you are asking how to change the theme without signing into wordpress:

    cPanel --> PHPMyAdmin

    go to your wordpress DB, go to table wp_options.

    Then entries you need to change are: template AND stylesheet AND current_theme

    If you have a recent install, you should have the theme twentyten installed by default. Changing the entries to that should allow you to log in.

    Before you try that, make sure that at the end of the file you pasted here, there is nothing, not even a single space, after the closing:

    ?>
    Nothing is always absolutely so.

  5. #5
    telbronic52 is offline x10Hosting Member telbronic52 is an unknown quantity at this point
    Join Date
    Jul 2010
    Posts
    7

    Re: I can not login into my site... Wordpress

    Quote Originally Posted by descalzo View Post
    If you are asking how to change the theme without signing into wordpress:

    cPanel --> PHPMyAdmin

    go to your wordpress DB, go to table wp_options.

    Then entries you need to change are: template AND stylesheet AND current_theme

    If you have a recent install, you should have the theme twentyten installed by default. Changing the entries to that should allow you to log in.

    Before you try that, make sure that at the end of the file you pasted here, there is nothing, not even a single space, after the closing:

    ?>
    Thank you for your help.

    It is simples...

    In file.... in line "?>" i simple delete the ">" and write ">" again and my login in my wordpress blog works fine. Great... Thanks for help....

Closed Thread

Similar Threads

  1. Replies: 8
    Last Post: 06-03-2011, 10:06 PM
  2. cant login using login user name
    By vijjiphaggi82 in forum Free Hosting
    Replies: 3
    Last Post: 05-26-2011, 05:02 AM
  3. I can not login into my site... Wordpress
    By telbronic52 in forum Soporte
    Replies: 0
    Last Post: 05-25-2011, 03:55 PM
  4. Database Error! re: Wordpress site
    By soupcantheatre296 in forum Free Hosting
    Replies: 3
    Last Post: 05-17-2011, 04:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers