problem during installation

131 views
Skip to first unread message

charles Pinoteau

unread,
Nov 20, 2020, 9:47:25 AM11/20/20
to phrasea-install-en
Hello , 


if someone could help me  i'm stuck  :(,
 
when I launch the installation I have the following problem :




ElasticSearch server index name (blank to autogenerate) : 

Phraseanet is going to be installed, continue ? (N/y)y

PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\UndefinedFunctionException: Attempted to call function "simplexml_load_file" from namespace "Alchemy\Phrasea\Setup". in /var/www/Phraseanet/lib/Alchemy/Phrasea/Setup/Installer.php:133
Stack trace:
#0 /var/www/Phraseanet/lib/Alchemy/Phrasea/Setup/Installer.php(35): Alchemy\Phrasea\Setup\Installer->rollbackInstall(Object(Doctrine\DBAL\Connection), Object(Doctrine\DBAL\Connection))
#1 /var/www/Phraseanet/lib/Alchemy/Phrasea/Command/Setup/Install.php(169): Alchemy\Phrasea\Setup\Installer->install('phraseanet@tv...', 'phraseat', Object(Doctrine\DBAL\Connection), 'phraseanet', Array, Object(Doctrine\DBAL\Connection), 'fr-simple', Array)
#2 /var/www/Phraseanet/lib/Alchemy/Phrasea/Command/Command.php(63): Alchemy\Phrasea\Command\Setup\Install->doExecute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/Phraseanet/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(264): Alchemy\Phra in /var/www/Phraseanet/lib/Alchemy/Phrasea/Setup/Installer.php on line 133

Moctar Diouf

unread,
Nov 20, 2020, 10:15:51 AM11/20/20
to phrasea-i...@googlegroups.com
Hello,

Seems like you are facing a matter dealing with sql_mode.

What is the result of theses mysql requests ?

SELECT @@GLOBAL.sql_mode;
SELECT @@SESSION.sql_mode;
Regards


--
You received this message because you are subscribed to the Google Groups "phrasea-install-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phrasea-install...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phrasea-install-en/cde68bd9-ac07-4ce9-904d-8fc4151a628cn%40googlegroups.com.

charles Pinoteau

unread,
Nov 20, 2020, 11:32:16 AM11/20/20
to phrasea-install-en
 thank you for your time  
 
here is the result of these commands :



mysql> SELECT @@GLOBAL.sql_mode;
+-------------------------------------------------------------------------------------------------------------------------------------------+
| @@GLOBAL.sql_mode                                                                                                                         |
+-------------------------------------------------------------------------------------------------------------------------------------------+
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SELECT @@SESSION.sql_mode;
+-------------------------------------------------------------------------------------------------------------------------------------------+
| @@SESSION.sql_mode                                                                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------------------+
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Moctar Diouf

unread,
Nov 20, 2020, 11:38:05 AM11/20/20
to phrasea-i...@googlegroups.com
This is what is causing the problem

To fix this :

add a line 

sql_mode = 

under [mysqld] 
into the my.cnf or a mysql/conf.d/specific.conf file


restart mysql or mariadb and retry the installation.

Regards


charles Pinoteau

unread,
Nov 20, 2020, 11:51:59 AM11/20/20
to phrasea-install-en

mysql> set global sql_mode='UNDER' ;            <----- ???

how can i do it under Mysql please , i don't know how to do that  :(

Moctar Diouf

unread,
Nov 20, 2020, 12:06:13 PM11/20/20
to phrasea-i...@googlegroups.com
I mean,

edit the mysql configuration file which can be her « /etc/mysq/my.cnf »
add the line below under the [mysqld] section

sql_mode=



charles Pinoteau

unread,
Nov 20, 2020, 12:07:11 PM11/20/20
to phrasea-install-en
ok I try that now
Message has been deleted
Message has been deleted

charles Pinoteau

unread,
Nov 27, 2020, 4:50:24 AM11/27/20
to phrasea-install-en
root@ns319:/etc/mysql# cat my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
[mysqld]
sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/


__________________________
i restarted mysql service but i still have the same problem :(   could you tell me if i was wrong in my.cnf  please ?  

thank you so much
  
On Friday, November 20, 2020 at 6:06:13 PM UTC+1 MD wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages