WordPress.org

Ready to get started?Download WordPress

Forums

Warning: strtotime() [function.strtotime]: Called with an empty time parameter. (5 posts)

  1. morfina
    Member
    Posted 4 years ago #

    Hello, i have this error message when i call posts by a specific tag:

    Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /site/wp-content/plugins/wordpress-seo-pager.php on line 1014

    If i have 3 pages of post under that tag, i will have 3 lines of errors!

    the plugin (WORDPRESS SEO PAGER) line is:
    strtotime($p[(($cnt-1) * $posts_per_page )]->post_date)) . '"';

    this is an error never show befor.

  2. morfina
    Member
    Posted 4 years ago #

    no ideas?

  3. xdesi
    Member
    Posted 4 years ago #

    How are you calling posts by a specific tag?

    Looks as though SEO pager is expecting a paramter to use in a function, which it is not getting when you are calling posts by a specific tag.

  4. morfina
    Member
    Posted 4 years ago #

    i'm calling posts from a link: ...WORDPRESS/ARCHIVES/TAG/TAGNAME/
    The strange thing is that the error message is showed only in pages with earliest post. What is changed? Nothing apparently...

  5. morfina
    Member
    Posted 4 years ago #

    resolved:

    add @ before
    strtotime($p[(($cnt-1) * $posts_per_page )]->post_date)) . '"';

    =

    @strtotime($p[(($cnt-1) * $posts_per_page )]->post_date)) . '"';

    it's work.

Topic Closed

This topic has been closed to new replies.

About this Topic