WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#25356 closed defect (bug) (invalid)

rtrim() warning

Reported by: fale Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.6
Component: General Keywords:
Focuses: Cc:

Description

I'm having this rtirm() warning:

PHP Warning: rtrim() expects parameter 1 to be string, object given in /var/www/blog/wp-includes/formatting.php on line 1408
PHP Stack trace:
PHP 1. {main}() /var/www/blog/index.php:0
PHP 2. require() /var/www/blog/index.php:17
PHP 3. wp() /var/www/blog/wp-blog-header.php:14
PHP 4. WP->main() /var/www/blog/wp-includes/functions.php:779
PHP 5. WP->query_posts() /var/www/blog/wp-includes/class-wp.php:549
PHP 6. WP_Query->query() /var/www/blog/wp-includes/class-wp.php:485
PHP 7. WP_Query->get_posts() /var/www/blog/wp-includes/query.php:2989
PHP 8. do_action_ref_array() /var/www/blog/wp-includes/query.php:1924
PHP 9. call_user_func_array() /var/www/blog/wp-includes/plugin.php:487
PHP 10. Polylang_Core->pre_get_posts() /var/www/blog/wp-includes/plugin.php:487
PHP 11. Polylang_Core->home_requested() /var/www/blog/wp-content/plugins/polylang/include/core.php:494
PHP 12. Polylang_Core->_home_requested() /var/www/blog/wp-content/plugins/polylang/include/core.php:425
PHP 13. Polylang_Core->get_home_url() /var/www/blog/wp-content/plugins/polylang/include/core.php:446
PHP 14. trailingslashit() /var/www/blog/wp-content/plugins/polylang/include/core.php:929
PHP 15. untrailingslashit() /var/www/blog/wp-includes/formatting.php:1393
PHP 16. rtrim() /var/www/blog/wp-includes/formatting.php:1408

Change History (1)

#1 @nacin
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

A plugin (in this case "polylang") is incorrectly passing an object to the WordPress trailingslashit() function, which expects a string.

http://wordpress.org/support/plugin/polylang

Note: See TracTickets for help on using tickets.