Viewing 6 replies - 1 through 6 (of 6 total)
  • Here too. In some(?) cases, the closing </title> will be cutted to /title> or title> so that the whole website is in the title-tag and results a blank page!

    <title>Article » Website/title> or
    <title>Article » Websitetitle>

    There have been some changes in this version to how string functions work, we are now using the multibyte string functions where possible; it sounds like this is causing some issues for both of you with your title rewrites. I tested the title “Olunka – Танцующая с бубном, живущая в сети” on my site and had no problems with it, but I’ll test this further; here are some things you can try:

    – Turn Force Rewrite Titles off under Performance
    or
    – Edit your aioseop_class.php file and replace the replace_title() function with the old version – this function should be at about line # 1526 – here’s the old one:

    function replace_title( $content, $title ) {
    		$title = trim( strip_tags( $title ) );
    		$title_tag_start = "<title>";
    		$title_tag_end = "</title>";
    		$len_start = strlen( $title_tag_start );
    		$title = stripcslashes( trim( $title ) );
    		$start = strpos( $content, $title_tag_start );
    		$end = strpos( $content, $title_tag_end );
    
    		$this->title_start = $start;
    		$this->title_end = $end;
    		$this->orig_title = $title;
    
    		if ( $start && $end )
    			$header = substr( $content, 0, $start + $len_start ) . $title .  substr( $content, $end );
    		else
    			$header = $content;
    
    		return $header;
    	}

    or
    – Revert to version 2.0.2

    Thanks for the fast response.

    I use 2.0.3 oder other sites without problems. On one site – and there with all plugins deactivated or not – it causes some errors. But not always and not with all articles or posts.

    I will try to figure out the problem, I think it is in the theme (functions.php or js in the header or anything else)

    dlang1970 and Olunka,

    Would it be possible for us to troubleshoot and fix this issue on your site for you, as I am unable to reproduce it here? If that works for you, create an administrator account for testing and send login details via our contact form along with a URL to the admin area of the site. Thank you!

    I’ll try to reproduce the issue on another site, because on this site which a lot of traffic I can’t get the plugin online. than I will update this topic here with further informations …

    dlang1970,

    Could you try this code for me, replace your replace_title() function in aioseop_class.php with this:

    function replace_title( $content, $title ) {
    		$title = trim( strip_tags( $title ) );
    		$title_tag_start = "<title>";
    		$title_tag_end = "</title>";
    		$len_start = $this->strlen( $title_tag_start );
    		$title = stripcslashes( trim( $title ) );
    		$start = $this->strpos( $content, $title_tag_start );
    		$end = $this->strpos( $content, $title_tag_end );
    
    		$this->title_start = $start;
    		$this->title_end = $end;
    		$this->orig_title = $title;
    
    		return preg_replace( '/<title>(.*?)<\/title>/is', "<title>{$title}</title>", $content );
    	}
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘plagin don't work’ is closed to new replies.