Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:07:00+00:00 2026-06-12T22:07:00+00:00

Running php composer.phar with the latest version gives me: PHP Fatal error: Cannot redeclare

  • 0

Running php composer.phar with the latest version gives me:

PHP Fatal error:  Cannot redeclare class Symfony\Component\Console\Helper\Helper in phar:/composer.phar/vendor/symfony/console/Symfony/Component/Console/Helper/Helper.php on line 19

What’s up? Works fine locally, but on a Linux server.

This happens as soon as I try to run any commands or just the file directly. I can’t self-update or anything. I’ve tried redownloading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:07:03+00:00Added an answer on June 12, 2026 at 10:07 pm

    Most likely you have apc.enable_cli set to 1, you can check with php -i | grep apc.

    Another way to check everything is fine to run composer is running the installer in check-only mode:

    curl -s https://getcomposer.org/installer | php -- --check
    

    APC completely breaks down with PHARs (at least in CLI mode), and it does not provide any caching anyway in CLI since every process is independent, so disabling it makes sense, the flag is just there for debugging purposes AFAIK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To install vendors for Symfony 2.1.0 I'm running php composer.phar install but it gives
when running php bin/vendors install i get the error: Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand' not
I am running PHP 5.3.6 and the latest version of PHPUnit from Github. When
I installed the geocoder-php composer package using php composer.phar install . I'm running on
Running php app/console doctrine:migrations:diff generates a new migration class as required to translate the
Running PHP under IIS on my Win XP Pro system. I cannot debug my
I'm running PHP version 5.2.11 When I run the function below: function get_dirs($path =
Running PHP v5.3.10 using the simplexls class v0.4 and after loading a spreadsheet the
HI all Running PHP Version 5.2.11 and we've been given a site which we're
I'm porting a Symfony 1.2 project to Symfony 2.x. I'm currently running the latest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.