Did you solved this issue?
Did you solved this issue?
https://open-school.org/pricing
[size="7"]Open-School 2.5.5 Released[/size]
Try here http://tryopenschool.com/
Hello Rajith, I am trying to install the free community version 2.2.3<br /><br />
I have installed WAMP.<br /><br />
I am having following error while installing. Please help<br /><br />
CDbException<br /><br />
CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for ‘lastvisit_at’. The SQL statement executed was: <br /><br />
<br /><br />
– --------------------------------------------------------<br /><br />
<br /><br />
–<br /><br />
– Table structure for table users
<br /><br />
–<br /><br />
<br /><br />
CREATE TABLE IF NOT EXISTS users
(<br /><br />
id
int(11) NOT NULL AUTO_INCREMENT,<br /><br />
username
varchar(20) DEFAULT NULL,<br /><br />
password
varchar(128) DEFAULT NULL,<br /><br />
email
varchar(128) DEFAULT NULL,<br /><br />
activkey
varchar(128) NOT NULL DEFAULT ‘’,<br /><br />
create_at
timestamp NULL DEFAULT NULL,<br /><br />
lastvisit_at
timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’,<br /><br />
superuser
int(1) NOT NULL DEFAULT ‘0’,<br /><br />
status
int(1) NOT NULL DEFAULT ‘0’,<br /><br />
PRIMARY KEY (id
),<br /><br />
UNIQUE KEY email
(email
),<br /><br />
UNIQUE KEY username
(username
),<br /><br />
KEY status
(status
),<br /><br />
KEY superuser
(superuser
)<br /><br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8<br /><br />
<br /><br />
C:\wamp\www\core\db\CDbCommand.php(336)<br /><br />
<br /><br />
324 return $n;<br /><br />
325 }<br /><br />
326 catch(Exception $e)<br /><br />
327 {<br /><br />
328 if($this-&gt;_connection-&gt;enableProfiling)<br /><br />
329 Yii::endProfile(‘system.db.CDbCommand.execute(’.$this-&gt;getText().’)’,‘system.db.CDbCommand.execute’);<br /><br />
330 $errorInfo = $e instanceof PDOException ? $e-&gt;errorInfo : null;<br /><br />
331 $message = $e-&gt;getMessage();<br /><br />
332 Yii::log(Yii::t(‘yii’,‘CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.’,<br /><br />
333 array(’{error}’=&gt;$message, ‘{sql}’=&gt;$this-&gt;getText().$par)),CLogger::LEVEL_ERROR,‘system.db.CDbCommand’);<br /><br />
334 if(YII_DEBUG)<br /><br />
335 $message .= '. The SQL statement executed was: '.$this-&gt;getText().$par;<br /><br />
336 throw new CDbException(Yii::t(‘yii’,‘CDbCommand failed to execute the SQL statement: {error}’,<br /><br />
337 array(’{error}’=&gt;$message)),(int)$e-&gt;getCode(),$errorInfo);<br /><br />
338 }<br /><br />
339 }<br /><br />
340 <br /><br />
341 /**<br /><br />
342 * Executes the SQL statement and returns query result.<br /><br />
343 * This method is for executing an SQL query that returns result set.<br /><br />
344 * @param array $params input parameters (name=&gt;value) for the SQL execution. This is an alternative<br /><br />
345 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing<br /><br />
346 * them in this way can improve the performance. Note that if you pass parameters in this way,<br /><br />
347 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.<br /><br />
348 * binding methods and the input parameters this way can improve the performance.<br /><br />
Stack Trace<br /><br />
#0 <br /><br />
– C:\wamp\www\protected\modules\Install\controllers\DefaultController.php(222): CDbCommand-&gt;execute()<br /><br />
217 //create db schema<br /><br />
218 $sql = $this-&gt;getSql($this-&gt;module-&gt;structuresPath);<br /><br />
219 $sqlArr = $this-&gt;splitQueries($sql);<br /><br />
220 foreach ($sqlArr as $script) {<br /><br />
221 if (preg_match(’/(CREATE\s+TABLE|DROP\s+TABLE|ALTER\s+TABLE|CREATE\s+VIEW|DROP\s+VIEW)/i’, $script))<br /><br />
222 $result = $connection-&gt;createCommand($script)-&gt;execute();<br /><br />
223 }<br /><br />
224 <br /><br />
225 //insert example data<br /><br />
226 $dataPath = $this-&gt;module-&gt;dataPath;<br /><br />
227 if (isset($_POST[‘example’]) === true) {<br /><br />
#1 <br /><br />
#2 <br /><br />
#3 <br /><br />
#4 <br /><br />
#5 <br /><br />
#6 <br /><br />
#7 <br /><br />
#8 <br /><br />
– C:\wamp\www\install.php(40): CApplication-&gt;run()<br /><br />
35 <br /><br />
36 // remove the following line when in production mode<br /><br />
37 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);<br /><br />
38 require_once($yii); <br /><br />
39 <br /><br />
40 Yii::createWebApplication($config)-&gt;run();
[size="7"]New Community Edition released.[/size]
[size="6"]With latest Open-School Premium version[/size]
Source Forge
https://sourceforge.net/projects/php-open-school/files/latest/download?source=navbar
GitHub repository
Sure
[size="7"]Latest version 2.7 released[/size]
New Version will be released soon.
How do you store clients data? Does your application use multi-tenant architecture with separate databases for tenants?
Yes, having separate database for each tenant.
Open-School v3.0 Multi-School version has been released.
More details at - https://open-school.org/multischool
[Update] We are planning to rewrite the Open-School using Yii3.
Hi @traprajith,
I am developing an enterprise open source app framework here https://github.com/logicent/yii2-crudle perhaps we can collaborate where possible.
I would be interested to know what plans you have from an architectural stand-point notwithstanding the target app domain.
Regards,
Ken