morfina
Member
Posted 3 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.
morfina
Member
Posted 3 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.
morfina
Member
Posted 3 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...
morfina
Member
Posted 3 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.