最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - WordPress single site in network has very low max upload file size limit

programmeradmin4浏览0评论

My client's in-development website based on WordPress multi site is experiencing the following issue. One single site out of dozens has it's max upload size limit set to 118 kilobytes for some reason.

I have done some investigating and have included the existing server and WordPress settings below for reference.

  • Nginx has client_max_body_size set to 64M
  • PHP has post_max_size and upload_max_size set to 64M in the main PHP 8.2 FPM php.ini file
  • The network's main settings page has the max upload file size set to 10M
  • Each individual sites settings has no limits applied to the Site Upload Space Quota setting
  • I ran this query SELECT * FROM wp_17_options WHERE option_name = 'upload_filetypes' OR option_name = 'upload_max_size'; to see if anything was somehow set in the database, but no results are returned.

Does anyone have insight on why a single site in the network has it's file upload max size set to so low?

My client's in-development website based on WordPress multi site is experiencing the following issue. One single site out of dozens has it's max upload size limit set to 118 kilobytes for some reason.

I have done some investigating and have included the existing server and WordPress settings below for reference.

  • Nginx has client_max_body_size set to 64M
  • PHP has post_max_size and upload_max_size set to 64M in the main PHP 8.2 FPM php.ini file
  • The network's main settings page has the max upload file size set to 10M
  • Each individual sites settings has no limits applied to the Site Upload Space Quota setting
  • I ran this query SELECT * FROM wp_17_options WHERE option_name = 'upload_filetypes' OR option_name = 'upload_max_size'; to see if anything was somehow set in the database, but no results are returned.

Does anyone have insight on why a single site in the network has it's file upload max size set to so low?

Share Improve this question asked Mar 5 at 1:57 Mike HermaryMike Hermary 2193 silver badges11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

It could be a couple of things:

  • If they have a lot of files in the media library—or several large files—they could be getting close to their site's upload quota. If you need to increase this, go to the site's Manage Site page, then the Settings tab, and find Site Upload Space Quota. If it's blank, it's using the network's default value; you can specify a quota for this site. The value entered here is in MB.

  • It's possible there's an upload_size_limit_filter filter being applied, though I would expect that to affect all the sites in your network.

  • It's also possible that you're running low on disk space, but again, I would expect that to affect all your sites.

发布评论

评论列表(0)

  1. 暂无评论