Programlama

Wp’de türkçe karakter hatası verirse, sql replace

Wp’de türkçe karakter hatası verirse, sql replace kodları.

 

 

UPDATE wp_posts SET post_title = replace(post_title, ‘ö’, ‘ö’);UPDATE wp_posts SET post_title = replace(post_title, ‘ÄŸ’, ‘ğ’);UPDATE wp_posts SET post_title = replace(post_title, ‘Äz’, ‘Ğ’);UPDATE wp_posts SET post_title = replace(post_title, ‘ü’, ‘ü’);UPDATE wp_posts SET post_title = replace(post_title, ‘Ç’, ‘Ç’);UPDATE wp_posts SET post_title = replace(post_title, ‘ç’, ‘ç’);UPDATE wp_posts SET post_title = replace(post_title, ‘Åž’, ‘Ş’);UPDATE wp_posts SET post_title = replace(post_title, ‘ÅŸ’, ‘ş’);UPDATE wp_posts SET post_title = replace(post_title, ‘Ö’, ‘Ö’);UPDATE wp_posts SET post_title = replace(post_title, ‘ı’, ‘ı’);UPDATE wp_posts SET post_title = replace(post_title, ‘İ’, ‘İ’);UPDATE wp_posts SET post_title = replace(post_title, ‘Ü’, ‘Ü’);
UPDATE wp_terms SET name = replace(name, ‘ö’, ‘ö’);UPDATE wp_terms SET name = replace(name, ‘ÄŸ’, ‘ğ’);UPDATE wp_terms SET name = replace(name, ‘Äz’, ‘Ğ’);UPDATE wp_terms SET name = replace(name, ‘ü’, ‘ü’);UPDATE wp_terms SET name = replace(name, ‘Ç’, ‘Ç’);UPDATE wp_terms SET name = replace(name, ‘ç’, ‘ç’);UPDATE wp_terms SET name = replace(name, ‘Åž’, ‘Ş’);UPDATE wp_terms SET name = replace(name, ‘ÅŸ’, ‘ş’);UPDATE wp_terms SET name = replace(name, ‘Ö’, ‘Ö’);UPDATE wp_terms SET name = replace(name, ‘ı’, ‘ı’);UPDATE wp_terms SET name = replace(name, ‘İ’, ‘İ’);UPDATE wp_terms SET name = replace(name, ‘Ü’, ‘Ü’);

Çözüm: PHP Fatal error: Uncaught CurlException: 6: name lookup timed out thrown in //facebook.php

Eğer böyle bir hata alıyorsanız ;

PHP Fatal error:  Uncaught CurlException: 6: name lookup timed out thrown in /<location>/facebook.php

Çözüm için

public static $CURL_OPTS = array(    CURLOPT_CONNECTTIMEOUT => 10,    CURLOPT_RETURNTRANSFER => true,    CURLOPT_TIMEOUT => 60,    CURLOPT_USERAGENT => ‘facebook-php-2.0′,  );

geçen satırları bulmanız ve CURLOPT_CONNECTTIMEOUT değerini 40′a getirmeniz gerekmektedir.

Memcache server çöküyorsa

Server 11211 portuna bğalanırken, bağlantı reddediliyor. Ayrıca Telnet localhost 11211 bağlantısında reddediliyordu.

Çözüm :

/usr/local/bin/memcached -d -u root -m 3900 -p 11211