[phpBB3] MySQL question

Magic SEO URLs for phpBB.
bogdan
Posts: 24
Joined: Thu Mar 26, 2009 3:02 pm

[phpBB3] MySQL question

Postby bogdan » Sat Sep 26, 2009 12:13 pm

Hello J!

Have been having a few of these errors - have you ever seen anything like this? any thoughts or suggestions?

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/magic_seo_url.php on line 0: mysqli_get_server_info() expects parameter 1 to be mysqli, boolean given



Thank you!

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [phpBB3] MySQL question

Postby inveo » Sat Sep 26, 2009 12:25 pm

I reviewed source code and it is just a cosmetic issue. It will not cause any problems. Anyway, thanks for reporting.

bogdan
Posts: 24
Joined: Thu Mar 26, 2009 3:02 pm

Re: [phpBB3] MySQL question

Postby bogdan » Sat Sep 26, 2009 12:42 pm

Thanks.

Sorry, not sure I understand. This error is displayed in conjunction with a phpbb mysql 1040 error (too many connections). You are saying it is unrelated?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [phpBB3] MySQL question

Postby inveo » Sat Sep 26, 2009 1:22 pm

Yes. It is unrelated.

Code looks following:

Code: Select all

if (version_compare(mysqli_get_server_info($this->linkId), '4.1.3', '>=')) {
  @mysqli_query($this->linkId, "SET NAMES 'utf8'");
}


To clarify what happen: @mysqli_query($this->linkId, "SET NAMES 'utf8'"); is not executed, because $this->linkId variable contains false (DB connection is already opened and this is expected). Code is encapsulated in method so it has no consequences to anything.

MSU holds complete DB abstraction layer, but initialization part is never used because connection is opened by host application (to open the way how connection is initialized).