Hello,
My Elgg site is working on my web host and I would like to have a local development environment to use for plugin creation. I used Elgg 3.3.12 since that matched my web installation.
I have more experience with front end development and have been unable to complete the install with Xampp. The other discussion threads were older and did not help me resolve this issue.
localhost/sites/install.php loads but I cannot move past the 'Database Installation' screen. I created the elgg database but may not understand a step regarding composer.json or a step in the phpMyAdmin section. I created a database user but those fields do not seem to prevent or impact the error. I can create different errors if I change my 'data' path from C:\xampp\htdocs\sites\data to something invalid.
This is the error when I click next:
Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in C:\xampp\htdocs\sites\elgg\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php on line 81
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Pranjal Pandey@pranj7
Pranjal Pandey - 0 likes
- Jay Kolbet-Clausell@Jazfry
Jay Kolbet-Clausell - 1 like
You must log in to post replies.Hey Jay,
It seems like the PHP version your Xampp is using is PHP 8 . This error occurs when you are using PHP 8 . Elgg currently does not support PHP 8 , so I recommend you to install a lower version [PHP 7.4] and the problem will go :)
Thank you. I came across that info on Github and thought for sure I was on 7, but you are correct. I just started with an older version of xampp, the process went smoothly at more steps, and I am up and running.