There are a number of ways to increase the PHP memory limit on your server, however you only need to use one of these techniques dependant on your server's configuration. You need to increase the client_max_body_size directive in your Nginx configuration. Apache with mod_fcgid: Set the FcgidMaxRequestLen value to a high enough value.More changes may be needed depending on how Apache talks to PHP: You will need to change this to a larger value or remove the entry altogether. The Apache webserver has a LimitRequestBody configuration directive that restricts the size of all POST data regardless of the web scripting language in use. If you are unsure which type of server you are running or how to modify its configuration, ask your web host to change it. Web serverĭepending on which web server you are using, you might need to change the configuration as well to allow large file uploads. If open_basedir is on, then the system default directory must be allowed for an upload to succeed. Please be aware that if the directory specified in upload_tmp_dir is not writable, PHP falls back to the system default temporary directory. When you are trying to upload large files make sure this partition is big enough, or change your upload_tmp_dir settings to point to a different directory. In Unix, the /tmp directory will often be a separate disk partition, often the size of the partition is 16MB. If not specified PHP will use the system's default. The directory must be writable by whatever user PHP is running as. PHP uploads files to it's temporary directory as specified by the upload_tmp_dir setting. Make sure Joomla's sessions lifetime is long enough to allow for large (or slow) uploads.Ī good value is at least 30min, if you are dealing with large uploads. Some resources on how to set up PHP to allow large uploads: You'll have to ask your host to change it. If this isn't your new value of 16M, then your host doesn't support overriding this value. In the left 'Local Value' column, you see the actual value. In the 'Master Value' column on the right, you see the original value of 8M. Now search for memory_limit on that page. To make sure a change you made is actually making any difference, you can use Joomla's System Info (Help > System Info > PHP Information). htaccess file, you have this line: php_value memory_limit 16M Sometimes only some items can be changed and others can't.įor example, your PHP memory limit is set to 8M, but you want to double that. Not all hosts allow to change PHP configuration values through php.ini files or. You need to make sure that memory_limit is larger then post_max_size which should be slightly larger then upload_max_filesize. max_input_time: -1 (default) or a very high value example 600 (10 minutes).The value should be the size of largest file you wish to upload, for example if you want to upload files as large as 50MB you need the following settings. But if anyone else needs to import a lot of snippets into a local WP installation and gets the error, at least this method provides a workaround – import using v2.14.6 and update plugin to latest version once you’re done.To handle large file uploads you need to adapt the following PHP settings. I appreciate this probably won’t given you much help tracking down the issue. I tried using an earlier version of your plugin (v2.14.6) & the import functionality now works perfectly again! (I didn’t change any other settings – just deleted Code Snippets v3.2.0 & replaced with v2.14.6) Having slept on the problem overnight, I had an idea. This is odd, because I’ve never had this using MAMP Pro in the past. I then tried creating a simple dummy snippet on this new blank site, exporting it, deleting the dummy snippet & tried to reimport – once again I get the same error. If I install just your plugin v3.2.0 on a completely fresh & empty WP install, I get an error message of “An Error Occurred When Processing The Import File” when attempting to import snippets. I’m using MAMP Pro on a Windows 10 machine for development. I’ve had exactly the same problem as a previous user – neosan ( )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |