WordPress

Witaj Gościu ( Zaloguj | Rejestruj )

Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!

 
Closed TopicStart new topic
> Problem z PL znakami na niektórych serwerach
pix22
post 19.7.2006 - 15:37
Post #1


aktywność:
*

Grupa: Bloger
Postów: 2

Nr: 852



Aby na niektorych serwerach miec polskie znaki nalezy w pliki wp-includes/wp_db.php w definicji funkcji select($db) na koncu dodac linie:
KOD
mysql_query('SET NAMES latin2');
.
Powinno juz byc juz wszystko ok.
Niepoprawne działanie jest spowodowane wersją mysql. wink.gif
Pozdrawiam.
Go to the top of the page
 
+Quote Post
Ithilgon
post 19.7.2006 - 23:00
Post #2


aktywność:
*

Grupa: +Bloger
Postów: 10

Nr: 844



Na końcu linii?
Bo jeśli tak, to dodałem i nie działa nadal.


Przed
KOD
function select($db)
 if (!@mysql_select_db($db, $this->dbh)) {
     $this->bail("
<h1>Can’t select database</h1>


Po
KOD
function select($db) { mysql_query('SET NAMES latin2');
 if (!@mysql_select_db($db, $this->dbh)) {
     $this->bail("
<h1>Can’t select database</h1>


Czy źle dodałem?

Ten post edytował Ithilgon 19.7.2006 - 23:02


--------------------
Sui théred a gelais, boe i ross af faerath, dân i ross edwen: estel, broniad, mathad e-nad. Ir ú 'eril hain, pân 'wanna vi faer ir rhaw guina.
Go to the top of the page
 
+Quote Post
pix22
post 20.7.2006 - 10:05
Post #3


aktywność:
*

Grupa: Bloger
Postów: 2

Nr: 852



KOD
function select($db) {
 if (!@mysql_select_db($db, $this->dbh)) {
     $this->bail("
<h1>Can’t select database</h1>
<p>We were able to connect to the database server (which means your username and password is okay) but not able to select the <code>$db</code> database.</p>
<ul>
<li>Are you sure it exists?</li>
<li>On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?</li>
</ul>
<p>If you don't know how to setup a database you should <strong>contact your host</strong>. If all else fails you may find help at the <a href='http://wordpress.org/support/'>WordPress Support Forums</a>.</p>");
 }
 mysql_query('SET NAMES latin2');
    }

U mnie tak wygląda i działa.
Go to the top of the page
 
+Quote Post
Ithilgon
post 20.7.2006 - 13:00
Post #4


aktywność:
*

Grupa: +Bloger
Postów: 10

Nr: 844



Niestety, wstawiłem tak jak podałeś i nadal nie działa. Mój problemik jest w temacie obok closedeyes.gif'


--------------------
Sui théred a gelais, boe i ross af faerath, dân i ross edwen: estel, broniad, mathad e-nad. Ir ú 'eril hain, pân 'wanna vi faer ir rhaw guina.
Go to the top of the page
 
+Quote Post
marcinmw
post 20.4.2007 - 16:09
Post #5


aktywność:
*

Grupa: Bloger
Postów: 1

Nr: 2 442



Proponuję aby przykleić ten post - pomógł mi w poradzeniu sobie z krzakami, jednak trzeba się było do niego dokopać. smile.gif

Dzięki! biggrin.gif
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



Wersja Lo-Fi Aktualny czas: 3 12 08 - 04:08
WebFan | Forum Komputerowe | Spotkania blogerów