Articles of php.ini

upload_max_filesize in .user.ini Not Reflected in Media Upload

I would like to know why Media Upload does not detect the upload_max_filesize that had been set in .user.ini file as shown below. max_execution_time = 10000 memory_limit = 512M upload_max_filesize = 20M post_max_size = 20M This is the phpinfo.php. This is the error message after uploading a 10MB PDF file. I do not […]

Unable to install and upload theme due to php.ini file

Issues with uploading my theme to localhost using WAMP Server on Windows 7 Home version. I’ve changed the limit to 635mb in the php.ini. However, there seems to be TWO php.ini files. These are currently situated: C:\wamp64\bin\php\php5.6.25 AND C:\wamp64\bin\php\php7.0.10. So, I changed the limit on both php.ini files (as I had no idea which one […]

Why is WordPress' file upload limit so low? Is changing it harmful?

Why is the WordPress upload limit set to 2mb? This seems prohibitively low, especially when almost everyone has broadband these days. I know this can be overridden, but I was trying to find a reason it was set to 2mb in the first place, and all I could find was tutorials on how to increase […]

WP 4.3.1 new install on localhost missing php.ini

I’ve installed WordPress on my localhost Mac OSX Yosemite box. I’m getting error: The uploaded file exceeds the upload_max_filesize directive in php.ini phpinfo() reports upload_max_filesize = 2M I noticed that there was no php.ini inside the wp-admin folder of the WordPress default install, so I placed one there with upload_max_filesize = 64M. I placed the […]

Theme requires allow_url_include = on in php.ini

I don’t even know where to start with this one. I’m using a theme that requires me to override server php.ini settings in my own php.ini with allow_url_include = on That setting at very least seems to be a security risk, according to many (and my webhost) at most it requires some other users on […]

WP & Server Speed

I’m a teacher and have used multisite WP for two years now as a resource for completing assignments. This spring semester, I have the most students that I’ve had on my site (30). Prior to this semester I’ve a max of 26 with no problems. Unfortunately, I’ve had constant slow downs: either timing out, 500s, […]

Increasing the the file upload size

I put these inside wp-admin/php.ini upload_max_filesize = 75M post_max_size = 75M max_execution_time = 300 Still not working, please advice if i am doing the right way or not?

Getting template_include to work when allow_url_include is off?

I’m working on a plugin that creates a custom post type and I would like to display a custom template without modifying the theme. Here’s the simplified code I’m working with: add_filter(‘template_include’, ‘my_custom_template’); function my_custom_template($incFile) { global $wp; global $wp_query; if ($wp->query_vars[‘post_type’] == ‘custom-post-type’) { $incFile = MY_PLUGIN_TEMPLATES . ‘/template.php’; } return $incFile; } The […]

How to stop fatal error when loading theme template file directly

If one tries to load a theme template file directly, the following error message is displayed: Fatal error: Call to undefined function get_header() in … and it goes on to list the full directory path to the wordpress install. This seems undesirable. How can I prevent it? Upon googling I found a suggestion to insert […]

Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit

I’ve read here, but I want to ask if I have understood this correctly. We have a server in which WordPress admin needed more memory. The PHP memory_limit, in PHP.ini, is set to 256M, and so was WP_MAX_MEMORY_LIMIT in wp-includes/default-constants.php. There is a large amount of pages, and I think we will end up automatically […]