Questions tagged [php8]
The php8 tag has no usage guidance.
30
questions
1
vote
1
answer
1k
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
171
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
1
answer
1k
views
I'm getting this error: Class "Zend_Filter_LocalizedToNormalized" not found
Not sure if it has to do with php 8.2 specifically or just php 8. My exception log is saying that it's not found here in this file but below is the code from line(s) 190 - 197. Checkout/Controller/...
0
votes
1
answer
71
views
Frontend PHP error after 2.4.5 to 2.4.5-p1
Have a site on 2.4.5, upgraded relatively recently. Upgraded to 2.4.5-1 this morning and on the front end it's now saying "Magento supports PHP 7.4.0 or later. Please read Magento System ...
0
votes
1
answer
374
views
Error in Magento 2.4.6, Call to a member function create() on null
During the process of the update, when i run the query for create a customerCart i have the following error:
Query:
{
customerCart{
id
}
}
[2023-03-22T14:37:58.926211+00:00] report.ERROR: ...
0
votes
2
answers
210
views
Magento upgrade from 2.4.2-p1 to 2.4.5-p1 problems
I upgraded my magento store from 2.4.2-p1 to 2.4.5-p1 and changed php version from 7.4 to 8.1 and I ran "composer update" successfully, then upgrade,compile and deploy static content.
Now i ...
0
votes
3
answers
3k
views
Adobe commerce cloud upgrade to 2.4.6 gives me a error
Recently I have upgraded my adobe commerce from 2.4.4. to 2.4.6. I am using PHP 8.1. After upgrading my forntend throws a exception error.
[2023-03-16T06:03:15.101913+00:00] report.CRITICAL: TypeError:...
0
votes
1
answer
67
views
No CSS after upgrading to 2.4.5-p1
I upgraded from 2.4.4-p2 to 2.4.5-p1 and now the frontend and backend have no CSS and images.
With the upgrade I also changed from PHP 7.4 to 8.1.
Any idea what the problem causes?
0
votes
0
answers
125
views
Magento 2.3.5-p1 To 2.4.4 updates
I've been painstakingly trying to update our magento installation from 2.3.5 running on php 7.4, to 2.4.4 running on php 8.1. Ive managed to solve most weird dependancy requirements to a solvable set ...
0
votes
1
answer
196
views
Error after checkout in Magento 2.4.5 after switching to PHP 8.1 "Something went wrong with your reuqest"
we have updated Magento from 2.4.4 to Magento 2.4.5 on our staging instance.
Now after switching to PHP 8.1 during checkout we get the error message "Something went wrong with your request".
...
1
vote
0
answers
169
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
0
answers
238
views
Error After Magento upgrade to 2.4.5-p1
Im getting following error after upgrade to magento2.4.5-p1, while creating new customer account in frontend
Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\...
0
votes
2
answers
278
views
Magento 245 SoapClient Class Removed From PHP 8.0
Magento241 is working with PHP7.4 and 7.4 have SoapClient and i have custom api call that uses Soapclient.
i just upgrade to magento245 and php 8.0 and Soapclient stop working.
Any one have idea ? any ...
0
votes
2
answers
3k
views
Deprecated Functionality: preg_replace(): Passing null to parameter
I have an issue;
1 exception(s): Exception #0 (Exception): Deprecated Functionality:
preg_replace(): Passing null to parameter #3 ($subject) of type
array|string is deprecated in
/var/www/html/vendor/...
1
vote
1
answer
3k
views
Deprecated Functional error on Magento 2.4.5
I'm getting following error while compiling magento 2.4.5 which is newly upgraded from Magento 2.4.3
Deprecated Functionality: Zend_Http_UserAgent implements the Serializable interface, which is ...
0
votes
3
answers
1k
views
Magento 2.4 syntax error, unexpected token "readonly", expecting identifier#0
We are using Magento 2.4.5-p1 and php 8.1 version, upgrade command is working fine but when we try to run the di-compile command getting an error of
Repositories code generation... 1/9 [===>--------...
0
votes
2
answers
3k
views
Deprecated Functionality: explode(): Passing null to parameter #2 ($string)
I have an issue ; Deprecated Functionality: explode(): Passing null to parameter #2 ($string). Can you please help?
public function getEnabled()
{
return $this->_dataHelper->getEnabled();
}...
1
vote
2
answers
32
views
Folder permission
I installed magento2 with LEMP (nginx + php8.1-fpm)
magento root: /var/www/html/
I am trying to add a seperate folder and execute a phpfile inside this folder in magento root:
/var/www/html/...
0
votes
1
answer
240
views
Magento 2 while upgrading an error of requires facebook/php-business-sdk but these conflict
We are using Magento 2
We are able to install Facebook Business SDK installation via composer but when we are trying to install facebook-for-magento2(https://marketplace.magento.com/facebook-facebook-...
0
votes
1
answer
254
views
Magento 2.4.5 unable to run any command because of error
When I try to execute any magento command it gives me the following error:
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Interception\ConfigLoaderInterface in /home/...
0
votes
2
answers
555
views
upgrading to magento from 2.4.3 to 2.4.4 with php 8.1
I am upgrading Magento CE from 2.4.3-p1 to 2.4.4-p1 with php 8.1
but I got this problem facebook/graph-sdk does not support php 8.1 and it is PHP package not Magento 2 Module,
facebook/graph-sdk 5.6....
3
votes
3
answers
8k
views
strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
I am getting error with Magento 2.4.4 & 2.4.5
Here is my line of code
<?php echo strpos($pos, $viewMode . '-primary') ? $position : ''; ?>>
0
votes
2
answers
2k
views
Magento 2.4.4 with php 8.1 issue
I have version 8.1.3 of PHP and I am getting the following error message on Magento 2.4.4:
Exception #0 (Exception): Deprecated Functionality: strtotime(): Passing null to parameter #1 ($datetime) ...
6
votes
2
answers
3k
views
Magento 2 - Upgrade From 2.4.2 to 2.4.4 Class "Vertex\Tax\Setup\Schema\Triggers\MigrateVertexInvoiceSent" does not exist
I have tried to upgrade Magento From 2.4.2 to 2.4.4 with but getting below error while running any magento commands.
Service with name "Magento\Setup\Console\Command\DbStatusCommand"
could ...
0
votes
1
answer
225
views
Admin Login not working
After upgrading Magento to 2.4.4 with PHP 8.1 and resolving most of the errors. I can't login to the admin panel.
After submitting the credentials it redirects me back to login, while I can see the ...
0
votes
2
answers
78
views
How to see result data values and change it using after method OR anyother best way for this?
I want to change the result of \Magento\Checkout\Controller\Cart\CouponPost => Execute method. can anyone solve my query??
0
votes
0
answers
193
views
ftp_connect function not working to connect with localhost in MAC
I have tried so many things but ftp_connect and ftp_ssl_connect are not working in my development instance.
I am using MAC and PHP8.1, I am trying to connect to localhost with the below simple script:
...
0
votes
0
answers
88
views
Is there any default php method to uses the deprecated end() function php8.1?
end() function is deprecated in php8.1 and have tried to find the default PHP method but seems for an end() method replacement there is no same working method anywhere.
https://www.php.net/manual/en/...
6
votes
1
answer
5k
views
Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated in
When running Magento 2.4.4 with PHP 8.1, if I use a block object's getTemplateFile method AND the block had no template set, I end up with an error that looks like this
1 exception(s):
Exception #0 (...
2
votes
3
answers
1k
views
Magento upgrade 2.4.4, phpunit issue
I am getting below issue while upgrading to Magento version 2.4.4 on php 8
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- phpunit/phpunit 6.5.14 requires php ^...