Fixing memory limit errors during compilation or upgrade (Magento 2)

You may run out of memory when compiling, upgrading or deploying Magento 2 code. Explicitly increasing PHP’s memory_limit may help. Some examples:

Setting PHP memory_limit to -1 lets PHP use the maximum available memory. In many cases, you should…

Enabling template hints from the CLI (Magento 2)

To enable Magento 2 Template Hints directly from the command line, run the following command in the Magento 2 root directory:

To disable the hints again, run this command:

Clear the Magento 2 cache after either command.

Removing the pager from catalog/seo_sitemap/product and catalog/seo_sitemap/category (Magento 1)

To remove pagination from the Magento 1 SEO sitemap URLs for products (catalog/seo_sitemap/product) and categories (catalog/seo_sitemap/category), showing everything on one page, open your theme’s layout/catalog.xml and remove the following two lines: