G6K icon indicating copy to clipboard operation
G6K copied to clipboard

Issue during installation

Open MOUDDENEHamza opened this issue 4 years ago • 9 comments

I try to install it but I have this : Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !!
!! In ArrayNode.php line 327: !!
!! Unrecognized option "migrations_paths" under "doctrine_migrations". Availab
!! le options are "all_or_nothing", "column_length", "column_name", "custom_te
!! mplate", "dir_name", "executed_at_column_name", "name", "namespace", "organ
!! ize_migrations", "table_name".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

MOUDDENEHamza avatar Jul 17 '20 22:07 MOUDDENEHamza

I try to install it but I have this : Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In ArrayNode.php line 327: !! !! Unrecognized option "migrations_paths" under "doctrine_migrations". Availab !! le options are "all_or_nothing", "column_length", "column_name", "custom_te !! mplate", "dir_name", "executed_at_column_name", "name", "namespace", "organ !! ize_migrations", "table_name". !! !! !! Script @auto-scripts was called via post-update-cmd

MOUDDENEHamza avatar Jul 17 '20 22:07 MOUDDENEHamza

Hello I try to install G6K and I can't install it because of this :

Script App\G6K\Composer\ScriptHandler::installDemo handling the g6k-scripts event terminated with an exception

[PDOException]
could not find driver

MOUDDENEHamza avatar Jul 20 '20 17:07 MOUDDENEHamza

hi,

What is your sql driver, see the DB_ENGINE parameter in the ".env" file. The allowed drivers are sqlite, mysql and pgsql

check in php.ini that pdo_pgsql or pdo_sqlite or pdo_mysql (depending on the driver you are using) is enabled

if your driver is mysql or pgsql, the corresponding database engine must be started before installation.

eureka2 avatar Jul 22 '20 08:07 eureka2

I use the pdo_pgsql, but I don't find any ".env" file or "php.ini" before the installation. Thank you

MOUDDENEHamza avatar Jul 22 '20 09:07 MOUDDENEHamza

the .env file is in the G6K installation directory

the php.ini file is in the php installation directory

eureka2 avatar Jul 22 '20 09:07 eureka2

I'm sorry to disturb you, but I don't have any folder called installation, here is the repository

Screenshot from 2020-07-22 11-54-55

MOUDDENEHamza avatar Jul 22 '20 09:07 MOUDDENEHamza

Please, can you run these 3 commands from the G6K directory:

ls -al
php -i | grep -i PostgreSQL
php -v

and show me the results

eureka2 avatar Jul 22 '20 11:07 eureka2

here is the result Screenshot from 2020-07-22 13-22-09

MOUDDENEHamza avatar Jul 22 '20 11:07 MOUDDENEHamza

Ok i see you can't use the pgsql driver because your php is not configured for. The command php -i | grep -i PostgreSQL should return the following lines:

PDO Driver for PostgreSQL => enabled
PostgreSQL(libpq) Version => x.x.x
PostgreSQL Support => enabled
PostgreSQL(libpq) Version => x.x.x

eureka2 avatar Jul 22 '20 11:07 eureka2