{"id":2530,"date":"2024-12-31T20:22:45","date_gmt":"2024-12-31T20:22:45","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/solved-expecting-a-string-got-null1-in-magento-2\/"},"modified":"2025-07-16T14:57:05","modified_gmt":"2025-07-16T09:27:05","slug":"expecting-a-string-got-null11-zenduriuri-parsenull-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/expecting-a-string-got-null11-zenduriuri-parsenull-in-magento-2\/","title":{"rendered":"Solved: &#8220;Expecting a string, got NULL&#8221;,&#8221;1&#8243;:&#8230;&#8221; in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Is your Magento 2 admin URL not working after migration? Are you facing the \u201cExpecting a string, got NULL\u201d,\u201d1\u2033:\u201d#1 ZendUriUri-&gt;parse(NULL)\u201d error while accessing it? Read this blog post to solve it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the release of\u00a0Magento 2\u00a0in 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/change-admin-url-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">custom admin URL<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The admin may face the following error while accessing the admin panel:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>\u201cExpecting a string, got NULL\u201d,\u201d1\u2033:\u201d#1 ZendUriUri-&gt;parse(NULL)\u201d in Magento 2<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method to Solve: \u201cExpecting a string, got NULL\u201d,\u201d1\u2033:\u201d#1 ZendUriUri-&gt;parse(NULL)\u201d in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:&nbsp;<\/strong>Log into Phpmyadmin with your Magento 2 credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:&nbsp;<\/strong>Look for the&nbsp;<strong>core_config_data&nbsp;<\/strong>table in the Magento database and open it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:&nbsp;<\/strong>Search for the&nbsp;<strong>admin\/url\/use_custom&nbsp;<\/strong>in the table and set its value to \u201c0\u201d if it\u2019s set to \u201c1\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:&nbsp;<\/strong><a href=\"https:\/\/meetanshi.com\/blog\/clear-magento-2-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">Flush Magento 2 cache<\/a>&nbsp;using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! Now, you\u2019ll be successfully able to access your Magento 2 admin panel and solve the&nbsp;<em><strong>\u201cExpecting a string, got NULL\u201d,\u201d1\u2033:\u201d#1 ZendUriUri-&gt;parse(NULL)\u201d<\/strong><\/em>&nbsp;error in Magento 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have any queries or doubts regarding the provided solution, feel free to comment.I would be happy to help you.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, do not forget to share this&nbsp;solution with your Magento friends via social media because \u2018Sharing is caring\u2019.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is your Magento 2 admin URL not working after migration? Are you facing the \u201cExpecting a string, got NULL\u201d,\u201d1\u2033:\u201d#1 ZendUriUri-&gt;parse(NULL)\u201d error while accessing it? Read&#8230;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2530","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2530"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2530\/revisions"}],"predecessor-version":[{"id":17952,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2530\/revisions\/17952"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}