Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I got this error log, do you know what is this and how can i fix this?

[31-Jan-2013 22:01:25 UTC] PHP Warning:  preg_match() expects parameter 2 to be string, array given in /home/xxx/public_html/wp-includes/formatting.php on line 608
[31-Jan-2013 22:01:25 UTC] PHP Warning:  strip_tags() expects parameter 1 to be string, array given in /home/xxx/public_html/wp-includes/formatting.php on line 968
share|improve this question
1  
It's an error message and it tells you what the problem is and where the error was raised. As you can see from your tag (php), it's off topic here and belongs to SO (as long as you can't tell why this is a WP problem and doesn't only happen in it's context). Flagged for moving. –  kaiser Feb 1 '13 at 9:16
    
I think WordPress specific debugging is on topic enough. –  toscho Feb 1 '13 at 11:03

1 Answer 1

up vote 1 down vote accepted

You are calling remove_accents() and sanitize_title_with_dashes() with an array as first argument somewhere. This is wrong, use a string instead.

Install the Debug Bar plugin and look at the backtrace to see where the broken code starts.

share|improve this answer
    
xx.server.com #3, PHP 5.3.18, MySQL 5.1.65, Memory Usage 17,024,752 bytes, TOTAL WARNINGS: 0 , TOTAL NOTICES: 1 (NOTICE: wp-includes/locale.php:257 - Undefined index: 00), should I look somthing else? –  Alex Feb 1 '13 at 11:48
    
Yes, at the debug_backtrace you get when an error occurs. –  toscho Feb 1 '13 at 11:54
    
where is debug_backtrace? –  Alex Feb 2 '13 at 16:23
    
When an error occurs Debug Bar will offer a separate tab with detailed information about that error, especially where it comes from. That’s the backtrace. –  toscho Feb 2 '13 at 16:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.