Open-School

Hi

I tried to go to open-school.org/pricing but server down or domain expired.

One question also, is it possible to register more than one Institution (School or Campus)?

Sorry for the late reply.

let me know your email id, I will forward the details.

Hello,

Our Community edition is built with PHP5.x , so I think PHP7 may cause such errors.

But Our Premium version is compatible with latest PHP.

https://open-school.org/pricing

yes we have Multi-School version.

Please Contact with our sales team or let me know your email id.

https://open-school.org/pricing

[size="6"]Open-School 2.5 Released[/size]

Try here http://tryopenschool.com/

CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for ‘activity_time’. The SQL statement executed was:

– Database: os_important


– Table structure for table activity_feed

CREATE TABLE IF NOT EXISTS activity_feed (

id int(11) NOT NULL AUTO_INCREMENT,

initiator_id int(11) NOT NULL,

activity_type int(11) NOT NULL,

goal_id int(11) DEFAULT NULL,

goal_name varchar(120) DEFAULT NULL,

field_name varchar(120) DEFAULT NULL,

initial_field_value varchar(120) DEFAULT NULL,

new_field_value varchar(120) DEFAULT NULL,

activity_time timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’ ON UPDATE CURRENT_TIMESTAMP,

PRIMARY KEY (id)

) ENGINE=InnoDB DEFAULT CHARSET=latin1

C:\wamp\www\aquatechschoolmanagement\core\db\CDbCommand.php(336)

324 return $n;

325 }

326 catch(Exception $e)

327 {

328 if($this->_connection->enableProfiling)

329 Yii::endProfile(‘system.db.CDbCommand.execute(’.$this->getText().’)’,‘system.db.CDbCommand.execute’);

330 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;

331 $message = $e->getMessage();

332 Yii::log(Yii::t(‘yii’,‘CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.’,

333 array(’{error}’=>$message, ‘{sql}’=>$this->getText().$par)),CLogger::LEVEL_ERROR,‘system.db.CDbCommand’);

334 if(YII_DEBUG)

335 $message .= '. The SQL statement executed was: '.$this->getText().$par;

336 throw new CDbException(Yii::t(‘yii’,‘CDbCommand failed to execute the SQL statement: {error}’,

337 array(’{error}’=>$message)),(int)$e->getCode(),$errorInfo);

338 }

339 }

340

341 /**

342 * Executes the SQL statement and returns query result.

343 * This method is for executing an SQL query that returns result set.

344 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative

345 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing

346 * them in this way can improve the performance. Note that if you pass parameters in this way,

347 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.

348 * binding methods and the input parameters this way can improve the performance.

Stack Trace

#0

C:\wamp\www\aquatechschoolmanagement\protected\modules\Install\controllers\DefaultController.php(222): CDbCommand->execute()

217 //create db schema

218 $sql = $this->getSql($this->module->structuresPath);

219 $sqlArr = $this->splitQueries($sql);

220 foreach ($sqlArr as $script) {

221 if (preg_match(’/(CREATE\s+TABLE|DROP\s+TABLE|ALTER\s+TABLE|CREATE\s+VIEW|DROP\s+VIEW)/i’, $script))

222 $result = $connection->createCommand($script)->execute();

223 }

224

225 //insert example data

226 $dataPath = $this->module->dataPath;

227 if (isset($_POST[‘example’]) === true) {

#1

C:\wamp\www\aquatechschoolmanagement\core\web\actions\CInlineAction.php(50): DefaultController->actionStep3()

#2

C:\wamp\www\aquatechschoolmanagement\core\web\CController.php(300): CInlineAction->runWithParams(array("r" => "Install/default/step3"))

#3

C:\wamp\www\aquatechschoolmanagement\core\web\CController.php(278): CController->runAction(CInlineAction)

#4

C:\wamp\www\aquatechschoolmanagement\core\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array())

#5

C:\wamp\www\aquatechschoolmanagement\core\web\CWebApplication.php(277): CController->run("step3")

#6

C:\wamp\www\aquatechschoolmanagement\core\web\CWebApplication.php(136): CWebApplication->runController("Install/default/step3")

#7

C:\wamp\www\aquatechschoolmanagement\core\base\CApplication.php(158): CWebApplication->processRequest()

#8

C:\wamp\www\aquatechschoolmanagement\install.php(40): CApplication->run()

35

36 // remove the following line when in production mode

37 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);

38 require_once($yii);

39

40 Yii::createWebApplication($config)->run();

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&lt;br /&gt;<br />

I have installed WAMP.&lt;br /&gt;<br />

I am having following error while installing. Please help&lt;br /&gt;<br />

CDbException&lt;br /&gt;<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: &lt;br /&gt;<br />

&lt;br /&gt;<br />

– --------------------------------------------------------&lt;br /&gt;<br />

&lt;br /&gt;<br />

–&lt;br /&gt;<br />

– Table structure for table users&lt;br /&gt;<br />

–&lt;br /&gt;<br />

&lt;br /&gt;<br />

CREATE TABLE IF NOT EXISTS users (&lt;br /&gt;<br />

id int(11) NOT NULL AUTO_INCREMENT,&lt;br /&gt;<br />

username varchar(20) DEFAULT NULL,&lt;br /&gt;<br />

password varchar(128) DEFAULT NULL,&lt;br /&gt;<br />

email varchar(128) DEFAULT NULL,&lt;br /&gt;<br />

activkey varchar(128) NOT NULL DEFAULT ‘’,&lt;br /&gt;<br />

create_at timestamp NULL DEFAULT NULL,&lt;br /&gt;<br />

lastvisit_at timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00’,&lt;br /&gt;<br />

superuser int(1) NOT NULL DEFAULT ‘0’,&lt;br /&gt;<br />

status int(1) NOT NULL DEFAULT ‘0’,&lt;br /&gt;<br />

PRIMARY KEY (id),&lt;br /&gt;<br />

UNIQUE KEY email (email),&lt;br /&gt;<br />

UNIQUE KEY username (username),&lt;br /&gt;<br />

KEY status (status),&lt;br /&gt;<br />

KEY superuser (superuser)&lt;br /&gt;<br />

) ENGINE=InnoDB DEFAULT CHARSET=utf8&lt;br /&gt;<br />

&lt;br /&gt;<br />

C:\wamp\www\core\db\CDbCommand.php(336)&lt;br /&gt;<br />

&lt;br /&gt;<br />

324 return $n;&lt;br /&gt;<br />

325 }&lt;br /&gt;<br />

326 catch(Exception $e)&lt;br /&gt;<br />

327 {&lt;br /&gt;<br />

328 if($this-&amp;gt;_connection-&amp;gt;enableProfiling)&lt;br /&gt;<br />

329 Yii::endProfile(‘system.db.CDbCommand.execute(’.$this-&amp;gt;getText().’)’,‘system.db.CDbCommand.execute’);&lt;br /&gt;<br />

330 $errorInfo = $e instanceof PDOException ? $e-&amp;gt;errorInfo : null;&lt;br /&gt;<br />

331 $message = $e-&amp;gt;getMessage();&lt;br /&gt;<br />

332 Yii::log(Yii::t(‘yii’,‘CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.’,&lt;br /&gt;<br />

333 array(’{error}’=&amp;gt;$message, ‘{sql}’=&amp;gt;$this-&amp;gt;getText().$par)),CLogger::LEVEL_ERROR,‘system.db.CDbCommand’);&lt;br /&gt;<br />

334 if(YII_DEBUG)&lt;br /&gt;<br />

335 $message .= '. The SQL statement executed was: '.$this-&amp;gt;getText().$par;&lt;br /&gt;<br />

336 throw new CDbException(Yii::t(‘yii’,‘CDbCommand failed to execute the SQL statement: {error}’,&lt;br /&gt;<br />

337 array(’{error}’=&amp;gt;$message)),(int)$e-&amp;gt;getCode(),$errorInfo);&lt;br /&gt;<br />

338 }&lt;br /&gt;<br />

339 }&lt;br /&gt;<br />

340 &lt;br /&gt;<br />

341 /**&lt;br /&gt;<br />

342 * Executes the SQL statement and returns query result.&lt;br /&gt;<br />

343 * This method is for executing an SQL query that returns result set.&lt;br /&gt;<br />

344 * @param array $params input parameters (name=&amp;gt;value) for the SQL execution. This is an alternative&lt;br /&gt;<br />

345 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing&lt;br /&gt;<br />

346 * them in this way can improve the performance. Note that if you pass parameters in this way,&lt;br /&gt;<br />

347 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.&lt;br /&gt;<br />

348 * binding methods and the input parameters this way can improve the performance.&lt;br /&gt;<br />

Stack Trace&lt;br /&gt;<br />

#0 &lt;br /&gt;<br />

– C:\wamp\www\protected\modules\Install\controllers\DefaultController.php(222): CDbCommand-&amp;gt;execute()&lt;br /&gt;<br />

217 //create db schema&lt;br /&gt;<br />

218 $sql = $this-&amp;gt;getSql($this-&amp;gt;module-&amp;gt;structuresPath);&lt;br /&gt;<br />

219 $sqlArr = $this-&amp;gt;splitQueries($sql);&lt;br /&gt;<br />

220 foreach ($sqlArr as $script) {&lt;br /&gt;<br />

221 if (preg_match(’/(CREATE\s+TABLE|DROP\s+TABLE|ALTER\s+TABLE|CREATE\s+VIEW|DROP\s+VIEW)/i’, $script))&lt;br /&gt;<br />

222 $result = $connection-&amp;gt;createCommand($script)-&amp;gt;execute();&lt;br /&gt;<br />

223 }&lt;br /&gt;<br />

224 &lt;br /&gt;<br />

225 //insert example data&lt;br /&gt;<br />

226 $dataPath = $this-&amp;gt;module-&amp;gt;dataPath;&lt;br /&gt;<br />

227 if (isset($_POST[‘example’]) === true) {&lt;br /&gt;<br />

#1 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\actions\CInlineAction.php(50): DefaultController-&amp;gt;actionStep3()&lt;br /&gt;<br />

#2 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\CController.php(300): CInlineAction-&amp;gt;runWithParams(array(&amp;quot;r&amp;quot; =&amp;gt; &amp;quot;Install/default/step3&amp;quot;))&lt;br /&gt;<br />

#3 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\CController.php(278): CController-&amp;gt;runAction(CInlineAction)&lt;br /&gt;<br />

#4 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\CController.php(257): CController-&amp;gt;runActionWithFilters(CInlineAction, array())&lt;br /&gt;<br />

#5 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\CWebApplication.php(277): CController-&amp;gt;run(&amp;quot;step3&amp;quot;)&lt;br /&gt;<br />

#6 &lt;br /&gt;<br />

  • C:\wamp\www\core\web\CWebApplication.php(136): CWebApplication-&amp;gt;runController(&amp;quot;Install/default/step3&amp;quot;)&lt;br /&gt;<br />

#7 &lt;br /&gt;<br />

  • C:\wamp\www\core\base\CApplication.php(158): CWebApplication-&amp;gt;processRequest()&lt;br /&gt;<br />

#8 &lt;br /&gt;<br />

– C:\wamp\www\install.php(40): CApplication-&amp;gt;run()&lt;br /&gt;<br />

35 &lt;br /&gt;<br />

36 // remove the following line when in production mode&lt;br /&gt;<br />

37 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);&lt;br /&gt;<br />

38 require_once($yii); &lt;br /&gt;<br />

39 &lt;br /&gt;<br />

40 Yii::createWebApplication($config)-&amp;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

Would you please add it to https://yiipowered.com/en? Thanks.

Sure

New Listing @ https://yiipowered.com/en/projects/536/open-school

[size="7"]Latest version 2.7 released[/size]

New Version will be released soon.

2 Likes

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.

2 Likes

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