Advertisement
Guest User

Untitled

a guest
Apr 30th, 2010
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. 500 | Internal Server Error | PropelException
  2. Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
  3. stack trace
  4.  
  5.   * at ()
  6.    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/Propel.php line 619 ...
  7.        616.       $con = new $classname($dsn, $user, $password, $driver_options);
  8.        617.       $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  9.        618.     } catch (PDOException $e) {
  10.        619.       throw new PropelException("Unable to open PDO connection", $e);
  11.        620.     }
  12.        621.
  13.        622.     // load any connection options from the config file :: 11:14:23# at Propel::initConnection(array('dsn' => 'mysql:host=localhostbname=api_prod', 'user' => 'api_prod', 'password' => 'jR34CsFRa', 'classname' => 'PropelPDO', 'options' => array('ATTR_PERSISTENT' => 1), 'settings' => array('charset' => array('value' => 'utf8'), 'queries' => array())), 'propel')
  14. in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/Propel.php line 532 ...
  15.  
  16.     529.           throw new PropelException('No connection information in your runtime configuration file for datasource ['.$name.']');
  17.     530.         }
  18.     531.         // initialize master connection
  19.     532.         $con = Propel::initConnection($conparams, $name);
  20.     533.         self::$connectionMap[$name]['master'] = $con;
  21.     534.       }
  22. 535.
  23.  
  24. # at Propel::getConnection('propel', 'write')
  25. in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel/Propel.php line 547 ...
  26.  
  27.     544.
  28.     545.         if (empty($slaveconfigs)) { // no slaves configured for this datasource
  29.     546.           self::$connectionMap[$name]['slave'] = false;
  30.     547.           return self::getConnection($name, Propel::CONNECTION_WRITE); // Recurse to get the WRITE connection
  31.     548.         } else { // Initialize a new slave
  32.     549.           if (isset($slaveconfigs['connection']['dsn'])) { // only one slave connection configured
  33.     550.             $conparams = $slaveconfigs['connection'];
  34.  
  35. # at Propel::getConnection('propel', 'read')
  36. in SF_ROOT_DIR/lib/model/om/BasePartnerPeer.php line 259 ... :: 11:14:30# at BasePartnerPeer:oSelectStmt(object('Criteria'), null)
  37. in SF_ROOT_DIR/lib/model/om/BasePartnerPeer.php line 241 ...
  38.  
  39.     238.   */
  40.     239.   public static function doSelect(Criteria $criteria, PropelPDO $con = null)
  41.     240.   {
  42.     241.     return PartnerPeer:opulateObjects(PartnerPeer:oSelectStmt($criteria, $con));
  43.     242.   }
  44.     243.   /**
  45.     244.   * Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement.
  46.  
  47. # at BasePartnerPeer:oSelect(object('Criteria'), null)
  48. in SF_ROOT_DIR/lib/model/om/BasePartnerPeer.php line 224 ...
  49.  
  50.     221.   {
  51.     222.     $critcopy = clone $criteria;
  52.     223.     $critcopy->setLimit(1);
  53.     224.     $objects = PartnerPeer:oSelect($critcopy, $con);
  54.     225.     if ($objects) {
  55.     226.       return $objects[0];
  56.     227.     }
  57.  
  58. # at BasePartnerPeer:oSelectOne(object('Criteria'))
  59. in SF_ROOT_DIR/lib/model/PartnerPeer.php line 25 ...
  60.  
  61.     22.     $criteria = new Criteria();
  62.     23.     $criteria->add(PartnerPeer::NAME, $name, Criteria::EQUAL);
  63.     24.
  64.     25.     $v = PartnerPeer:oSelectOne($criteria);
  65.     26.     return !empty($v) ? $v : null;
  66.     27.   }
  67. 28.
  68.  
  69. # at PartnerPeer::retrieveByName('GameDesire')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement