Code Monkey home page Code Monkey logo

googlecloudstorage's People

Contributors

davidwindell avatar nickolasburr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

googlecloudstorage's Issues

Skip uploading images to paths containing tmp/

The module should skip (or allow via config) files that have tmp/ anywhere in their path (i.e. media/catalog/tmp, media/tmp).

These files aren't generally needed as they are moved into their final destination and then uploaded again.

composer dependencies

Hello, I'm trying to install the module via composer: composer require auroraextensions/googlecloudstorage:* -W
However I get the following list of unsatisfied dependencies exceptions:

./composer.json has been updated
Running composer update auroraextensions/googlecloudstorage --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - auroraextensions/googlecloudstorage 1.2.1 requires google/cloud-core ~1.33.0 -> satisfiable by google/cloud-core[v1.33.0, v1.33.1].
    - auroraextensions/googlecloudstorage[1.0.0, ..., 1.0.1] require magento/framework 102.*.* -> found magento/framework[102.0.0, ..., 102.0.7-p3] but these were not loaded, likely because it conflicts with another require.
    - auroraextensions/googlecloudstorage[1.1.0, ..., 1.2.0] require php ~7.2.0||~7.3.0||~7.4.0 -> your php version (8.2.9) does not satisfy that requirement.
    - google/cloud-core[v1.33.0, ..., v1.37.1] require guzzlehttp/guzzle ^5.3|^6.0 -> found guzzlehttp/guzzle[5.3.0, ..., 5.3.4, 6.0.0, ..., 6.5.8] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires auroraextensions/googlecloudstorage * -> satisfiable by auroraextensions/googlecloudstorage[1.0.0, ..., 1.2.1].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

I'm using magento 2.4.6 on debian 12 with php 8.2.9
Please help

Cannot upload product image

When uploading a product image and pressing Save, no image is uploaded to the product and a placeholder is shown in the admin.

The following errors are in the logs (where product-page.png was the image I tried to upload).

exception.log

[2021-07-09 18:35:47] main.CRITICAL: Cannot resize image "/var/www/pub/media/catalog/product/p/r/product-page.png" - original image not found {"exception":"[object] (Magento\\Framework\\Exception\\NotFoundException(code: 0): Cannot resize image \"/var/www/pub/media/catalog/product/p/r/product-page.png\" - original image not found at /var/www/vendor/magento/module-media-storage/Service/ImageResize.php:163)"} []
[2021-07-09 18:35:51] main.WARNING: Cannot gather stats! Warning!stat(): stat failed for /var/www/pub/media/catalog/product/p/r/product-page.png {"exception":"[object] (Magento\\Framework\\Exception\\FileSystemException(code: 0): Cannot gather stats! Warning!stat(): stat failed for /var/www/pub/media/catalog/product/p/r/product-page.png at /var/www/vendor/magento/framework/Filesystem/Driver/File.php:95)"} []

system.log

[2021-07-09 18:35:43] main.CRITICAL: File "/var/www/pub/media/catalog/product/p/r/product-page.png" cannot be opened Warning!fopen(/var/www/pub/media/catalog/product/p/r/product-page.png): failed to open stream: No such file or directory [] []

The original image is actually only found in /var/www/pub/media/tmp/catalog/product/p/r/product-page.png. Neither appear to have uploaded to GCS. Sync from CLI works fine so the connection is OK. Also tested with the module disabled and uploads to both file system and/or database media storage work fine.

Magento 2.4.2-p1

2.3.3 support

Hi!

Which Magento versions this extension supports? I'm trying to run it on Magento 2.3.3 and I can manage it to same some images on my bucket, as expected, but the only ones that get there are under catalog/product/cache, but not the original ones like catalog/product/m/y/my-product.png.

In a quick investigation I can see that the class Magento\Catalog\Model\Product\Gallery\CreateHandler, that handles the image save/moving for Magento vanilla, never calls the GoogleCloudStorage extension to save it.

Thanks!

Disable module via config

At the moment, there is no way to disable the module via config options so the module can't be completely disabled per environment.

This has led to fatal errors in production (we only use the module on our staging cluster).

Will submit a merge request if I get some time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.