GithubHelp home page GithubHelp logo

vendic / eavcleaner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magento-hackathon/eavcleaner

19.0 19.0 7.0 83 KB

Magento 2 - Clean up your Magento database by removing orphaned, unused and wrongly added attribute, attribute values and settings

PHP 100.00%
magento2 magento2-extension

eavcleaner's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

eavcleaner's Issues

The helper "table" is not defined.

In magento 2.3.1 I get the "The helper "table" is not defined." error when using the command eav:media:remove-unused

The stated command removes ALL the images, not only the unused. :-(

Thanks

Ignored cleaning cache folder

Hi,

Is there a reason to skip the cache folder while removing missing images?

// Cached path guard
if ($this->isInCachePath($file)) {
  continue;
}

Thanks to this module we've managed to reduce the size of the media folder from 160GB to 149GB. It's a good start but I believe the missing images will still occur in the cache folder after a catalog:image:resize.

We used a bash script to remove the images from the cache folder without noticeable result on the storefront. (lost the result of the reduced size).

#!/bin/bash

echo "Start!"
while read image; do
  echo "found $image in .txt"
  for file in $(find pub/media/catalog/product/cache/ -path "*$image");
    do
      rm $file;
      echo "removed ${file} from filesystem";
    done;
done <removed_images.txt
echo "Done!"

Would love to hear a response if you would consider implementing this feature or not.

There are no commands defined in the "eav:media" namespace

Hi there,

When I try to run php bin/magento eav:media:remove-unused
I get the error There are no commands defined in the "eav:media" namespace.

Could you help? I know the script works as I have run it in the past but I needed to restore to a previous backup and now I can't get it to run.

Best regards,
Dave

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.