Loading...
 
Skip to main content

Composer is unavailable and can't be installed on a fresh Tiki 24.0 install

Status
Open
Subject
Composer is unavailable and can't be installed on a fresh Tiki 24.0 install
Version
24.x
Category
  • Regression
Feature
Admin Interface (UI)
Resolution status
New
Submitted by
Jean-Marc Libs
Lastmod by
Jean-Marc Libs
Rating
(1)
Description

On a fresh Tiki 24.0 install, I installed the Blogs profile and on the lowest part of the Members Home page, I get errors with a helpful message about installing the missing npm-asset/fullcalendar-scheduler package.

When I follow the link to tiki-admin.php?page=packages , Tiki complains that temp/composer.phar is missing. It suggests I install composer in the Diagnose tab and that fails also.

  • No reason is provided by Tiki, which is bad because users have no clue what to try next
  • Nothing in apache error logs
  • Tiki PHP error log at the page bottom does provide a hint:
ERROR (E_WARNING): file_exists(): open_basedir restriction in effect. File(/usr/local/sbin/php) is not within the allowed path(s): (xxxxxxx) At line 231 in lib/core/Tiki/Package/ComposerCli.php


We should have a better, more secure way of installing composer.
If the above is not possible, we should have better feedback and suggest ways around the issue so it does not look like a Tiki bug.

Installing composer on the command line works, but Tiki does not mention this or how to do it.

Importance
8
Easy to solve?
5
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8111
Created
Wednesday 02 March, 2022 19:16:37 UTC
by Jean-Marc Libs
LastModif
Wednesday 02 March, 2022 19:16:37 UTC


Show PHP error messages