{"id":258,"date":"2015-04-29T23:26:49","date_gmt":"2015-04-29T23:26:49","guid":{"rendered":"https:\/\/www.fastcomet.com\/blog\/?p=258"},"modified":"2022-06-10T07:51:38","modified_gmt":"2022-06-10T07:51:38","slug":"opencart-2-syntaxerror-unexpected-end-of-input-ok","status":"publish","type":"post","link":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok","title":{"rendered":"OpenCart 2 error: SyntaxError Unexpected End of Input OK"},"content":{"rendered":"\n<p class=\"has-drop-cap\">We have noticed that some clients are experiencing an error when they try to edit orders on their websites. This looked quite strange, as there are no indications in the error logs for the cause.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>After further investigation, we have discovered that the issue is causing troubles for a lot of OpenCart users. There are open issues on <a rel=\"nofollow noopener noreferrer\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/github.com\/opencart\/opencart\/issues\/1825\" target=\"_blank\">GitHub OpenCart Issue<\/a> and <a href=\"http:\/\/stackoverflow.com\/questions\/28053063\/opencart-2-0-syntaxerror-json-parse-unexpected-end-of-data-at-line-1-column-1\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" aria-label=\" (opens in a new tab)\">StackOverflow OpenCart<\/a> Issue that describe the error in details. Still, if you are experiencing such an error message as well, there is a way to fix that completely. Here is what you can try, in order to resolve the error message.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"281\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc7-1-e1430349654846.jpg\" alt=\"Resolve Error Message in OpenCart 2\" class=\"wp-image-925\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc7-1-e1430349654846.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc7-1-e1430349654846-300x109.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc7-1-e1430349654846-768x280.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Disable Maintenance Mode<\/h2>\n\n\n\n<p>The first thing you need to consider is to disable maintenance mode on your website if you are using this feature. It may be causing the error message in question on your website so you can test that first. Simply log into the admin area of your website and locate the <strong>System<\/strong> option from the left-side menu. Then click on the <strong>Settings<\/strong> button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"371\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc1-e1430349008969.jpg\" alt=\"Disable Maintenance mode in OpenCart 2\" class=\"wp-image-919\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc1-e1430349008969.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc1-e1430349008969-300x145.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc1-e1430349008969-768x370.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<p>Choose your store and click on the <strong>Edit<\/strong> button next to it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"174\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc2-e1430349031611.jpg\" alt=\"Choose an OpenCart 2 Store and Click on Edit\" class=\"wp-image-920\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc2-e1430349031611.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc2-e1430349031611-300x68.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc2-e1430349031611-768x174.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<p>Select the <strong>Server<\/strong> tab and scroll down to the <strong>Maintenance Mode<\/strong> option. Set it to <strong>No<\/strong> and <strong>Save<\/strong> the changes.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"91\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc3.jpg\" alt=\"Find the Maintenance Mode in OpenCart 2 and Disable it\" class=\"wp-image-921\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc3.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc3-300x35.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc3-768x91.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Remove Password Protection<\/h2>\n\n\n\n<p>If you have password-protection for your OpenCart installation, this may be causing the error message in question as well. It is important to remove the password protection on your website and test editing of the orders again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Generate User API<\/h2>\n\n\n\n<p>If the above techniques do not work, there is a third cause for the error as well. Log into your OpenCart administrative area and locate the <strong>System<\/strong> option on the left-side menu. Select <strong>Users<\/strong> and then <strong>API<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"302\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc4-e1430349101585.jpg\" alt=\"Find API in the Users Section of OpenCart 2\" class=\"wp-image-922\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc4-e1430349101585.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc4-e1430349101585-300x118.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc4-e1430349101585-768x301.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<p>Click on the <strong>Add New<\/strong> button to create a new <strong>API<\/strong> on your website. Edit the following two fields:<\/p>\n\n\n\n<p><strong>Username:<\/strong> Enter a long username with letters and numbers. It doesn&#8217;t have to make sense, but to be secured.<\/p>\n\n\n\n<p><strong>Password:<\/strong> Generate a password<\/p>\n\n\n\n<p><strong>Status:<\/strong> Set the status to Enabled.<\/p>\n\n\n\n<p>When you are ready, click on the <strong>Save<\/strong> button to keep the changes.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"248\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc5-e1430349142972.jpg\" alt=\"\" class=\"wp-image-923\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc5-e1430349142972.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc5-e1430349142972-300x97.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc5-e1430349142972-768x247.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<p>After that, select the <strong>System<\/strong> tab from the main menu again and click on the <strong>Settings<\/strong> option. Select your store and click on the <strong>Edit<\/strong> button next to it. On the next page, select the Options tab and scroll down to the <strong>Checkout<\/strong> section. Select the user you have created above from the <strong>API User<\/strong> drop-down box.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"283\" src=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc6-e1430349170254.jpg\" alt=\"Checkout Menu in OpenCart 2\" class=\"wp-image-924\" srcset=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc6-e1430349170254.jpg 770w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc6-e1430349170254-300x110.jpg 300w, https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/oc6-e1430349170254-768x282.jpg 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n<\/div>\n\n\n<p>The issue with the error message when editing orders on your OpenCart 2 website should now be fully resolved. Still, note that FastComet offers free 24\/7 technical support assistance on each SSD <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.fastcomet.com\/opencart-hosting\" target=\"_blank\">OpenCart Hosting<\/a> plans. If you are not able to fix the error yourself, you can always request assistance from our team via your <a href=\"https:\/\/my.fastcomet.com\/clientarea.php\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">FastComet Client Area<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have noticed that some clients are experiencing an error when they try to edit orders on their websites. This looked quite strange, as there are no indications in the error logs for the cause.<\/p>\n","protected":false},"author":6,"featured_media":597,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,4723],"tags":[121,63,122,123,124],"class_list":["post-258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-hosting","tag-issue","tag-opencart","tag-opencart-2","tag-orders","tag-syntax-error"],"featured_image_src":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","author_info":{"display_name":"Dimitar","author_link":"https:\/\/www.fastcomet.com\/blog\/author\/daniel"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OpenCart 2 error: SyntaxError Unexpected End of Input OK | FastComet<\/title>\n<meta name=\"description\" content=\"Facing\u3010OpenCart 2\u3011SyntaxError: Unexpected end of input OK when editing orders? \u261b Learn how to resolve this error for your online store.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenCart 2 error: SyntaxError Unexpected End of Input OK | FastComet\" \/>\n<meta property=\"og:description\" content=\"Facing\u3010OpenCart 2\u3011SyntaxError: Unexpected end of input OK when editing orders? \u261b Learn how to resolve this error for your online store.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok\" \/>\n<meta property=\"og:site_name\" content=\"FastComet Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-29T23:26:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T07:51:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dimitar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dimitar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenCart 2 error: SyntaxError Unexpected End of Input OK | FastComet","description":"Facing\u3010OpenCart 2\u3011SyntaxError: Unexpected end of input OK when editing orders? \u261b Learn how to resolve this error for your online store.","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:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok","og_locale":"en_US","og_type":"article","og_title":"OpenCart 2 error: SyntaxError Unexpected End of Input OK | FastComet","og_description":"Facing\u3010OpenCart 2\u3011SyntaxError: Unexpected end of input OK when editing orders? \u261b Learn how to resolve this error for your online store.","og_url":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok","og_site_name":"FastComet Blog","article_published_time":"2015-04-29T23:26:49+00:00","article_modified_time":"2022-06-10T07:51:38+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","type":"image\/jpeg"}],"author":"Dimitar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dimitar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#article","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok"},"author":{"name":"Dimitar","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/dd2086ca553541505fd54e68edd11c7c"},"headline":"OpenCart 2 error: SyntaxError Unexpected End of Input OK","datePublished":"2015-04-29T23:26:49+00:00","dateModified":"2022-06-10T07:51:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok"},"wordCount":464,"commentCount":6,"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","keywords":["issue","opencart","opencart 2","orders","syntax error"],"articleSection":["Security","Web Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok","url":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok","name":"OpenCart 2 error: SyntaxError Unexpected End of Input OK | FastComet","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#primaryimage"},"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","datePublished":"2015-04-29T23:26:49+00:00","dateModified":"2022-06-10T07:51:38+00:00","author":{"@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/dd2086ca553541505fd54e68edd11c7c"},"description":"Facing\u3010OpenCart 2\u3011SyntaxError: Unexpected end of input OK when editing orders? \u261b Learn how to resolve this error for your online store.","breadcrumb":{"@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#primaryimage","url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","contentUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/04\/opencart2-error.jpg","width":1024,"height":576},{"@type":"BreadcrumbList","@id":"https:\/\/www.fastcomet.com\/blog\/opencart-2-syntaxerror-unexpected-end-of-input-ok#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fastcomet.com\/blog"},{"@type":"ListItem","position":2,"name":"OpenCart 2 error: SyntaxError Unexpected End of Input OK"}]},{"@type":"WebSite","@id":"https:\/\/www.fastcomet.com\/blog\/#website","url":"https:\/\/www.fastcomet.com\/blog\/","name":"FastComet Blog","description":"FastComet Web Hosting Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fastcomet.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/dd2086ca553541505fd54e68edd11c7c","name":"Dimitar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71b9cba1ee4b0befecd610aba3da6defe0e9af8bc45b0dd26d2f6b53e5731734?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71b9cba1ee4b0befecd610aba3da6defe0e9af8bc45b0dd26d2f6b53e5731734?s=96&d=mm&r=g","caption":"Dimitar"},"description":"Dimitar is Director of Technical Support at FastComet. He has dedicated more than ten years toward bridging gaps between customer satisfaction and technical support. As the leader of our support organization, he\u2019s responsible for educating, empowering and recognizing our support team and focusing on the science and art of quality, productivity, and technical prowess. He likes to be challenged with the tasks and do the research to approach the goal desired.","url":"https:\/\/www.fastcomet.com\/blog\/author\/daniel"}]}},"_links":{"self":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":8,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":7962,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions\/7962"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media\/597"}],"wp:attachment":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}