EasyCorp / EasyAdminBundle

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
MIT License
4.06k stars 1.02k forks source link

Installation problems #1257

Closed diriy closed 8 years ago

diriy commented 8 years ago

I've tried to install the bundle via composer. It returns with the following error:

Installation failed, reverting ./composer.json to its original content.

[ErrorException]   ZipArchive::extractTo(.../vendor/composer/509a2657/javiereguiluz-EasyAdminBundle-e67dd3c\Tests\Configuration\fixtures\templates\overridden_by_application\Resources\views\easy_admin\Product/field_string.html.twig): failed to open stream: Invalid argument

How can I install it? I use Symfony 3.

javiereguiluz commented 8 years ago

I can't reproduce this error. Please follow the installation instructions as shown in https://github.com/javiereguiluz/EasyAdminBundle#installation

If you still have problems, please tell me your PHP version and your operating system. Thanks!

diriy commented 8 years ago

I followed it. So, I've got PHP 5.6 & Windows 7 x64

diriy commented 8 years ago

Composer created this file in the appropriate directory and then crashed. I attached this file

diriy commented 8 years ago

http://www.mediafire.com/download/xxi7ead9cssxi9n/da08f50febad3abbb040881f3c2f1768

diriy commented 8 years ago

but it shows something strange: dtrange

diriy commented 8 years ago

I've cloned the bundle from GitHub and pasted it to /vendor as it should be after installation with composer. I have another error: Attempted to load class "EasyAdminBundle" from namespace "JavierEguiluz\Bundle\EasyAdminBundle". Did you forget a "use" statement for another namespace? Some problems with mappings, as far as I understood. But what should I do in order to let the bundle work properly?

javiereguiluz commented 8 years ago

@diriy this error is really strange. It looks like a problem related to Composer. Have you installed other Symfony bundles before with this same Composer version? Thanks.

diriy commented 8 years ago

yes, I did it, but they work correctly, without any errors. I installed HappyRGoogleApiBundle, DoctrineMigrationsBundle, DoctrineCacheBundle and KnpMarkdownBundle. They work great. The other strange thing is following: I installed it at another machine with another bundles (FOSUserBundle and VichUploaderBundle) for another purposes but had no errors with composer or the whole bundle. I can connect by TeamViewer or Skype and show you my project if you can help. I don't really know, how to solve this trouble...

diriy commented 8 years ago

when I tried to install bundle to fresh symfony3 installation, I got the following: composer require javiereguiluz/easyadmin-bundle Using version ^1.15 for javiereguiluz/easyadmin-bundle ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files and no folder in /vendor/ path...

diriy commented 8 years ago

sorry - my mistake. Tried to do "$composer requre..." at the inappropriate path.. bit tired cause struggled with this bundle during whole day....=)) it installed properly on fresh version...

diriy commented 8 years ago

Restored to previously worked version. Tried to install it again an got the first error once again. I have the strange feeling that I will hate composer during all my future life after this crazy day=))))))How can I install bundle properly without composer?...

diriy commented 8 years ago

I've found some issue which may be related: https://github.com/composer/composer/issues/604 I think, it's an answer..

Updated:

Yes, it works fine! So the solution was to move the project to the above directory because the length of path was too big. So, thanks a million for your feedback and your help!

javiereguiluz commented 8 years ago

@diriy wow! That was a tricky issue! Thanks for providing the details in case someone else faces the same problem. Closing it as "fixed" then.