Demo Installation

Permalink
Hi,

I followed the instructions athttp://www.concrete5.org/documentation/how-tos/developers/concrete5... but when I run the reset script I get the following error:
Fatal error: Call to undefined method FileSet::setPermissions() in /home/sababa/public_html/demo/reset.php on line 112.

What can be the problem?

Thanks.

 
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
I get the same error message. I think the point is that the script was built for concrete5 version 5.5.x, and in 5.6.x the permission system has changed, but the script has not been updated. I commented the lines out, but then all I got was an empty white page. I’m hoping for a fix.

But before I had installed 5.6.0.2, there appeared another error:

--- There are already 166 tables in this database. concrete5 must be installed in an empty database. ---

The script should delete all tables in the database before re-installing the system, right? But obviously it does not do.
meir replied on at Permalink Reply
I looked for documentation on the permissions, but it seems it was not updated. Do you know if there is any?
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
It seems like the whole documentation is for 5.5 still. I haven’t found any updates either.
aryeh replied on at Permalink Reply
did anyone find a fix?
DeWebmakers replied on at Permalink Reply
DeWebmakers
I'm using another function...
I don't know if this is the best solution but it seems to work!

I changed:

$fs->assignPermissions($adminGroup, FilePermissions::PTYPE_ALL, FilePermissions::PTYPE_ALL, FilePermissions::PTYPE_NONE, FilePermissions::PTYPE_NONE, FilePermissions::PTYPE_NONE);


to:

//$fs->assignPermissions($adminGroup, FilePermissions::PTYPE_ALL, FilePermissions::PTYPE_ALL, FilePermissions::PTYPE_NONE, FilePermissions::PTYPE_NONE, FilePermissions::PTYPE_NONE);
$fs->resetPermissions();