-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure "undefined function Symfony\Component\Config\ctype_alpha()" #1654
Comments
Thank you for your report @chrisveness . We are looking into this. |
@chrisveness looking at your command sequence, did you run |
@tuxpiper I ran |
@chrisveness I haven't been able to reproduce the problem in a fresh system What distribution and version of PHP are you trying? |
I've tried the install process again, and am no longer seeing that issue, so perhaps it's been fixed (either in ushahidi directly or in phinx). However, I'm now seeing
Searching previous issues, this appears to be related to #1177 – is Phinx something of a moving target? I'm running Linux Mint 18 / Ubuntu 16.04 / Kernel 4.4.0, PHP v7.1.3, MySQL v5.7.17, Phinx v0.4.3. |
Yes, #1177 is probably causing your trouble. It's actually MySQL that shook things up by changing the default way their engine worked with some aspects of SQL. If you adjust the sql_mode in MySQL, that should fix your problem. Attention: our codebase is not compatible with PHP 7.x . You should install and use 5.6 . |
I'm afraid I'm struggling with this. From #1177, I take it the problem revolves around NO_ZERO_DATE? I'm not sure how to switch off this option, and I'm also not sure that I will be able to for the entire database (e.g. in my.cnf). I see that NO_ZERO_DATE is default for MySQL 5.7, which is now some three years old. If it's not possible to update Ushahidi to fix this issue, can you advise how I can disable the NO_ZERO_DATE option on a per-session basis in order to install Ushahidi? Thx. |
In that case, could probably try to use a newer version of phinx. We haven't tested this fully, so YMMV. Commands:
then |
Thank you for your support, but having followed that procedure, I now have the following from
I think I had better wait a bit until you next have a stable version released. Thanks for the support. |
Sorry about that @chrisveness . We are now in an effort to performing some general updates to the dependencies. We hopefully should be in a better place soon. |
I used "monkey patching" from here. in /platform/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php as follows: which solved the problem and migration has succeeded: All Done. Took 1.6829s |
The aforementioned monkey patch did not help, the app indeed installed the db, however later it could not use the database (error while inserting, e.g. new role, etc). I downgraded to Mysql 5.6 and all works fine. |
@klimeto @chrisveness can you try the current develop branch? We've update a lot of dependencies now, and improved mysql handling for more mysql 5.7 |
I am attempting to build Ushahidi platform as per Install Ushahidi on Linux instructions.
After the following steps:
I get an error reported:
The text was updated successfully, but these errors were encountered: