View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Setup problem blank database. - Page 2 - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Setup problem blank database.

More
23 Mar 2013 15:45 #7 by babynus
It looks like you cannot get a connection.

Can you add a var_dump for connection on Sql.php, line 244. It should look like :
try {
    	$dsn = self::$dbType.':host='.self::$dbHost.';dbname='.self::$dbName; 	    
    	self::$connexion = new PDO($dsn, self::$dbUser, self::$dbPassword);
var_dump(self::$connexion);
    	self::$connexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    }
    catch (PDOException $e) {
    	echo htmlGetErrorMessage($e->getMessage( )).'<br />';
    }
and report here displayed content.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
23 Mar 2013 15:56 - 23 Mar 2013 16:01 #8 by jaynarol
I think it error before var_dump().

This is a Full HTML code in page.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>Project'Or RIA</title>
  <link rel="shortcut icon" href="img/logo.ico" type="image/x-icon" />
  <link rel="icon" href="img/logo.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="css/projector.css" />
  <script type="text/javascript" src="js/projector.js" ></script>
  <script type="text/javascript" src="js/projectorDialog.js" ></script>
  <script type="text/javascript" src="../external/dojo/dojo.js"
    djConfig='modulePaths: {i18n: "../../tool/i18n"},
              parseOnLoad: true, 
              isDebug: <span class="messageERROR" >SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
</span><input type="hidden" id="lastSaveId" value="" /><input type="hidden" id="lastOperation" value="control" /><input type="hidden" id="lastOperationStatus" value="ERROR" /><br /><br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Call to a member function query() on a non-object in D:\Web\NotAllowedScript6649c6f403061web.com\pmi\model\persistence\Sql.php on line <i>58</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0016</td><td bgcolor='#eeeeec' align='right'>397824</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\view\main.php' bgcolor='#eeeeec'>..\main.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0047</td><td bgcolor='#eeeeec' align='right'>664264</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'D:\Web\NotAllowedScript6649c6f403061web.com\pmi\tool\projector.php'</font> )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\view\main.php' bgcolor='#eeeeec'>..\main.php<b>:</b>10</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0280</td><td bgcolor='#eeeeec' align='right'>1679096</td><td bgcolor='#eeeeec'>include( <font color='#00bb00'>'D:\Web\NotAllowedScript6649c6f403061web.com\pmi\view\login.php'</font> )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\tool\projector.php' bgcolor='#eeeeec'>..\projector.php<b>:</b>121</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.0286</td><td bgcolor='#eeeeec' align='right'>1679408</td><td bgcolor='#eeeeec'>Parameter::getGlobalParameter(  )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\view\login.php' bgcolor='#eeeeec'>..\login.php<b>:</b>24</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.0287</td><td bgcolor='#eeeeec' align='right'>1681048</td><td bgcolor='#eeeeec'>SqlElement->getSqlElementsFromCriteria(  )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\model\Parameter.php' bgcolor='#eeeeec'>..\Parameter.php<b>:</b>471</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.0296</td><td bgcolor='#eeeeec' align='right'>1739592</td><td bgcolor='#eeeeec'>Sql::query(  )</td><td title='D:\Web\NotAllowedScript6649c6f403061web.com\pmi\model\persistence\SqlElement.php' bgcolor='#eeeeec'>..\SqlElement.php<b>:</b>1163</td></tr>
</table></font>
Last edit: 23 Mar 2013 16:01 by jaynarol.

Please Connexion or Create an account to join the conversation.

More
23 Mar 2013 16:11 - 23 Mar 2013 16:13 #9 by jaynarol
OK i can FIX it! :woohoo:

Insert Port in to Line 219
217    if (!self::$dbType or !self::$dbHost or !self::$dbName) {
218      self::$dbType=Parameter::getGlobalParameter('paramDbType');
219      self::$dbHost=Parameter::getGlobalParameter('paramDbHost').':'.Parameter::getGlobalParameter('paramDbPort');
220      self::$dbUser=Parameter::getGlobalParameter('paramDbUser');
221      self::$dbPassword=Parameter::getGlobalParameter('paramDbPassword');
222      self::$dbName=Parameter::getGlobalParameter('paramDbName');     
223    }

Thank you so much :lol:
Last edit: 23 Mar 2013 16:13 by jaynarol.

Please Connexion or Create an account to join the conversation.

More
23 Mar 2013 16:35 #10 by babynus
You're right !

Code only worked for default port (3306).
I'll include this fix in next version.

Thanks for your contribution.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
28 Mar 2013 15:19 - 28 Mar 2013 15:22 #11 by pfernandez
Hi,

Your patch doesn't work.
The DSN is not corretly set.
I suggest :
class Sql {
[...]
  private static $dbPort;
[...]
  private static function getConnection() {
[...]
      if (isset($paramDbPort) and $paramDbPort) { self::$dbPort = $paramDbPort; }
[...]
        $dsn = self::$dbType.':host='.self::$dbHost.';port='.self::$dbPort.';dbname='.self::$dbName;
[...]
Last edit: 28 Mar 2013 15:22 by pfernandez.

Please Connexion or Create an account to join the conversation.

More
28 Mar 2013 15:36 #12 by babynus
It is this syntax for DSN that is implement in V3.2.2.
Did you test it ?

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.