2014-03-24, 12:41 PM
2014-03-24, 07:11 PM
Yes, this is a new wiki installation and I haven't customized it in any way.
I reinstalled wiki, using correct default collation, problem still existed.
My friend helped me to find where error starts - problem is that while creating cookie mybb takes utf8 username 'Džira' and replaces that with aschii one (D%9Eira). So I don't know how to fix this problem but the problem is not with bridge.
I reinstalled wiki, using correct default collation, problem still existed.
My friend helped me to find where error starts - problem is that while creating cookie mybb takes utf8 username 'Džira' and replaces that with aschii one (D%9Eira). So I don't know how to fix this problem but the problem is not with bridge.
2014-03-24, 07:32 PM
i will have to dig through the MyBB code to see how it is handling usernames in the cookies it saves. i would need to apply the same logic to the bridge when it reads the cookie.
2014-03-24, 07:40 PM
We took one more look to cookie and it was not mybb cookie, it was wiki cookie (so cookie was innocent victim)
And we found the error. In mybb bridge file after:
I'll test this some more but it seems to work correctly now.
And we found the error. In mybb bridge file after:
function connect($settings)
{
// Connect to database.
$this->conn = @mysql_connect($settings['db_server'], $settings['db_user'],
$settings['db_pass'], true);
you need to add the line:
mysql_query("SET NAMES binary;");
I'll test this some more but it seems to work correctly now.
2014-03-24, 10:06 PM
strange, that has not come up before. Please test some more and report back. I have not seen it on some of the other bridges I have seen either. Good catch
2014-03-24, 10:46 PM
As far as we tested all usernames were saved correctly and no errors appeared. Everything seems to work fine.
As my friend explained - this line sets charset for connection. If it's not set then default charset for connection (defined in mysql server) is used.
As wiki used binary charset for connection (we saw it in wiki logs) but mysql predefined connection charset was different (latin_1 maybe) then setting right charset for connection fixed error.
I don't know if it's special case or other unicode users might meet the same error.
As my friend explained - this line sets charset for connection. If it's not set then default charset for connection (defined in mysql server) is used.
As wiki used binary charset for connection (we saw it in wiki logs) but mysql predefined connection charset was different (latin_1 maybe) then setting right charset for connection fixed error.
I don't know if it's special case or other unicode users might meet the same error.
2015-02-05, 02:12 PM
This error writing in error log 9800 times. How i fix that?
How to fix that problem? I have same problem. Please help.
[Thu Feb 05 08:45:06 2015] [error] [client 224.0.0.0] PHP Strict Standards: Declaration of Auth_MyBB::modifyUITemplate() should be compatible with AuthPlugin::modifyUITemplate(&$template, &$type) in /home/game/public_html/site.com/viki/Auth_MyBB.php on line 248
(2013-12-08, 11:26 AM)RavenDust Wrote: [ -> ]That would be the latest, 1.22.0. The board is running on 1.6.11.
btw, adding &$type to the function declaration seems to fix it^^
How to fix that problem? I have same problem. Please help.
2015-02-05, 06:36 PM
find in Auth_MyBB.php
and change it to
function modifyUITemplate( &$template ) {
and change it to
function modifyUITemplate( &$template, &$type) {
2015-02-05, 08:38 PM
(2015-02-05, 06:36 PM)pavemen Wrote: [ -> ]find in Auth_MyBB.phpThank you.
function modifyUITemplate( &$template ) {
and change it to
function modifyUITemplate( &$template, &$type) {
2015-02-24, 08:43 PM
Will this work for 1.8 by any chance?