Page 1 of 1

Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 3:21 pm
by jafo
So I have been trying to install Zuluru3 for a bit now. I'm very new to cake so this may be an easy one that I can't find. Can you help me fix the error found below? The rest of this is to document what I have done, how someone else could do it and maybe the cause of my issues.

Steps I have taken on a brand new virtual machine:
1) install ubuntu 16.04 server ISO
2) install apache2
3) install mysql
4) install php5.6 using these directions: https://tecadmin.net/install-php5-on-ubuntu/
5) install a whole mess of supporting stuff to get the composer to be happy

Code: Select all

sudo apt install php5.6-mysql php5.6-dev php-pear php5.6-intl php5.6-mbstring php5.6-xml icu-devtools libicu-dev autoconf-archive php5.6-zip php5.6-sqlite gnu-standards autoconf-doc binutils-doc cpp-doc gcc-5-locales dh-make debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg lib32stdc++6-5-dbg libx32stdc++6-5-dbg flex bison gdb gcc-doc libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg lib32stdc++6-5-dbg libx32stdc++6-5-dbg flex bison gdb gcc-doc libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg bison-doc libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg gdb-doc gettext-doc autopoint glibc-doc icu-doc libtool-doc libssl-doc libstdc++-5-doc gfortran doc-base gfortran-multilib gfortran-doc gfortran-5-multilib gfortran-5-doc libgfortran3-dbg gcj-jdk make-doc dh-php libmail-box-perl python-enum34-doc 
6) curl -sS https://getcomposer.org/installer | php
7) sudo mv composer.phar /usr/local/bin/composer
8) git clone https://github.com/Zuluru/Zuluru3.git
9) cd Zuluru3
10) composer install

Results:

Code: Select all

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 83 installs, 0 updates, 0 removals
  - Installing cakephp/plugin-installer (1.1.0): Downloading (100%)
  - Installing aura/intl (3.0.0): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing zendframework/zend-diactoros (1.8.6): Downloading (100%)
  - Installing psr/log (1.0.2): Downloading (100%)
  - Installing cakephp/chronos (1.2.2): Downloading (100%)
  - Installing cakephp/cakephp (3.6.12): Downloading (100%)
  - Installing cakephp-app-installer/installer (2.0.0): Downloading (100%)
  - Installing cakephp/authentication (1.0.1): Downloading (100%)
  - Installing cakephp/authorization (1.0.0): Downloading (100%)
  - Installing cakephp/bake (1.1.4): Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.9.0): Downloading (100%)
  - Installing symfony/yaml (v3.4.17): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.9.0): Downloading (100%)
  - Installing symfony/debug (v3.4.17): Downloading (100%)
  - Installing symfony/console (v3.4.17): Downloading (100%)
  - Installing symfony/filesystem (v3.4.17): Downloading (100%)
  - Installing symfony/config (v3.4.17): Downloading (100%)
  - Installing robmorgan/phinx (v0.8.1): Downloading (100%)
  - Installing cakephp/migrations (1.8.1): Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (100%)
  - Installing commerceguys/enum (v1.0): Downloading (100%)
  - Installing commerceguys/addressing (v0.8.4): Downloading (100%)
  - Installing commerceguys/intl (v0.7.5): Downloading (100%)
  - Installing dereuromark/cakephp-ajax (dev-master f30ae02): Cloning f30ae028f0 from cache
  - Installing friendsofcake/bootstrap-ui (v0.6.2): Downloading (100%)
  - Installing oyejorge/less.php (v1.7.0.14): Downloading (100%)
  - Installing elboletaire/less-cake-plugin (v1.7.1): Downloading (100%)
  - Installing elboletaire/twbs-cake-plugin (dev-master 52c1dbd): Cloning 52c1dbd18e from cache
  - Installing firebase/php-jwt (v5.0.0): Downloading (100%)
  - Installing giggsey/locale (1.5): Downloading (100%)
  - Installing giggsey/libphonenumber-for-php (7.7.5): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
  - Installing league/flysystem (1.0.47): Downloading (100%)
  - Installing josegonzalez/cakephp-upload (3.8.1): Downloading (100%)
  - Installing m1/env (2.1.2): Downloading (100%)
  - Installing josegonzalez/dotenv (3.2.0): Downloading (100%)
  - Installing mtdowling/jmespath.php (2.4.0): Downloading (100%)
  - Installing aws/aws-sdk-php (3.69.2): Downloading (100%)
  - Installing league/flysystem-aws-s3-v3 (1.0.21): Downloading (100%)
  - Installing mobiledetect/mobiledetectlib (2.8.33): Downloading (100%)
  - Installing muffin/footprint (dev-master 7833248): Cloning 7833248be7 from cache
  - Installing ozee31/cakephp-cors (v1.1.4): Downloading (100%)
  - Installing soundasleep/html2text (0.5.0): Downloading (100%)
  - Installing symfony/translation (v3.0.9): Downloading (100%)
  - Installing symfony/validator (v2.8.46): Downloading (100%)
  - Installing trentrichardson/cakephp-scheduler (3.0.4): Downloading (100%)
  - Installing zuluru/cakephp-bootstrap (dev-master 16dc5a8): Cloning 16dc5a83c0 from cache
  - Installing zuluru/cakephp-jquery (dev-master f6f10cb): Cloning f6f10cb8ef from cache
  - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)
  - Installing cakephp/debug_kit (3.2.9): Downloading (100%)
  - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%)
  - Installing webmozart/assert (1.3.0): Downloading (100%)
  - Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
  - Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
  - Installing phpdocumentor/reflection-docblock (3.3.2): Downloading (100%)
  - Installing phpunit/php-token-stream (1.4.12): Downloading (100%)
  - Installing sebastian/version (2.0.1): Downloading (100%)
  - Installing sebastian/resource-operations (1.0.0): Downloading (100%)
  - Installing sebastian/recursion-context (2.0.0): Downloading (100%)
  - Installing sebastian/object-enumerator (2.0.1): Downloading (100%)
  - Installing sebastian/global-state (1.1.1): Downloading (100%)
  - Installing sebastian/exporter (2.0.0): Downloading (100%)
  - Installing sebastian/environment (2.0.0): Downloading (100%)
  - Installing sebastian/diff (1.4.3): Downloading (100%)
  - Installing sebastian/comparator (1.2.4): Downloading (100%)
  - Installing phpunit/php-text-template (1.2.1): Downloading (100%)
  - Installing doctrine/instantiator (1.0.5): Downloading (100%)
  - Installing phpunit/phpunit-mock-objects (3.4.4): Downloading (100%)
  - Installing phpunit/php-timer (1.0.9): Downloading (100%)
  - Installing phpunit/php-file-iterator (1.4.5): Downloading (100%)
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)
  - Installing phpunit/php-code-coverage (4.0.8): Downloading (100%)
  - Installing phpspec/prophecy (1.8.0): Downloading (100%)
  - Installing myclabs/deep-copy (1.7.0): Downloading (100%)
  - Installing phpunit/phpunit (5.7.27): Downloading (100%)
  - Installing symfony/var-dumper (v3.4.17): Downloading (100%)
  - Installing nikic/php-parser (v3.1.5): Downloading (100%)
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
  - Installing psy/psysh (v0.9.8): Downloading (100%)
cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug())
cakephp/authentication suggests installing ext-ldap (Make sure this php extension is installed and enabled on your system if you want to use the built-in LDAP adapter for "LdapIdentifier".)
symfony/console suggests installing psr/log-implementation (For using the console logger)
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
commerceguys/addressing suggests installing symfony/form (to generate Symfony address forms)
commerceguys/addressing suggests installing symfony/intl (to use it as the source of country data)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
m1/env suggests installing m1/vars (For loading of configs)
aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)
aws/aws-sdk-php suggests installing doctrine/cache (To use the DoctrineCacheAdapter)
aws/aws-sdk-php suggests installing ext-curl (To send requests using cURL)
symfony/validator suggests installing doctrine/annotations (For using the annotation mapping. You will also need doctrine/cache.)
symfony/validator suggests installing doctrine/cache (For using the default cached annotation reader and metadata cache.)
symfony/validator suggests installing egulias/email-validator (Strict (RFC compliant) email validation)
symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
symfony/validator suggests installing symfony/http-foundation
symfony/validator suggests installing symfony/intl
symfony/validator suggests installing symfony/property-access (For using the 2.4 Validator API)
cakephp/debug_kit suggests installing ext-sqlite (DebugKit needs to store panel data in a database. SQLite is simple and easy to use.)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/var-dumper suggests installing ext-symfony_debug
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
Generating autoload files
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
> App\Console\Installer::postInstall
Created `/home/brian/Zuluru3-3.1.1/logs` directory
Created `/home/brian/Zuluru3-3.1.1/tmp` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/cache` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/cache/models` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/cache/persistent` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/cache/views` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/sessions` directory
Created `/home/brian/Zuluru3-3.1.1/tmp/tests` directory
Set Folder Permissions ? (Default to Y) [Y,n]? y
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/cache
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/cache/models
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/cache/persistent
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/cache/views
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/sessions
Permissions set on /home/brian/Zuluru3-3.1.1/tmp/tests
Permissions set on /home/brian/Zuluru3-3.1.1/tmp
Permissions set on /home/brian/Zuluru3-3.1.1/logs
No Security.salt placeholder to replace.
11) run cake server to get the initial setup done

Code: Select all

 sudo bin/cake server --port 80 --host 0.0.0.0
PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /home/brian/Zuluru3-3.1.1/config/bootstrap.php on line 117

Welcome to CakePHP v3.6.12 Console
---------------------------------------------------------------
App : src
Path: /home/brian/Zuluru3-3.1.1/src/
DocumentRoot: /home/brian/Zuluru3-3.1.1/webroot
Ini Path:
---------------------------------------------------------------
built-in server is running in http://0.0.0.0:80/
You can exit with `CTRL-C`
12) got to the site: http://localhost:80/ and I get this error

Code: Select all

[Sat Dec 29 11:55:07 2018] PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /home/brian/Zuluru3-3.1.1/config/bootstrap.php on line 117
[Sat Dec 29 11:55:07 2018] PHP Fatal error:  [Cake\Database\Exception\MissingDriverException] Database driver Cake\Database\Driver\ could not be found.
#0 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Database/Connection.php(120): Cake\Database\Connection->setDriver('Cake\\Database\\D...', Array)
#1 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Datasource/ConnectionRegistry.php(89): Cake\Database\Connection->__construct(Array)
#2 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php(97): Cake\Datasource\ConnectionRegistry->_create('Cake\\Database\\C...', 'default', Array)
#3 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php(205): Cake\Core\ObjectRegistry->load('default', Array)
#4 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php(216): Cake\Datasource\ConnectionManager::get('default')
#5 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Http/Session/DatabaseSession.php(60): Cake\ORM\Locator\TableLocator->get('Sessions', Array)
#6 /home/brian/Zulur in /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 180
[Sat Dec 29 11:55:07 2018] PHP Fatal error:  [Cake\Database\Exception\MissingDriverException] Database driver Cake\Database\Driver\ could not be found.
#0 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Database/Connection.php(120): Cake\Database\Connection->setDriver('Cake\\Database\\D...', Array)
#1 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Datasource/ConnectionRegistry.php(89): Cake\Database\Connection->__construct(Array)
#2 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php(97): Cake\Datasource\ConnectionRegistry->_create('Cake\\Database\\C...', 'default', Array)
#3 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php(205): Cake\Core\ObjectRegistry->load('default', Array)
#4 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/ORM/Locator/TableLocator.php(216): Cake\Datasource\ConnectionManager::get('default')
#5 /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Http/Session/DatabaseSession.php(60): Cake\ORM\Locator\TableLocator->get('Sessions', Array)
#6 /home/brian/Zulur in /home/brian/Zuluru3-3.1.1/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 180
[Sat Dec 29 11:55:16 2018] PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /home/brian/Zuluru3-3.1.1/config/bootstrap.php on line 117
[Sat Dec 29 11:55:16 2018] PHP Fatal error:  Class 'Ajax\Middleware\AjaxMiddleware' not found in /home/brian/Zuluru3-3.1.1/src/Application.php on line 313
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57017 [200]: /css/zuluru/layout.css?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57019 [200]: /css/zuluru/look.css?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57020 [200]: /css/pace/themes/pace-theme-minimal.css?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57022 [200]: /js/pace.min.js?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57026 [200]: /js/zuluru.js?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57029 [200]: /img/facebook.png?1545259236
[Sat Dec 29 11:55:17 2018] 10.0.2.2:57031 [200]: /favicon.ico?1545259236
Let me know if you need more detail? Thanks and looking forward to getting this resolved.

Re: Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 3:28 pm
by GregS
The first page you should go to in order to run the installation process and set up the database would be http://localhost:80/installer/install

Re: Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 3:54 pm
by jafo
I had tried that and received this:

Code: Select all

[Sat Dec 29 13:53:30 2018] PHP Notice:  date_default_timezone_set(): Timezone ID '' is invalid in /home/brian/Zuluru3-3.1.1/config/bootstrap.php on line 117
[Sat Dec 29 13:53:30 2018] PHP Fatal error:  Class 'Ajax\Middleware\AjaxMiddleware' not found in /home/brian/Zuluru3-3.1.1/src/Application.php on line 313
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59210 [200]: /css/zuluru/layout.css?1545259236
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59214 [200]: /css/zuluru/look.css?1545259236
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59215 [200]: /css/pace/themes/pace-theme-minimal.css?1545259236
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59216 [200]: /js/pace.min.js?1545259236
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59219 [200]: /js/zuluru.js?1545259236
[Sat Dec 29 13:53:30 2018] 192.168.150.119:59220 [200]: /img/facebook.png?1545259236
[Sat Dec 29 13:53:31 2018] 192.168.150.119:59222 [200]: /favicon.ico?1545259236

Re: Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 4:08 pm
by GregS
Does your copy of 3.1.1 date from before Dec 20? There was a fix put in that day that should resolve the AjaxMiddleware issue. If not, remember to re-run composer install after your git pull; it'll be a lot less updates this time around than the first time you ran it. :)

Re: Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 9:40 pm
by jafo
Yes that was the issue, I had been using the 3.1.1 file. Using the clone of the repository worked. I was able to create the database and it looks like the application is "running" but now the admin doesn't function. I get the following error after logging in:
Your profile is incomplete. You must update it before proceeding.
An Internal Error Has Occurred

Error: An Internal Error Has Occurred.
NOTE: there was nothing outputted to the cake server but I did see these in the error.log file

Code: Select all

2018-12-29 21:50:40 Error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #42 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'zuluru.AffiliatesPeople.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Request URL: /people/edit
Referer URL: http://192.168.150.176/users/login
Stack Trace:
#0 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php(39): PDOStatement->execute(NULL)
#1 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Database/Connection.php(334): Cake\Database\Statement\MysqlStatement->execute()
#2 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php(68): Cake\Database\Connection->Cake\Database\{closure}()
#3 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Database/Connection.php(337): Cake\Core\Retry\CommandRetry->run(Object(Closure))
#4 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Database/Query.php(219): Cake\Database\Connection->run(Object(Cake\Database\Query))
#5 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/ORM/Query.php(963): Cake\Database\Query->execute()
#6 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/ORM/Query.php(908): Cake\ORM\Query->_performCount()
#7 /home/brian/Zuluru3/src/Controller/AppController.php(620): Cake\ORM\Query->count()
#8 /home/brian/Zuluru3/src/Controller/AppController.php(202): App\Controller\AppController->_initMenu()
#9 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Event/EventManager.php(353): App\Controller\AppController->beforeFilter(Object(Cake\Event\Event))
#10 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Event/EventManager.php(330): Cake\Event\EventManager->_callListener(Array, Object(Cake\Event\Event))
#11 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php(114): Cake\Event\EventManager->dispatch(Object(Cake\Event\Event))
#12 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Controller/Controller.php(671): Cake\Controller\Controller->dispatchEvent('Controller.init...')
#13 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(115): Cake\Controller\Controller->startupProcess()
#14 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(94): Cake\Http\ActionDispatcher->_invoke(Object(App\Controller\PeopleController))
#15 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/BaseApplication.php(235): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#16 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\BaseApplication->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#17 /home/brian/Zuluru3/src/Middleware/AffiliateConfigurationLoader.php(19): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#18 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Middleware\AffiliateConfigurationLoader->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#19 /home/brian/Zuluru3/src/Http/Middleware/ActAsMiddleware.php(56): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#20 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Http\Middleware\ActAsMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#21 /home/brian/Zuluru3/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php(113): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#22 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Authorization\Middleware\AuthorizationMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#23 /home/brian/Zuluru3/src/Application.php(344): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#24 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Application->App\{closure}(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#25 /home/brian/Zuluru3/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php(121): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#26 /home/brian/Zuluru3/src/Application.php(335): Authentication\Middleware\AuthenticationMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#27 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Application->App\{closure}(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#28 /home/brian/Zuluru3/vendor/dereuromark/cakephp-ajax/src/Middleware/AjaxMiddleware.php(72): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#29 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Ajax\Middleware\AjaxMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#30 /home/brian/Zuluru3/src/Http/Middleware/CookiePathMiddleware.php(33): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#31 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Http\Middleware\CookiePathMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#32 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Middleware/EncryptedCookieMiddleware.php(89): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#33 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\Middleware\EncryptedCookieMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#34 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php(107): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#35 /home/brian/Zuluru3/src/Application.php(300): Cake\Http\Middleware\CsrfProtectionMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#36 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Application->App\{closure}(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#37 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php(135): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#38 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\Middleware\BodyParserMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#39 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(156): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#40 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\RoutingMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#41 /home/brian/Zuluru3/vendor/ozee31/cakephp-cors/src/Routing/Middleware/CorsMiddleware.php(31): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#42 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cors\Routing\Middleware\CorsMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#43 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/I18n/Middleware/LocaleSelectorMiddleware.php(62): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#44 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\I18n\Middleware\LocaleSelectorMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#45 /home/brian/Zuluru3/src/Middleware/ConfigurationLoader.php(19): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#46 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): App\Middleware\ConfigurationLoader->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#47 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php(88): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#48 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\AssetMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#49 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php(98): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#50 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Error\Middleware\ErrorHandlerMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#51 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Runner.php(51): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#52 /home/brian/Zuluru3/vendor/cakephp/cakephp/src/Http/Server.php(98): Cake\Http\Runner->run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#53 /home/brian/Zuluru3/webroot/index.php(41): Cake\Http\Server->run()
#54 {main}
Thoughts on what I might have done wrong?

Re: Help installing 3.1.1 - database driver not found

Posted: Sat Dec 29, 2018 9:55 pm
by GregS
Ah, this looks like another issue, which I haven't yet had a chance to get into. MySQL 5.7.5 and higher defaults to a strict mode of SQL operation, which it seems is not compatible with the queries that Cake generates by default. You can apparently work around it by putting

sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION

in your MySQL configuration, if you have access to that. Alternately, use 5.7.4 or earlier. It'll be at least a few weeks before I have a chance to look into fixing this in the code. :(

Re: Help installing 3.1.1 - database driver not found

Posted: Sun Dec 30, 2018 1:29 am
by jafo
Hooray! I'm in and starting to do different setups. If you think it would be helpful, I'm happy to repost each setup in a little more detail, especially after I get Apache up and working?

Happy New Year!