Questions tagged [deprecated]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
58 votes
4 answers
26k views

Deprecated save and load methods in Abstract Model

I see that in the develop branch of the Magento 2 repo the methods load and save from Magento\Framework\Model\AbstractModel class are deprecated. But there are a gazillion classes in the core that ...
Marius's user avatar
  • 198k
8 votes
5 answers
33k views

The each() function is deprecated. Magento 2 , php 7.2

I have been getting this error since I changed to PHP-7.2 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/vedic/vendor/...
Surendra Kumar Ahir's user avatar
2 votes
2 answers
12k views

Magento 2 :- Magento upgrade error 2.4.4 in php 8.1

When i run this command i got error php bin/magento maintenance:enable PHP Deprecated: Return type of phpseclib_mcrypt_filter::filter($in, $out, &$consumed, $closing) should either be ...
Chirag Chikhaliya's user avatar
1 vote
1 answer
4k views

User Deprecated Functionality: Session ID is not used as URL parameter anymore

i get the below error in magento Exception #0 (Exception): User Deprecated Functionality: Session ID is not used as URL parameter anymore. in /var/www/html/magento.loc/vendor/magento/framework/Url.php ...
Mahdi's user avatar
  • 113
32 votes
2 answers
5k views

Magento 2 - Why is Magento\Checkout\Model\Cart deprecated?

Since Magento 2.1, Cart has a @deprecated tag. Nevertheless, it is still used by Magento itself to store products when shopping. Is the deprecation intended, and if so, and what should we use instead?
Patrick van Bergen's user avatar
7 votes
2 answers
3k views

Magento2.2 getCollection from Factory deprecated

I get in my editor (PhPStorm) on getCollection the message that it is deprecated. In my controller i got the function public function __construct( Registry $registry, ...
Johan's user avatar
  • 581
5 votes
2 answers
4k views

getResource is deprecated, what is the alternative?

getResource() is deprecated so my question is what do I need to use instead to be future proof for next updates. I use this function like below in the catalog list.phtml $seedBank = $_product->...
Riccardo's user avatar
  • 382
3 votes
1 answer
1k views

Magento 1 : each() function is deprecated

In Magento 1, I have been getting this error: Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/test/app/code/core/Mage/Eav/Model/...
Ankita Patel's user avatar
2 votes
8 answers
4k views

Magento 2.3 idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated

I have Installed Fresh Magento2.3 php version 7.2.12 . When System try to send any email like order,contact,register customer etc .. . it will through Exception and not sending any email main....
Abdul Kadir's user avatar
0 votes
2 answers
647 views

Method setFrom is deprecated

Method setFrom is deprecated Declared in Magento\Framework\Mail\Template\TransportBuilder Is there any alternative?
Hafiz Arslan's user avatar