macopedia / typo3-azurestorage

TYPO3 FAL driver extension for Microsoft Azure Blob Storage
MIT License
4 stars 5 forks source link

BUG?: Class 'MicrosoftAzure\Storage\Common\ServicesBuilder' not found #13

Closed in-session closed 5 years ago

in-session commented 6 years ago

Hallo, ich wollte deine EXT mal testen, nach dem einrichten des Ordners erhalten ich aber einen Fehler. Ich habe mal ein paar Screenshorts gemacht mit der Fehlerbeschreibung, sowie die Daten die eingegeben wurden. Grüße

Typo3 8.7.9 PHP Version 7.1.9

ashampoo_snap_2018 01 27_11h15m00s_014_ ashampoo_snap_2018 01 27_11h09m04s_012_ ashampoo_snap_2018 01 27_11h08m32s_011_chrome legacy window

jooler commented 6 years ago

I meet this also, but when I use "composer install ..." it works in the typo3 backend ->extensions -> get extensions -> install AzureStorage I see "'MicrosoftAzure\Storage\Common\ServicesBuilder' not found "

but it's composer mode and lose some modules, so please , Can you fix it?

benjaminhirsch commented 6 years ago

Hello and sorry for the late reply @in-session . I will investigate this. :-)

jooler commented 6 years ago

very thanks for your work!

benjaminhirsch commented 5 years ago

I've released a new version of the extension today. This new version uses the latest version of the Azure Storage Blob libray and related to this, some minor code changes. Unfortunatley I'm still unable to reproduce the mentioned behavior.

Could you please do me a favor and try the new version? Who knows, maybe the problem is fixed due to the new library 😄

jooler commented 5 years ago

thank you very much,I will try it now.

jooler commented 5 years ago

its not work , please see this 2018-10-23 2 42 12

jooler commented 5 years ago

but the old version is ok if I make something,

  1. install extension;

2.copy azure storage sdk to src/vendor, like this 2018-10-23 2 44 45

3.edit this file /src/vendor/composer/autoload_psr4.php add 2 line 'MicrosoftAzure\\Storage\\' => array($vendorDir . '/microsoft/azure-storage/src'), 'B3N\\AzureStorage\\TYPO3\\' => array($baseDir . '/typo3conf/ext/azurestorage/Classes'),

2018-10-23 2 48 09

4.edit file /src/vendor/composer/autoload_static.php add this

2018-10-23 2 50 15

until now , it works.

benjaminhirsch commented 5 years ago

To be honest, I'm not quite sure what's going on here. 😕 Actually you don't have to bother with those kind of things, because composer does all the magic. All you have to do is composer require b3n/azurestorage and that's it. If you have already installed the old version, simply change the version number to ^0.5.1 in your composer.json and the run composer update All neccessary librarys will automatically be installed.

I've tested it here again with a completley new installation, everything is working as expected. Hmmm

jooler commented 5 years ago

OK let me try again.

jooler commented 5 years ago

I'm very sorry that my English is not good enough. I mean, after installing TYPO3, download the distribution version.

Download the installation files from get.typo3.org and install it . Download https://github.com/benjaminhirsch/typo3-azurestorage/archive/0.5.2.zip and into the Typo3 backend, install it , and these error messages will appear

But with the composer command, everything is perfect.

benjaminhirsch commented 5 years ago

Ah, now I understand. Unfortunatley this package isn't intended to work without composer. If you need for any reason to install it manually, you have to take care of installing the dependencies and autoloading by yourself.

jooler commented 5 years ago

Okay, thank you for your work. This extension is really useful to me. I'm very happy to find a way to get it to work. Thank you again.