Open Source Yii CMS - GXC CMS
#201
Posted 04 January 2013 - 10:52 AM
It will handle password upgrades and much more. I noticed that Clevertech uses it for their YiiBoilerplate code, so it must be good.
#202
Posted 05 January 2013 - 07:55 AM
jacmoe, on 04 January 2013 - 10:52 AM, said:
That implementation has some issues, example:
if (function_exists("openssl_random_pseudo_bytes") && strtoupper(substr(PHP_OS,0,3)) !== "WIN") {
$bytes = openssl_random_pseudo_bytes($count);
}
You should also check for PHP >= 5.3.4 on Windows, because PHP < 5.3.4 has serious issues with openssl_random_pseudo_bytes() on the Windows platform.
However it looks like a decent implementation, it's better than the current one and I think you could use it for GXC CMS.
#204
Posted 06 January 2013 - 11:17 AM
When enter localhost/test/backend/install, it returns 404 error.
Any suggestion?
Regards,
M
#205
Posted 19 January 2013 - 11:00 AM
See https://github.com/y...83e9588f055dbec
#206
Posted 01 February 2013 - 04:05 AM
I have add below line to 'install/controller/RunController.php'
$connection=new CDbConnection($string_connection,$model->db_username,$model->db_password);
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
$connection->setAttribute(PDO::ATTR_PERSISTENT, false);
But this error still appear:
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. The SQL statement executed was: UPDATE gxc_settings SET `value` = :v where `category` = :c and `key` = :k
Can someone help me?
Thanks so much
#207
Posted 18 February 2013 - 03:02 PM
if I want to ask my question in another way I want to know in which part I can change the content of home page to for example show tag or... in the home page?
thanks
#209
Posted 19 February 2013 - 11:35 AM
thanks
#210
Posted 20 February 2013 - 03:09 AM
public function getFilePath($file){
$file = str_replace("\\", "/", $file);
return self::RESOURCE_URL.'/'.$file;
}
in LocalStorage.php
#211
Posted 20 February 2013 - 09:21 PM
Steve kein, on 01 February 2013 - 04:05 AM, said:
I have add below line to 'install/controller/RunController.php'
$connection=new CDbConnection($string_connection,$model->db_username,$model->db_password);
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
$connection->setAttribute(PDO::ATTR_PERSISTENT, false);
But this error still appear:
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. The SQL statement executed was: UPDATE gxc_settings SET `value` = :v where `category` = :c and `key` = :k
Can someone help me?
Thanks so much
i got the same error.. i guess the /install still need a lot of work
#213
Posted 09 March 2013 - 01:52 PM
What license are you releasing it under?
Please put a license file in the code.
#214
Posted 17 March 2013 - 01:38 AM
500
Error parsing (my site directory)/common/layouts/default/info.ini on line 8
and another error is in object.php in line 608:
return $class_name::buildLink($this);
that is a syntax error
can u help me with these two problem?
#215
Posted 23 March 2013 - 03:24 AM
Steve kein, on 01 February 2013 - 04:05 AM, said:
I have add below line to 'install/controller/RunController.php'
$connection=new CDbConnection($string_connection,$model->db_username,$model->db_password);
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
$connection->setAttribute(PDO::ATTR_PERSISTENT, false);
But this error still appear:
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. The SQL statement executed was: UPDATE gxc_settings SET `value` = :v where `category` = :c and `key` = :k
Can someone help me?
Thanks so much
Hi! I had the same problem, but allowing the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute haven't solved it. I've imported the database from _DATABASE manually and purged from the code $sql="..._DATABASE..."; parts and others related to it.
Now It runs flowlessly.
#216
Posted 24 March 2013 - 09:05 AM
Ehsan Bahrami, on 17 March 2013 - 01:38 AM, said:
500
Error parsing (my site directory)/common/layouts/default/info.ini on line 8
and another error is in object.php in line 608:
return $class_name::buildLink($this);
that is a syntax error
can u help me with these two problem?
Your php version must be above 5.3 if you want to call a "variable's" static function, that's why you get error for line 608.
#217
Posted 26 March 2013 - 11:01 PM
I tried to create new user after logged in as admin
but there was a error exist at row 184 in core/cms/models/user/User.php
$this->password = VieHashing::hash($this->password);
I can't see the class named VieHashing, but PassHash. Therefore, i edited that line as
$this->password = PassHash::hash($this->password);
#218
Posted 26 March 2013 - 11:12 PM
I have been quite busy these days.
Besides, I have some questions that I want to ask:
1/ I want to implement the Cache for the Frontend. Current solution is that I create Fragment Caches for each regions in the layout. Further more, I will do cache in block_output if needed. Do you have any advice regarding this?
2/ The Mobile layout. As you can see, I changed the frontend folder from old version to 'web', so that I can create another frontend for 'mobile' later. Current only page supports to create page for a specific apps: 'web' or 'mobile'. What do you think about this?
3/ What do you think about multi-sites idea for this cms?
4/ Is there any advice for gxc's next development?
Thank you and Happy Coding!
#219
Posted 27 March 2013 - 05:43 AM
mr80, on 26 March 2013 - 11:12 PM, said:
Responsive design is better than separated desktop and mobile versions.
#220
Posted 02 April 2013 - 07:21 AM
mr80, on 26 March 2013 - 11:12 PM, said:
I agree with ekerazha, no need for separated mobile.
mr80, on 26 March 2013 - 11:12 PM, said:
I think that would be nice, and as I realised, this folder structure is suitable for this aim.
mr80, on 26 March 2013 - 11:12 PM, said:
I think Taxonomy and Term part can be a bit different. Maybe I do something wrong, but if I have an Article and an Event with the same topic (e.g. cinema) and I want to search for it in archive, I have to add two separated term to my query instead of the same one.
It would be nice if existing Terms could be added to Taxonomies.
For me was an other problem that block defined with queue didn't worked on the web side, but I still had no time to figure it out.
That's it, have a nice work and thanks in advance!

Help













