fxp package error when running composer update

Rakaris Bakaris

Well-Known Member
Jan 8, 2015
73
3
8
cPanel Access Level
Root Administrator
Hello!
We are getting such error when running composer update:
Fatal error: Call to undefined method Composer\Package\RootPackage::getConfig() in /home/account/web/vendor/fxp/composer-asset-plugin/Config/ConfigBuilder.php on line 111
According this I see that fxp package requirement is Composer 1.4.0, but 'composer -v' shows:
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.6.32 (cli) (built: Dec 28 2017 10:51:46)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.
So we have determined that Cpanel uses Composer 1.1.1 but plugin needs at least 1.4.0. How to upgrade to more newer (at least 1.4 but it will be better for 1.6) version?


Thanks!
 
Last edited:

cPWilliamL

cP Technical Analyst II
Staff member
May 15, 2017
258
30
103
America
cPanel Access Level
Root Administrator
Hi @Rakaris Bakaris,

Sorry to hear you are having issues with composer. I've reached out to our developers this morning and an internal case(EA-7118) has been opened for updating composer. I can't say when it may make it into the product but has been flagged as a high priority issue. You may look to the EA4 changelogs below for the case number:
EasyApache 4 Change Log - EasyApache 4 - cPanel Documentation

Thanks,
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
721
13
243
Quick update: cpanel-php-composer will be v1.6.2 in v72 soon.

Since its not an EA4 RPM it won't be noted in those change logs. Eventually we plan to have an ea-php-composer RPM for EA4 that will mean all versions of cPanel will get the latest.

Hope that helps!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Any news on this topic?
Hello,

There's no specific time frame to offer at this time. Generally, it doesn't happen before the previous version is published to the RELEASE build tier. You can read more about the product versions and release process at:

Product Versions and the Release Process - cPanel Knowledge Base - cPanel Documentation

You may also want to subscribe to our Edge Users mailing list. We send out email updates when new EDGE versions are published:

EDGE-Users Info Page

Thank you.
 

sneader

Well-Known Member
Aug 21, 2003
1,191
60
178
La Crosse, WI
cPanel Access Level
Root Administrator
Just confirming... there is no way for us to update our version of Composer (which is 1.1.1 - 2 year old!!) until v72 arrives?

- Scott
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Just confirming... there is no way for us to update our version of Composer (which is 1.1.1 - 2 year old!!) until v72 arrives?

- Scott
@Rakaris Bakaris, @sneader

Good news! We were able to get the updated version of Composer included with cPanel & WHM version 70. Here's the corresponding entry in the 70 Change Log:

Fixed case CPANEL-17988: Update cpanel-php-composer to 1.6.2-1.cp1158.

The publication of cPanel & WHM 70 to the Release build tier is tentatively planned for the middle of May 2018. Check out today's blog post for more details about some recent improvements included as part of version 70:

The new and improved cPanel & WHM Version 70 | cPanel Blog

Thank you.
 
Last edited:
  • Like
Reactions: sneader