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

Admin & Server side config not writing to MySQL database/ Throwing errors #45

Open
LATAEVIA opened this issue Nov 6, 2023 · 0 comments

Comments

@LATAEVIA
Copy link

LATAEVIA commented Nov 6, 2023

When configured from admin side and I attempt to add an asset:

Screenshot 2023-11-06 at 8 08 46 AM Screenshot 2023-11-06 at 8 35 00 AM

With likely unrelated error logging at the top of the module config page:
Warning: Array to string conversion in /var/www/html/forked-omeks-s/vendor/laminas/laminas-form/src/Element.php on line 56

And this error specifically when I access assets page:

Omeka S encountered an error Laminas\ServiceManager\Exception\ServiceNotCreatedException Service with name "AnyCloud\File\Store\Aws" could not be created. Reason: Credentials must be an instance of 'Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false.

Details:

InvalidArgumentException: Credentials must be an instance of 'Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false. in /var/www/html/forked-omeks-s/modules/AnyCloud/vendor/aws/aws-sdk-php/src/ClientResolver.php:604 Stack trace: #0 /var/www/html/forked-omeks-s/modules/AnyCloud/vendor/aws/aws-sdk-php/src/ClientResolver.php(379): Aws\ClientResolver::_apply_credentials() #1 /var/www/html/forked-omeks-s/modules/AnyCloud/vendor/aws/aws-sdk-php/src/AwsClient.php(222): Aws\ClientResolver->resolve() #2 /var/www/html/forked-omeks-s/modules/AnyCloud/vendor/aws/aws-sdk-php/src/S3/S3Client.php(358): Aws\AwsClient->__construct() #3 /var/www/html/forked-omeks-s/modules/AnyCloud/src/Service/File/Store/AbstractAwsS3V3Factory.php(22): Aws\S3\S3Client->__construct() #4 /var/www/html/forked-omeks-s/modules/AnyCloud/src/Service/File/Store/AbstractFlysystemFactory.php(49): AnyCloud\Service\File\Store\AbstractAwsS3V3Factory->getFilesystemAdapter() #5 /var/www/html/forked-omeks-s/modules/AnyCloud/src/Service/File/Store/AbstractFlysystemFactory.php(21): AnyCloud\Service\File\Store\AbstractFlysystemFactory->getStore() #6 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(615): AnyCloud\Service\File\Store\AbstractFlysystemFactory->__invoke() #7 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate() #8 /var/www/html/forked-omeks-s/modules/AnyCloud/src/Service/File/Store/AnyCloudFactory.php(35): Laminas\ServiceManager\ServiceManager->get() #9 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(615): AnyCloud\Service\File\Store\AnyCloudFactory->__invoke() #10 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate() #11 /var/www/html/forked-omeks-s/application/src/Api/Representation/AbstractResourceRepresentation.php(262): Laminas\ServiceManager\ServiceManager->get() #12 /var/www/html/forked-omeks-s/application/src/Api/Representation/AssetRepresentation.php(55): Omeka\Api\Representation\AbstractResourceRepresentation->getFileUrl() #13 /var/www/html/forked-omeks-s/application/src/Api/Representation/AbstractRepresentation.php(122): Omeka\Api\Representation\AssetRepresentation->assetUrl() #14 /var/www/html/forked-omeks-s/application/src/View/Helper/Thumbnail.php(21): Omeka\Api\Representation\AbstractRepresentation->thumbnailDisplayUrl() #15 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Omeka\View\Helper\Thumbnail->__invoke() #16 /var/www/html/forked-omeks-s/application/view/omeka/admin/asset/browse.phtml(50): Laminas\View\Renderer\PhpRenderer->__call() #17 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('...') #18 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render() #19 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render() #20 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren() #21 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render() #22 /var/www/html/forked-omeks-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render() #23 /var/www/html/forked-omeks-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners() #24 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent() #25 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest() #26 /var/www/html/forked-omeks-s/index.php(21): Laminas\Mvc\Application->run() #27 {main}

Next Laminas\ServiceManager\Exception\ServiceNotCreatedException: Service with name "AnyCloud\File\Store\Aws" could not be created. Reason: Credentials must be an instance of 'Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false. in /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:622 Stack trace: #0 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate() #1 /var/www/html/forked-omeks-s/modules/AnyCloud/src/Service/File/Store/AnyCloudFactory.php(35): Laminas\ServiceManager\ServiceManager->get() #2 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(615): AnyCloud\Service\File\Store\AnyCloudFactory->__invoke() #3 /var/www/html/forked-omeks-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate() #4 /var/www/html/forked-omeks-s/application/src/Api/Representation/AbstractResourceRepresentation.php(262): Laminas\ServiceManager\ServiceManager->get() #5 /var/www/html/forked-omeks-s/application/src/Api/Representation/AssetRepresentation.php(55): Omeka\Api\Representation\AbstractResourceRepresentation->getFileUrl() #6 /var/www/html/forked-omeks-s/application/src/Api/Representation/AbstractRepresentation.php(122): Omeka\Api\Representation\AssetRepresentation->assetUrl() #7 /var/www/html/forked-omeks-s/application/src/View/Helper/Thumbnail.php(21): Omeka\Api\Representation\AbstractRepresentation->thumbnailDisplayUrl() #8 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Omeka\View\Helper\Thumbnail->__invoke() #9 /var/www/html/forked-omeks-s/application/view/omeka/admin/asset/browse.phtml(50): Laminas\View\Renderer\PhpRenderer->__call() #10 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('...') #11 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render() #12 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render() #13 /var/www/html/forked-omeks-s/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren() #14 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render() #15 /var/www/html/forked-omeks-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render() #16 /var/www/html/forked-omeks-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners() #17 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent() #18 /var/www/html/forked-omeks-s/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest() #19 /var/www/html/forked-omeks-s/index.php(21): Laminas\Mvc\Application->run() #20 {main}


When configured serve- side and I attempt to add an asset:

Screenshot 2023-11-06 at 8 21 09 AM
Screenshot 2023-11-06 at 8 24 25 AM
Screenshot 2023-11-06 at 8 35 00 AM

Anything previously uploaded is returning a 400 and new uploads are returning 500.

In case it helps, V3.0.1 is working with the Admin config.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS
  • Chrome

Additional context
Add any other context about the problem here.

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

1 participant