1up-lab / OneupUploaderBundle

This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3 Uploader, Uploadify, FancyUpload, MooUpload, Plupload or Dropzone. Features include chunked uploads, orphanages, Gaufrette and Flysystem support.
MIT License
604 stars 177 forks source link

Fatal Error on cache:clear #363

Closed lucop1 closed 4 years ago

lucop1 commented 5 years ago

Symfony version 3.4.15 OneupUploaderBundle version 2.1.4

When I run any composer command on DEV environment: composer update composer require xxx/xxxxx

It throws an error and revert the composer file:

[RuntimeException]                                                                                                                                                                                  
  An error occurred when executing the "'cache:clear --no-warmup'" command:                                                                                                                           

  PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Return value of Oneup\UploaderBundle\DependencyInjection\Compiler\ControllerPass::process() must be   
  an instance of Oneup\UploaderBundle\DependencyInjection\Compiler\void, none returned in /var/xxx/xxxx/xxxxxx/httpdocs/xxxxxxx/vendor/oneup/uploader-bundle/DependencyInjection/Co  
  mpiler/ControllerPass.php:40                                                                                                                                                                        
  Stack trace:                                                                                                                                                                                        
  #0 /var/xxx/xxxx/xxxxxx/httpdocs/xxxxxxx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(141): Oneup\UploaderBundle\DependencyInjection\Co  
  mpiler\ControllerPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))                                                                                                      
  #1 /var/xxx/xxxx/xxxxxx/httpdocs/xxxxxxx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(788): Symfony\Component\DependencyInjection\Compil  
  er\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))                                                                                                                
  #2 /var/www/vhosts/devdash.talksmedia.it/htt in /var/xxx/xxxx/xxxxxx/httpdocs/xxxxxxx/vendor/oneup/uploader-bundle/DependencyInjection/Compiler/ControllerPass.php on line 40

This is my composer.json

"require": {
        "php": ">=7.1",
        "apy/datagrid-bundle": "^3.1",
        "asprega/breadcrumb-bundle": "^0.2.0",
        "aws/aws-sdk-php": "^3.112",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/orm": "^2.5",
        "friendsofsymfony/jsrouting-bundle": "^2.2",
        "friendsofsymfony/user-bundle": "~2.0",
        "gaufrette/aws-s3-adapter": "^0.4.0",
        "googleads/googleads-php-lib": "*",
        "incenteev/composer-parameter-handler": "^2.0",
        "knplabs/knp-gaufrette-bundle": "^0.6.1",
        "leafo/scssphp": "^0.8.4",
        "oneup/uploader-bundle": "^2.1",
        "patchwork/jsqueeze": "^2.0",
        "sensio/distribution-bundle": "^5.0.19",
        "sensio/framework-extra-bundle": "^5.0.0",
        "sg/datatablesbundle": "^1.0",
        "stof/doctrine-extensions-bundle": "^1.3",
        "symfony/assetic-bundle": "^2.8",
        "symfony/monolog-bundle": "^3.1.0",
        "symfony/polyfill-apcu": "^1.0",
        "symfony/swiftmailer-bundle": "^2.6.4",
        "symfony/symfony": "3.4.*",
        "symfony/templating": "^3.4",
        "twig/twig": "^1.0||^2.0"
    }
Hanmac commented 4 years ago

what is your php version? your composer says ">=7.1"

the problem of the void return type is that it requires php 7.1 which will stop Security support at 1 Dec 2019

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.