WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Errors (5 posts)

  1. NemoXP
    Member
    Posted 2 years ago #

    In file "aioseop.class.php" is a notice at line 555: $has_ut and i have added isset($has_ut) && so the function yoast_get_paged looks like this:

    function yoast_get_paged($link) {
    			$page = get_query_var('paged');
    	        if ($page && $page > 1) {
    	            $link = trailingslashit($link) ."page/". "$page";
    	            if (isset($has_ut) && $has_ut) {
    	                $link = user_trailingslashit($link, 'paged');
    	            } else {
    	                $link .= '/';
    	            }
    			}
    			return $link;
    	}

    And another notice as line 2129:
    <input type="text" name="aiosp_google_publisher" value="<?php echo $aioseop_options['aiosp_google_publisher']; ?>" size="38"/>
    and i have added @ in front of $aioseop_options['aiosp_google_publisher'] and now it looks like this:

    <input type="text" name="aiosp_google_publisher" value="<?php echo @$aioseop_options['aiosp_google_publisher']; ?>" size="38"/>

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. NemoXP
    Member
    Posted 2 years ago #

    has_ut error persists after update. Error occurs when accessing second page ("older posts")

  3. Peter Baylies
    Member
    Plugin Author

    Posted 2 years ago #

    NemoXP,

    Thanks for the information, I'll see that it gets fixed; note that $has_ut doesn't have scope there. Really that should look like this:

    function yoast_get_paged($link) {
    		$page = get_query_var('paged');
    	        if ($page && $page > 1) {
    	            $link = trailingslashit($link) ."page/". "$page";
    	            if (function_exists('user_trailingslashit')) {
    	                $link = user_trailingslashit($link, 'paged');
    	            } else {
    	                $link .= '/';
    	            }
    		}
    		return $link;
    	}
  4. NemoXP
    Member
    Posted 2 years ago #

    Another 2 Notices when creating a new post:
    Notice: Undefined index: aiosp_edit in /home/dxdhost.ro/public_html/web-host/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 1154

    Notice: Undefined index: nonce-aioseop-edit in /home/dxdhost.ro/public_html/web-host/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 1155

    $awmp_edit = $_POST["aiosp_edit"];
    $nonce = $_POST['nonce-aioseop-edit'];

    // my change:
    $awmp_edit = (isset($_POST["aiosp_edit"])?$_POST["aiosp_edit"]:'');
    $nonce = (isset($_POST["nonce-aioseop-edit"])?$_POST["nonce-aioseop-edit"]:'');

  5. Peter Baylies
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for the reports, Nemo.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic