<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lỗi upload file wordpress &#8211; Máy tính &amp; WordPress</title>
	<atom:link href="https://huuthuan.net/tag/loi-upload-file-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>https://huuthuan.net</link>
	<description>Là một trang Web cá nhân chia sẻ các kinh nghiệm về thủ thuật máy tính, thủ thuật WordPress từ cơ bản đến nâng cao!</description>
	<lastBuildDate>Thu, 25 Apr 2024 08:51:06 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://huuthuan.net/wp-content/uploads/2024/05/cropped-icon-vocthuthuat-32x32.png</url>
	<title>lỗi upload file wordpress &#8211; Máy tính &amp; WordPress</title>
	<link>https://huuthuan.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Khắc phục lỗi “The uploaded file exceeds” trong WordPress</title>
		<link>https://huuthuan.net/sua-loi-the-uploaded-file-exceeds-wordpress.html</link>
					<comments>https://huuthuan.net/sua-loi-the-uploaded-file-exceeds-wordpress.html#respond</comments>
		
		<dc:creator><![CDATA[Hữu Thuần]]></dc:creator>
		<pubDate>Tue, 13 Jun 2023 02:42:59 +0000</pubDate>
				<category><![CDATA[Thủ thuật Web]]></category>
		<category><![CDATA[lỗi upload file wordpress]]></category>
		<category><![CDATA[lỗi wordpress]]></category>
		<category><![CDATA[mã nguồn wordpress]]></category>
		<category><![CDATA[thủ thuật wordpress]]></category>
		<category><![CDATA[vá lỗi wordpress]]></category>
		<guid isPermaLink="false">https://vocthuthuat.com/?p=3717</guid>

					<description><![CDATA[Khắc phục lỗi “The uploaded file exceeds” trong WordPress &#8211; Plugin và theme là những thành phần không thể thiếu&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[
<p>Khắc phục lỗi “The uploaded file exceeds” trong WordPress &#8211; Plugin và theme là những thành phần không thể thiếu để bạn xây dựng được một website trên mã nguồn wordpress theo mong muốn và sở thích của bạn. Tuy nhiên trong một số trường hợp bạn cài đặt theme hoặc plugin thì xảy ra tình trạng lỗi “The uploaded file exceeds” và khi xuất hiện lỗi này tất nhiên rằng bạn sẽ không cài được các theme hoặc Plugin.</p>



<p>Trong bài viết trước đây về thủ thuật WordPress mình có hướng dẫn các bạn cách <a href="https://huuthuan.net/wordpress-tao-widget-truoc-don-gian.html" target="_blank" rel="noopener">tạo Widget trượt trên Sidebar trong WordPress</a> giúp bạn có thể tùy chỉnh Widget trượt làm cho trang Web chuyên nghiệp hơn tiếp tục trong bài viết này mình sẽ hướng dẫn các bạn cách khắc phục lỗi “The uploaded file exceeds” khi cài Plugin và theme.</p>



<h2 class="wp-block-heading">Lỗi The uploaded file exceeds trong WordPress</h2>



<p>Lỗi này xảy ra <strong>do nhà cung cấp hosting của bạn mặc định dung lượng tối đa được up lên hosting</strong> vì vậy khi bạn upload một file lớn hơn quy định thì bạn sẽ không up lên được. Lỗi này thường xảy ra đối với các hosting có dung lượng nhỏ và miễn phí. Để kiểm tra giới hạn tối đa khi up một file lên hosting bạn có thể vào <em>Menu Phương tiện (Media) > Thêm tập tin (Add New)</em>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="1000" height="337" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds.jpg" alt="sua loi The uploaded file" class="wp-image-33322" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 1"><figcaption class="wp-element-caption"><em><strong>Kích thước tập tin tải lên tối đa là 512MB</strong></em></figcaption></figure>
</div>


<p>Nếu như hosting của bạn <strong>giới hạn 2MB </strong>thì khi bạn tải lên các File trên 2MB trang web sẽ đều báo lỗi <em>“The uploaded file exceeds the upload_max_filesize directive in php.ini”</em>.</p>



<p>Để khắc phục lỗi này bạn cần phải tăng dung lượng Upload File trên hosting, có khá nhiều cách để bạn có thể tăng dung lượng Upload File, bạn có thể tham khảo một số cách sau.</p>



<h3 class="wp-block-heading" id="neo-htaccess">Tăng dung lượng Upload bằng File .htaccess</h3>



<p>Đầu tiên bạn hãy truy cập vào thư mục chứa Web trên hosting bằng cách vào <strong>File Manager</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="1000" height="474" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-1.jpg" alt="sua loi The uploaded file exceeds 1" class="wp-image-33323" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 2"></figure>
</div>


<p>Sau đó chọn thư mục &#8220;<strong>public_html</strong>&#8221; để xem tất cả các thư mục, tập tin của trang Web.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="1000" height="397" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-2.jpg" alt="sua loi The uploaded file exceeds 2" class="wp-image-33324" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 3"></figure>
</div>


<p>Lúc này hãy kích chuột phải vào File <strong>.htaccess</strong> chọn Edit để chỉnh sửa.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="385" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-3.jpg" alt="sua loi The uploaded file exceeds 3" class="wp-image-33325" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 4"></figure>
</div>


<p>Bạn hãy copy đoạn mã sau đây và dán vào phần đầu File <strong>.htaccess</strong> là được.</p>



<pre class="wp-block-code"><code>php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300</code></pre>



<p>Cuối cùng bạn hãy lưu lại File <strong>.htaccess</strong> và nhớ làm mới trang, sau đó hãy kiểm tra lại thử Upload File được chưa?</p>



<h3 class="wp-block-heading">Tăng dung lượng Upload bằng File wp-config.php</h3>



<p id="neo-htaccesss">Phương pháp này cũng giống như phương pháp tăng dung lượng <a href="#neo-htaccess" data-type="internal" data-id="#neo-htaccess">Upload bằng File <strong>.htaccess</strong></a>.</p>



<p>Đầu tiên bạn hãy truy cập vào thư mục chứa Web trên hosting bằng cách vào <strong>File Manager</strong> > Sau đó chọn thư mục &#8220;<strong>public_html</strong>&#8221; > Chọn tiếp File <strong>wp-config.php</strong> > Chọn <strong>Edit</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="431" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-4.jpg" alt="sua loi The uploaded file exceeds 4" class="wp-image-33326" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 5"></figure>
</div>


<p> Bạn hãy copy đoạn mã sau đây và dán vào bên dưới dòng <code>define('WP_DEBUG',false);</code> trong File <strong>wp-config.php</strong> là được.</p>



<pre class="wp-block-code"><code>@ini_set( 'upload_max_size' , '24M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'memory_limit', '128M' );</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="390" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-5.jpg" alt="sua loi The uploaded file exceeds 5" class="wp-image-33327" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 6"></figure>
</div>


<p>Bạn hãy copy đoạn mã sau đây và dán vào phần đầu File <strong>.htaccess</strong> là được.</p>



<p><strong>Lưu ý</strong>: Nếu không được bạn có thể tăng hạ dòng <strong>upload_max_filesize</strong> và <strong>post_max_size</strong> thành các con số khác xem sao. Trên đây là 2 cách để bạn có thể khắc phục lỗi khi upload file đơn giản. Có thể 2 cách trên sẽ không thành công lúc này bạn cần liên hệ với nhà cung cấp để họ cấu hình lại hosting.</p>





<ul class="su-posts su-posts-list-loop ">

						
			
			<li id="su-post-10030" class="su-post ">
				<a href="https://huuthuan.net/chuyen-huong-lien-ket-cu-thanh-lien-ket-moi.html">Chuyển hướng liên kết cũ thành liên kết mới trong WordPress</a>
			</li>

					
			
			<li id="su-post-10716" class="su-post ">
				<a href="https://huuthuan.net/quan-ly-tap-tin-trong-thu-vien-wordpress.html">Quản lý tập tin và thư mục trong thư viện WordPress tốt hơn</a>
			</li>

					
			
			<li id="su-post-10724" class="su-post ">
				<a href="https://huuthuan.net/tao-trang-web-da-ngon-ngu-trong-wordpress.html">Cách tạo trang web đa ngôn ngữ đơn giản trong WordPress</a>
			</li>

					
			
			<li id="su-post-10891" class="su-post ">
				<a href="https://huuthuan.net/chen-quang-cao-facebook-vao-trang-web.html">Cách chèn quảng cáo Facebook vào trang web để kiếm tiền</a>
			</li>

					
			
			<li id="su-post-10936" class="su-post ">
				<a href="https://huuthuan.net/tao-thong-bao-chinh-sach-binh-luan.html">Cách tạo thông báo chính sách bình luận trong WordPress</a>
			</li>

			
</ul>




<h3 class="wp-block-heading">Thay đổi trực tiếp bằng trên phiên bản PHP</h3>



<p>Phương pháp này khá đơn giản tùy thuộc vào ứng dụng quản trị Web hosting mà ban đang sử dụng sẽ có sự khác nhau, nhưng về cơ bản các thao tác tùy chỉnh không khác là mấy.</p>



<p>Ở đây tôi thực hiện trên cPanel, đối với các ứng dụng quản trị khác bạn thực hiện tương tự.</p>



<p>Trên ứng dụng quản lý bạn tìm mục <strong>PHP Vesion</strong> và kích chọn như hình dưới.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="318" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-6.jpg" alt="sua loi The uploaded file exceeds 6" class="wp-image-33328" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 7"></figure>
</div>


<p>Sau đó bạn tìm tùy chọn <strong>Options</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="468" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-7.jpg" alt="sua loi The uploaded file exceeds 7" class="wp-image-33329" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 8"></figure>
</div>


<p>Và hãy tăng thuộc tính <strong>upload_max_filesize</strong> và <strong>post_max_size</strong> cho phù hợp với File Upload của bạn là được.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="1000" height="617" src="https://huuthuan.net/wp-content/uploads/2023/06/sua-loi-The-uploaded-file-exceeds-8.jpg" alt="sua loi The uploaded file exceeds 8" class="wp-image-33330" title="Khắc phục lỗi “The uploaded file exceeds” trong Wordpress 9"></figure>
</div>


<p>Sau khi thay đổi xong hãy kiểm tra kết quả Upload nhé.</p>



<h3 class="wp-block-heading">Một số hosting hổ trợ tùy chỉnh PHP</h3>







<h3 class="wp-block-heading">Kết luận</h3>



<p>Có thể nói lỗi “The uploaded file exceeds” là một lỗi khá phổ biến đối với những ai đang sử dụng WordPress hoặc bất kỳ mã nguồn nào khác, việc sửa Lỗi “The uploaded file exceeds” vô cùng đơn giản bạn chỉ cần tăng 2 thông số <strong>upload_max_filesize</strong> và <strong>post_max_size</strong> cho phù hợp với dung lượng File Upload lên trang Web là được.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://huuthuan.net/sua-loi-the-uploaded-file-exceeds-wordpress.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sửa lỗi &#8220;Is its parent directory writable by the server&#8221; WordPress</title>
		<link>https://huuthuan.net/parent-directory-writable.html</link>
					<comments>https://huuthuan.net/parent-directory-writable.html#respond</comments>
		
		<dc:creator><![CDATA[Hữu Thuần]]></dc:creator>
		<pubDate>Fri, 05 Jun 2020 08:42:29 +0000</pubDate>
				<category><![CDATA[Thủ thuật Web]]></category>
		<category><![CDATA[lỗi upload file wordpress]]></category>
		<category><![CDATA[mã nguồn wordpress]]></category>
		<category><![CDATA[thủ thuật wordpress]]></category>
		<category><![CDATA[tối ưu hóa wordpress]]></category>
		<category><![CDATA[tuyệt chiêu wordpress]]></category>
		<category><![CDATA[vá lỗi wordpress]]></category>
		<guid isPermaLink="false">https://vocthuthuat.com/?p=24952</guid>

					<description><![CDATA[Sửa lỗi &#8220;Is its parent directory writable by the server&#8221; WordPress &#8211; Đây là một lỗi khá phổ biến đối&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;"><em>Sửa lỗi &#8220;Is its parent directory writable by the server&#8221; WordPress</em> &#8211; Đây là một lỗi khá phổ biến đối với những ai đang sử dụng mã nguồn WordPress khi bạn thực hiện việc tải tệp lên trang Web của mình. Lỗi &#8220;Is its parent directory writable by the server&#8221; xảy ra do phân quyền thư mục hoặc vị trí của thư mục tải lên không chính xác. Cho dù là bất kỳ lý do gì nếu bạn đang gặp lỗi trên thì có thể áp dụng phương pháp bên dưới để khắc phục hiệu quả.</p>
<h2 style="text-align: justify;">Lỗi &#8220;Is its parent directory writable by the server&#8221;</h2>
<p style="text-align: justify;">Như mình đã trình bày bên trên đây là một lỗi liên quan đến quyền hạn thư mục hoặc vị trí thư mục không chính xác, lỗi này không nghiêm trọng đến hoạt động hệ thống của bạn chỉ là tạm thời bạn không thể tải tệp lên trang Web của mình mà thôi. Hai phương pháp dưới đây sẽ giúp bạn khắc phục lỗi &#8220;Is its parent directory writable by the server&#8221; hiệu quả nhất.</p>
<h3 style="text-align: justify;">Thay đổi thư mục tải lên</h3>
<p style="text-align: justify;">Vấn đề này thường hay xảy ra khi bạn thực hiện việc chuyển trang web của mình sang một nhà cung cấp dịch vụ lưu trữ khác dẫn đến hệ thống không xác định được thư mục File tải lên nên dẫn đến lỗi &#8220;Is its parent directory writable by the server&#8221;.</p>
<p style="text-align: justify;">Để khắc phục đầu tiên bạn cần sửa đổi tập tin cấu hình WordPress của mình bằng cách truy cập trình quản lý tệp lưu trữ hoặc FTP của bạn và tìm tệp <em><strong>wp-config.php</strong></em>. Nó thường nằm trong thư mục gốc của trang web ( /public_html).</p>
<p><figure id="attachment_24953" aria-describedby="caption-attachment-24953" style="width: 700px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-24953 size-full" src="https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable.jpg" alt="Sửa lỗi &quot;Is its parent directory writable by the server&quot;" width="700" height="322" title="Sửa lỗi &quot;Is its parent directory writable by the server&quot; Wordpress 11" srcset="https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable.jpg 700w, https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable-20x9.jpg 20w" sizes="auto, (max-width: 700px) 100vw, 700px" /><figcaption id="caption-attachment-24953" class="wp-caption-text">Sửa lỗi &#8220;Is its parent directory writable by the server&#8221;</figcaption></figure></p>
<p style="text-align: justify;">Sau đó hãy mở tệp để chỉnh sửa, bạn hãy sao chép đoạn mã bên dưới.<br />
<script src="https://gist.github.com/zhonmaz/1fed19f5b26eaf23a39c207587a7d50c.js"></script></p>
<p style="text-align: justify;">và dán trước dòng này.</p>
<p style="text-align: justify;"><script src="https://gist.github.com/zhonmaz/6cc6545ae55a3f77aa3d86e979dbc7b1.js"></script></p>
<p style="text-align: justify;">Lưu lại tập tin và thực hiện xóa cache và tải lại tập tin một lần nữa.</p>
<h3 style="text-align: justify;">Thay đổi quyền thư mục</h3>
<p style="text-align: justify;">Nếu bạn vẫn nhận được lỗi khi thực hiện phương pháp thay đổi thư mục tải lên thì bạn hãy thực hiện tiếp phương pháp này để khắc phục lỗi.</p>
<p style="text-align: justify;">Đầu tiên hãy truy cập trình quản lý tệp lưu trữ hoặc FTP của bạn và chuyển đến thư mục cài đặt <a href="https://vi.wordpress.org/" target="_blank" rel="noopener noreferrer">WordPress</a> (thường nằm trong thư mục /public_html).</p>
<p style="text-align: justify;">Tiếp tục truy cập vào thư mục wp-content và chuột phải vào thư mục Uploads.</p>
<p style="text-align: justify;">Chọn Permissions và thay đổi quyền hạn thư mục Uploads thành 755 và bạn nhơ chọn Apply to subdir<em> (Áp dụng cho các thư mục con, mỗi Panel sẽ có cụm từ khác nhau nhé)</em>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-24954" src="https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable-1.jpg" alt="sua loi parent directory writable 1" width="700" height="395" title="Sửa lỗi &quot;Is its parent directory writable by the server&quot; Wordpress 12" srcset="https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable-1.jpg 700w, https://huuthuan.net/wp-content/uploads/2020/06/sua-loi-parent-directory-writable-1-20x11.jpg 20w" sizes="auto, (max-width: 700px) 100vw, 700px" /></p>
<p style="text-align: justify;">Cuối cùng <em>nhấn OK</em> là được, hãy làm mới lại thư mục Web và thực hiện lại việc tải File.</p>
<h3 style="text-align: justify;">Mẹo phân quyền thư mục</h3>
<p style="text-align: justify;">Okey! Nếu sau khi áp dụng hai phương pháp trên mà không giúp bạn giải quyết vần đề bạn hãy sử dụng mẹo sau.</p>
<p style="text-align: justify;">Đầu tiên hãy truy cập trình quản lý tệp lưu trữ hoặc FTP của bạn và chuyển đến thư mục cài đặt WordPress (thường nằm trong thư mục /public_html).</p>
<p style="text-align: justify;">Tiếp tục truy cập vào thư mục wp-content và chuột phải vào thư mục <em>Uploads &gt; Chọn Permissions</em>.</p>
<p style="text-align: justify;">Thay đổi quyền hạn thư mục Uploads thành 777 &gt; nhấn OK để hoàn thành.</p>
<p style="text-align: justify;">Tiếp tục, kích chuột phải vào thư mục Upload một lần nữa &gt; chọn Permissions, sau đó kích bỏ <em>tùy chọn Write ở mục Group và Others để trở về 755</em>.</p>
<p style="text-align: justify;">Cuối cùng nhấn OK để hoàn thành và thử tải File lại xem sao?</p>
<p style="text-align: justify;"><em>Hãy đợi chút: Bạn muốn tối ưu hóa điểm trên Google PageSpeed ​​Insights và GTmetrix một cách đơn giản và nhanh chóng? Okey! có thể tham khảo bài viết cách <a href="https://huuthuan.net/diem-google-pagespeed.html" target="_blank" rel="noopener noreferrer">nâng điểm Google PageSpeed</a> ​​Insights và GTmetrix cực kỳ hiệu quả.</em></p>
<h3 style="text-align: justify;">Kết luận</h3>
<p style="text-align: justify;">Lỗi &#8220;Is its parent directory writable by the server&#8221; trong WordPress tương đối khó chịu, bạn không thể thực hiện việc tải File lên trang Web, rất may mắn lỗi này không quá khó để sửa chữa bạn có thể áp dụng theo các phương pháp bên trên để sửa lỗi một cách hiệu quả nhất.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://huuthuan.net/parent-directory-writable.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
