I have installed 4.3.4 on a unix server with PHP8.1. Database connection okay. All working fine except when I attempt to access admin and get the following response:
Couldn't include '/home/sites/XXREDACTEDXX/public_html/vendor/autoload.php'. Did you run `composer install`?
(obviously I redacted the full URL here for security).
Has anyone got any ideas why it is happening and what I can do to fix it? It appears all elements of the install went well and all the files I expect to see are in the right places with the right contents and permissions.
Thanks in advance
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Does this happen when you log in?
- Or does it happen when you go to the admin dashboard?
- mariano@marianito
mariano - 0 likes
- mariano@marianito
mariano - 0 likes
- Craig Roberts@DarkIdris
Craig Roberts - 0 likes
- Craig Roberts@DarkIdris
Craig Roberts - 1 like
You must log in to post replies.Please more details:
Also, how did you install Elgg: through the composer or the old way (via FTP)?
Look at this discussion too.
es un problema en la base de datos, cuando creas el usuario administrador, este no se crea, es algo que intente avisar desde hace rato pero no encuentro una respuesta coerente
https://elgg.org/discussion/view/3269582/error-creating-admin-user-during-installation
I installed through FTP as it is a hosted domain and only happens when I go to the admin dashboard. I'm now wondering if there's an issue with the path, which I'll look into, but I'd assume that the paths are defined correctly as the rest of the site is working absolutely fine. Odd. I've used many previous versions of Elgg in a previous job and I've seen many problems but never this one.
Thanks for the help, @mariano and @nikolai
Got it!
There was a path and permissions issue that seemed to have not worked in the install so I fixed it manually. All looks good for now!
If anyone else has these problems with an FTP install, I'd absolutely check all relative and absolute paths are correct and permissions have been assigned properly, even if you think you've done it once already (some changes don't always stick!).