Loading...
 
Skip to main content

Composer install fails

Status
Closed
Subject
Composer install fails
Category
  • Usability
Feature
Installer (profiles, upgrades and server-related issues)
Resolution status
Works For Me
Submitted by
Karen Stingel
Volunteered to solve
Karen Stingel
Lastmod by
Karen Stingel
Rating
(0)
Description

After checking out trunk via SVN and receiving the new Composer files, running the composer install failed to download the zendframework1 requirement and I was unable to proceed to install Tiki.

Setup:
Windows 7 Pro 😡
XAMPP 1.8.1
vhosts setup for each Tiki
Tiki runs from a subfolder "tiki" within webroot
"tiki" is a symlink to my checkout branch

Solution

delete the "tiki" symlink under webroot (checkout is unaffected)
create a folder 'tiki' under webroot
create a "temp" folder inside new tiki folder
download (or copy) composer.phar to this new temp folder

open notepad.exe and create a new composer.json file:

composer.json
Copy to clipboard
{ "require": { "zendframework/zendframework1": "1.12.1" }, "config": { "process-timeout": 5000 } }


now open a command prompt in the tiki folder on the server

type:
Copy to clipboard
php temp/composer.phar install


you should see the following response:

Console Feedback
Copy to clipboard
Loading composer repositories with package information Installing dependencies - Installing zendframework/zendframework1 (1.12.1) Checking out /tags/release-1.12.1/@25165 Writing lock file Generating autoload files


once you see that, you can go into your tiki folder and delete the composer.json and composer.lock files from that folder (we will over-write them momentarily with the real ones)

copy the contents of your Tiki checkout into the 'tiki' folder on your server

once the copy has completed, run
Copy to clipboard
php temp/composer.phar update
to download the rest of the Tiki requirements.


You should now be able to go ahead and run tiki-install.php and use your Tiki. 😊

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4383
Created
Wednesday 13 February, 2013 17:04:45 UTC
by Karen Stingel
LastModif
Wednesday 13 February, 2013 17:14:54 UTC


Show PHP error messages