Questions tagged [deprecated]
The deprecated tag has no summary.
41 questions
0 votes
2 answers
2k views
PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in
PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in "PREPAID_TAXABLE_AMOUNT"=> (($item->getDiscountAmount()) ? abs( round($item->...
1 vote
1 answer
314 views
Can anyone suggest how to remove deprecated registry class and what are the alternative methods?
I'm performing an upgrade to Magento 2.4 and the registry class has been deprecated but it's being used in some custom modules, please see the code below: <?php declare(strict_types=1); namespace ...
3 votes
1 answer
7k views
Deprecated Functionality: Creation of dynamic property $_coreRegistry is deprecated
I am having this issue with magento 2.4.6 custom module and php8.2 This code: public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\...
1 vote
2 answers
941 views
Deprecated Functionality: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated
I am using magento 2.4.6 One of my modules is adding meta tags in catalog. Not my code case 'catalog_product_view': $currentProduct = $this->_registry->registry('...
0 votes
2 answers
4k views
Magento upgrade error 2.4.5 in php 8.1 json_decode(): Passing null to parameter #1 ($json) of type string is deprecated
I am facing after an issue after upgrading version magneto 2.4.2 to 2.4.5 When I run this command I got error json_decode(): Passing null to parameter #1 ($json) of type string is deprecated app/code/...
1 vote
0 answers
296 views
Cron Job consumers_runner has an error: Deprecated Functionality: trim(): Passing null to parameter #1 ($string) of type string is deprecated
I have a store in Magento Cloud. There is particular job which is not working properly whenever CRON runs. Please check the error below, Cron Job consumers_runner has an error: Deprecated ...
1 vote
1 answer
172 views
why session_id column from customer_visitor table got deprecated in Magento 2.4 latest versions?
In Magento 2.4.5 installed in my local server i noticed that session_id column from customer_visitor table got deprecated but i can't seem to find any details of documentation for why it got ...
2 votes
3 answers
16k views
How to fix str_replce Deprecated Functionality error in magento 2.4.4
Can anyone tell me how to resolve the below error. "Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated" I am using magento 2....
1 vote
1 answer
1k views
escapeUrl is deprecated?
Can someone help & explain to me what does escapeUrl is deprecated mean? What I need to do for the changes? thanks <?= /* @escapeNotVerified */ $item->getQtyOrdered() ?> x <a href=&...
0 votes
2 answers
878 views
Method setFrom is deprecated
Method setFrom is deprecated Declared in Magento\Framework\Mail\Template\TransportBuilder Is there any alternative?
0 votes
1 answer
378 views
Registry & Services
Can Any body explain me Why Magneto used registry and now why we use Services for what purposes instead of Registry.
0 votes
1 answer
205 views
How can i overwrite file from vendor so that setup:di:compile won't read it
I have a 3rd party module that is giving some deprecation issues. Is there any way to replace the class that is having problems in my own module in app/code without moving the whole module from vendor?...
2 votes
1 answer
2k views
Deprecated Functionality: Zend_Http_UserAgent implements the Serializable interface in magento2.4.4
I am facing "Deprecated Functionality: Zend_Http_UserAgent implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize()" Error in magento2.4.4 All ...
2 votes
3 answers
14k 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 ...
1 vote
0 answers
277 views
Deprecated functions in Magento 2
There are lots of functions in magento 2 which are deprecated like Registry. Can anyone give me list of such functions or classes.