{"id":24249,"date":"2018-10-04T14:29:08","date_gmt":"2018-10-04T13:29:08","guid":{"rendered":"https:\/\/www.awardspace.com\/?page_id=24249"},"modified":"2022-09-08T12:33:49","modified_gmt":"2022-09-08T12:33:49","slug":"post-content-length","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/","title":{"rendered":"How to Fix the POST Content-Length Exceeded Error"},"content":{"rendered":"<p>In this tutorial, we&#8217;re going to provide details regarding the error message <strong>POST Content-Length Exceeded<\/strong> in WordPress, including the meaning and ways to fix it.<\/p>\n<p>&nbsp;<\/p>\n<h3>What Does the Error Mean?<\/h3>\n<p>By default, the maximum amount of data that can be transferred via PHP is 5MB. If you are a WordPress administrator and attempt to upload a file larger than this value, your upload will be interrupted and your web page will produce a <strong>POST Content-Length Exceeded<\/strong> warning.<\/p>\n<p>The following screenshot shows an example that illustrates the error <strong>POST Content-Length<\/strong>.<\/p>\n<p><a class=\"et_pb_lightbox_image\" title=\"post content length exceeded\" href=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-2.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img\" src=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-2.png\" alt=\"post content length exceeded 2\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>How Can I Increase the Maximum Upload Limit in WordPress?<\/h3>\n<p>The maximum limit on uploading data in WordPress can be changed by modifying the PHP variables <strong><em>post_max_size<\/em><\/strong> and <strong><em>upload_max_filesize<\/em><\/strong>, both of which can be found in your web hosting account&#8217;s main php.ini file.<\/p>\n<p>AwardSpace offers its users to change these PHP variables in the following two ways:<\/p>\n<ul>\n<li>through the AwardSpace PHP Settings Manager<\/li>\n<li>with the use of a custom php.ini file<\/li>\n<\/ul>\n<p><strong>Note<\/strong>: Both features are only available to our premium hosting account customers. If you own a free hosting plan and are looking to get a premium one, you are welcome to review our offers at our <a href=\"\/web-hosting\/shared-hosting\/\">shared hosting<\/a> page.<\/p>\n<p>&nbsp;<\/p>\n<h4>Solution #1: Using the AwardSpace PHP Settings Manager<\/h4>\n<ol>\n<li>Sign in to your AwardSpace account via our <a href=\"\/user-login\/\">login portal<\/a>.<\/li>\n<li>Under the Advanced Tools area, click on the PHP Settings <a href=\"https:\/\/cp1.awardspace.net\/beta\/php-settings\/\">link<\/a>.<\/li>\n<li>Click on the <strong>here<\/strong> link in order to access the PHP Settings editor.<\/li>\n<li>Once you are inside the editor, locate the variables <strong><em>post_max_size<\/em><\/strong> and <strong><em>upload_max_filesize<\/em><\/strong>.<a class=\"et_pb_lightbox_image\" title=\"post content length exceeded\" href=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-4.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img\" src=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-4.png\" alt=\"post content length exceeded 4\" \/> <\/a><\/li>\n<li>Set the upload limit to a value greater than the size of your theme file and press Save.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>Solution #2: Generating a custom php.ini file<\/h4>\n<p>An alternative way to increase the maximum upload limit is with the creation of a php.ini file.<\/p>\n<p>Create a new file under your WordPress main directory and name it <strong>php.ini<\/strong>. Using your favorite editor or our built-in <a href=\"\/kb\/file-manager-how-to-use\/\">File Manager<\/a>, open the php.ini file you&#8217;ve created and insert the below code into it:<\/p>\n<div style=\"background-color: #333300;\"><code><span style=\"color: #d9d9d9;\">\u00a0\u00a0post_max_size = 30M<\/span><br \/>\n<span style=\"color: #d9d9d9;\">\u00a0\u00a0upload_max_filesize = 30M<\/span><\/code><\/div>\n<p>The above set of rules will allow you to upload files via PHP up to 30MB in size.<\/p>\n<p>After you submit the changes, log into your WordPress back-end and retry the upload process. If everything goes as expected, you will receive a system notification that your theme\/plugin has been installed.<\/p>\n<p><a class=\"et_pb_lightbox_image\" title=\"post content length exceeded\" href=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-3.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img\" src=\"\/wp-content\/uploads\/2018\/09\/post-content-length-exceeded-3.png\" alt=\"post content length exceeded 3\" \/> <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;re going to provide details regarding the error message POST Content-Length Exceeded in WordPress, including the meaning and ways to fix it. &nbsp; What Does the Error Mean? By default, the maximum amount of data that can be transferred via PHP is 5MB. If you are a WordPress administrator and attempt to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":30499,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[86],"tags":[],"class_list":["post-24249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-optimization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Fix the Post Content Length Error in WordPress | AwardSpace.com<\/title>\n<meta name=\"description\" content=\"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.\" \/>\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.awardspace.com\/wordpress-tutorials\/post-content-length\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix the Post Content Length Error in WordPress | AwardSpace.com\" \/>\n<meta property=\"og:description\" content=\"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-04T13:29:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-08T12:33:49+00:00\" \/>\n<meta name=\"author\" content=\"ivailod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ivailod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\"},\"author\":{\"name\":\"ivailod\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221\"},\"headline\":\"How to Fix the POST Content-Length Exceeded Error\",\"datePublished\":\"2018-10-04T13:29:08+00:00\",\"dateModified\":\"2022-09-08T12:33:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\"},\"wordCount\":405,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Optimization\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\",\"url\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\",\"name\":\"How to Fix the Post Content Length Error in WordPress | AwardSpace.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2018-10-04T13:29:08+00:00\",\"dateModified\":\"2022-09-08T12:33:49+00:00\",\"description\":\"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.awardspace.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Entrepreneurship\",\"item\":\"https:\/\/www.awardspace.com\/blog\/entrepreneurship\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Fix the POST Content-Length Exceeded Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221\",\"name\":\"ivailod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"ivailod\"},\"url\":\"https:\/\/www.awardspace.com\/author\/ivailod\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix the Post Content Length Error in WordPress | AwardSpace.com","description":"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.","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.awardspace.com\/wordpress-tutorials\/post-content-length\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix the Post Content Length Error in WordPress | AwardSpace.com","og_description":"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.","og_url":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2018-10-04T13:29:08+00:00","article_modified_time":"2022-09-08T12:33:49+00:00","author":"ivailod","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"ivailod","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/"},"author":{"name":"ivailod","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221"},"headline":"How to Fix the POST Content-Length Exceeded Error","datePublished":"2018-10-04T13:29:08+00:00","dateModified":"2022-09-08T12:33:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/"},"wordCount":405,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"image":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage"},"thumbnailUrl":"","articleSection":["Optimization"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/","url":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/","name":"How to Fix the Post Content Length Error in WordPress | AwardSpace.com","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage"},"image":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage"},"thumbnailUrl":"","datePublished":"2018-10-04T13:29:08+00:00","dateModified":"2022-09-08T12:33:49+00:00","description":"This article will provide information about the error (warning) in WordPress called post content length exceeded, including ways to fix it.","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/post-content-length\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.awardspace.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Entrepreneurship","item":"https:\/\/www.awardspace.com\/blog\/entrepreneurship\/"},{"@type":"ListItem","position":4,"name":"How to Fix the POST Content-Length Exceeded Error"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221","name":"ivailod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"ivailod"},"url":"https:\/\/www.awardspace.com\/author\/ivailod\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/24249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=24249"}],"version-history":[{"count":0,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/24249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=24249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=24249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=24249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}