[phpBB3] MySQL question

Technical difficulties? Ask for help here.

[phpBB3] MySQL question

Postby bogdan » Sat Sep 26, 2009 11:13 am

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!
bogdan
 
Posts: 24
Joined: Thu Mar 26, 2009 2:02 pm

Re: [phpBB3] MySQL question

Postby ~J~ » Sat Sep 26, 2009 11:25 am

I reviewed source code and it is just a cosmetic issue. It will not cause any problems. Anyway, thanks for reporting.
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe

Re: [phpBB3] MySQL question

Postby bogdan » Sat Sep 26, 2009 11:42 am

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?
bogdan
 
Posts: 24
Joined: Thu Mar 26, 2009 2:02 pm

Re: [phpBB3] MySQL question

Postby ~J~ » Sat Sep 26, 2009 12: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).
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 11 guests