Solved: “Expecting a string, got NULL”,”1″:…” in Magento 2
Is your Magento 2 admin URL not working after migration? Are you facing the “Expecting a string, got NULL”,”1″:”#1 Zend\Uri\Uri->parse(NULL)” error while accessing it? Read this blog post to solve it.
Since the release of Magento 2 in 2015, Magento store owners are migrating their stores to it for better performance, security, and flexibility. The latter one is indeed a more powerful and robust platform as compared to the initial version, and it is truly worth the Magento migration.
There can be instances when the store owners may face some common errors due to misconfiguration. One such common issue faced by the store owners after migration is unable to access the admin panel with a custom admin URL.
The admin may face the following error while accessing the admin panel:
“Expecting a string, got NULL”,”1″:”#1 Zend\Uri\Uri->parse(NULL)” in Magento 2
It can be easily solved by turning off the custom URL in Magento 2 admin. Here is the complete method to solve the custom URL admin panel error in Magento 2 after migration.
Method to Solve: “Expecting a string, got NULL”,”1″:”#1 Zend\Uri\Uri->parse(NULL)” in Magento 2
In case you are unable to access your Magento 2 admin panel after migration due to custom URL issues, you can follow the below-mentioned steps to solve the issue:
Step 1: Log into Phpmyadmin with your Magento 2 credentials.
Step 2: Look for the core_config_data table in the Magento database and open it.
Step 3: Search for the admin/url/use_custom in the table and set its value to “0” if it’s set to “1”.
Step 4: Flush Magento 2 cache using the following command:
php bin/magento cache:flush
That’s it! Now, you’ll be successfully able to access your Magento 2 admin panel and solve the “Expecting a string, got NULL”,”1″:”#1 Zend\Uri\Uri->parse(NULL)” error in Magento 2.
In case you have any queries or doubts regarding the provided solution, feel free to comment.I would be happy to help you. 😃
Also, do not forget to share this solution with your Magento friends via social media because ‘Sharing is caring’. 🤗
Thanks for reading! 🍀