WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • bugfix: "the connection was reset" (php 5.3)
  • Print
Pages: [1]   Go Down

Author Topic: bugfix: "the connection was reset" (php 5.3)  (Read 10226 times)

amac44

  • Guest
bugfix: "the connection was reset" (php 5.3)
« on: October 29, 2010, 06:04:44 AM »
This may be noted elsewhere but in case not, I was trying to do any install on localhost using WAMP (php version=5.3) and was getting:

"the connection was reset"

Discovered on the wampserver forum that PHP 5.3 apparently requires a link in mysql_close() ... there's a comment about this on http://php.net/mysql_close

I edited install/save.php and changed line 347
< if(!@mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD)) {
> if(!$db_handle =@mysql_connect(DB_HOST, DB_USERNAME, DB_PASSWORD)) {

and line 355
< mysql_close();
> mysql_close($db_handle);

Once I did this, the error did not occur anymore and the install completed successfully.

This ought to be backwards compatible.

p.s.

I googled for "website baker" and the error message, which turned up one German post that didn't appear to offer a solution.

Found an English thread here (https://forum.WebsiteBaker.org/index.php/topic,18856.0.html) that mentions this, but the poster was just told to try XAMP, which is cool, but if you're like me and you have several sites already on your WAMP that's not ideal.

Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • bugfix: "the connection was reset" (php 5.3)
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2