Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer install error #319

Open
mssoylu opened this issue Oct 3, 2017 · 3 comments
Open

composer install error #319

mssoylu opened this issue Oct 3, 2017 · 3 comments

Comments

@mssoylu
Copy link

mssoylu commented Oct 3, 2017

When I start composer install I see errors in terminal here are


[RuntimeException]                                                                                                                                           
  An error occurred when executing the "'ckeditor:install'" command:                                                                                           
  ----------------------                                                                                                                                       
  | CKEditor Installer |                                                                                                                                       
  ----------------------                                                                                                                                       
   // Downloading CKEditor ZIP archive from "https://github.com/ckeditor/ckeditor-releases/archive/full/latest.zip"                                            
   // Extracting CKEditor ZIP archive to "/var/www/basefony/root/vendor/egeloen/ckeditor-bundle/Resources/public"                                              
fony\Component\Debug\Exception\ContextErrorException: Notice: Use of undefined constant PHPEXCEL_ROOT   
  - assumed 'PHPEXCEL_ROOT' in /var/www/basefony/root/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/ZipArchive.php:31                                      
  Stack trace:                                                                                                                                                 
  #0 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(188): require_once('/var/  
  www/basefo...')                                                                                                                                              
  #1 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(143): Symfony\Component\D  
  ebug\FatalErrorHandler\ClassNotFoundFatalErrorHandler->convertFileToClass('/var/www/basefo...', '/var/www/basefo...', 'PHPExcel')                            
  #2 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(111): Symfony\Component\D  
  ebug\FatalErrorHandler\ClassNotFoundFatalErrorHandler->findClassInPath('/var/www/basefo...', 'ZipArchive', 'PHPExcel')                                       
  #3 /var/www/basefony/root/vendor/symfony/symfon in /var/www/basefony/root/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/ZipArchive.php on line 31        
                                                                                                                                                               
    [Symfony\Component\Debug\Exception\FatalErrorException]                                                                                                    
    Error: Uncaught Symfony\Component\Debug\Exception\ContextErrorException: No                                                                                
    tice: Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' in                                                                                 
    /var/www/basefony/root/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Zi                                                                                
    pArchive.php:31                                                                                                                                            
    Stack trace:                                                                                                                                               
    #0 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debu                                                                                
    g/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(188): require_once('                                                                                
    /var/www/basefo...')                                                                                                                                       
    #1 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debu                                                                                
    g/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(143): Symfony\Compon                                                                                
    ent\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler->convertFileToCl                                                                                
    ass('/var/www/basefo...', '/var/www/basefo...', 'PHPExcel')                                                                                                
    #2 /var/www/basefony/root/vendor/symfony/symfony/src/Symfony/Component/Debu                                                                                
    g/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php(111): Symfony\Compon                                                                                
    ent\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler->findClassInPath                                                                                
    ('/var/www/basefo...', 'ZipArchive', 'PHPExcel')                                                                                                           
    #3 /var/www/basefony/root/vendor/symfony/symfon                                                                                                            
                                                                                                                                                               
  ckeditor:install [--release [RELEASE]] [--tag [TAG]] [--clear [CLEAR]] [--exclude [EXCLUDE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version]   
  [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<path>]                                                               
                                                                                                                                                               


@egeloen
Copy link
Owner

egeloen commented Oct 6, 2017

Hum, weird, the error is related to PHPEXCEL_ROOT constant which is not used in this project, so, I assume the error should be related to your code.

@egeloen
Copy link
Owner

egeloen commented Oct 9, 2017

I see that the autoloader is trying to load a class named ZipArchive which is used by the CKEditor installer to decompress the zip archive but instead of loading the class from the zip component, it loads it from php excel libray.

Do you have the zip component installed: http://php.net/manual/en/book.zip.php ? Basically, I have not added it to the composer require section since it is not mandatory to have it if you prefer install CKEditor manually by downloading it by yourself instead of using the built-in installer.

@peterrehm
Copy link

Actually I had a ssl error, the upgrade to the latest PHP 7.1. version (liip php osx) fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants