{"id":25441,"date":"2022-04-01T04:57:30","date_gmt":"2022-04-01T08:57:30","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=25441"},"modified":"2022-04-01T04:57:58","modified_gmt":"2022-04-01T08:57:58","slug":"php-fatal-error-cannot-instantiate-interface","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface","title":{"rendered":"PHP Fatal Error: Cannot instantiate interface"},"content":{"rendered":"\n<h2 id=\"h-error-message\">Error message<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket\\&#8230;\\Api\\&#8230;Interface<\/p><\/blockquote>\n\n\n\n<h2 id=\"h-issue-description\">Issue Description<\/h2>\n\n\n\n<p>This error means that Magento has outdated information about Dependency injection. In most cases, it is due to the cache.<\/p>\n\n\n\n<p>Most likely, you are experiencing this fatal error after running the following command:&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\">bin\/magento setup:upgrade<\/code><\/pre><\/div>\n\n\n\n<h2 id=\"h-solution\">Solution<\/h2>\n\n\n\n<p>You need to clear the cache before running <code>bin\/magento setup:upgrade<\/code>. Please use the following command to clear the cache:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\">bin\/magento cache:flush<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket\\&#8230;\\Api\\&#8230;Interface Issue Description This error means that Magento has outdated information about Dependency injection. In most cases, it is due to the cache. Most likely, you are experiencing this fatal error after running the following command:&nbsp; Solution You need to clear the cache before running &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PHP Fatal Error: Cannot instantiate interface&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[346],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Fatal Error: Cannot instantiate interface - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket...Api...Interface Issue Description This error means that\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Fatal Error: Cannot instantiate interface\" \/>\n<meta property=\"og:description\" content=\"Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket\\...\\Api\\...Interface Issue Description This error means that\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-01T08:57:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-01T08:57:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP Fatal Error: Cannot instantiate interface - Plumrocket Documentation","description":"Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket...Api...Interface Issue Description This error means that","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface","og_locale":"en_US","og_type":"article","og_title":"PHP Fatal Error: Cannot instantiate interface","og_description":"Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket\\...\\Api\\...Interface Issue Description This error means that","og_url":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface","og_site_name":"Plumrocket Documentation","article_published_time":"2022-04-01T08:57:30+00:00","article_modified_time":"2022-04-01T08:57:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface","name":"PHP Fatal Error: Cannot instantiate interface - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2022-04-01T08:57:30+00:00","dateModified":"2022-04-01T08:57:58+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"Error message PHP Fatal error: Uncaught Error: Cannot instantiate interface Plumrocket\\...\\Api\\...Interface Issue Description This error means that","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting\/cannot-instantiate-interface#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 SMTP","item":"https:\/\/plumrocket.com\/magento-smtp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-smtp"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-smtp\/v1\/troubleshooting"},{"@type":"ListItem","position":6,"name":"PHP Fatal Error: Cannot instantiate interface"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25441"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=25441"}],"version-history":[{"count":5,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25441\/revisions"}],"predecessor-version":[{"id":25446,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/25441\/revisions\/25446"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=25441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=25441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=25441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}