Memory requirements and execution time requirements to export (especially PDF) can be quite high. If you see error message in export process, it means your web host does set too low values for memory access and time limits to execution of scripts and this values should be increased. If here described methods to increase this values don't help, it is recommend set narrower date range for export.

## How to increase the memory limit and maximum execution time for scripts?

The server settings that should be modified are:

- `memory_limit` - this setting affects the export functionality. You should increase it in case you receive error like Fatal error: Allowed memory size of XX bytes exhausted...
- `max_execution_time` - it is recommended to use a higher value in case your database has lots of entries. It is estimated that database with thousands of orders takes several minutes to get exported. You should be fine if you set this setting at 600 seconds. This value should be increased in case you receive error like Fatal error: Maximum execution time of XX seconds exceeded...
- `upload_max_filesize` - this setting affects the import functionality and sets the maximum file size your server can accept. Set it accordingly to the file you need to upload
- `post_max_size` - usually a bit higher than `upload_max_filesize`

#### Method 1: Check your hosting Control Panel to modify this values.

#### Method 2: Modify your php.ini file with the following entries:

`memory_limit = 256M
max_execution_time = 600
upload_max_filesize = 200M
post_max_size = 201M`

#### Method 3: In your /admin/ folder of OpenCart, create a .htaccess file with the following entries:

`php_value memory_limit 256M
php_value max_execution_time 600
php_value upload_max_filesize 200M
php_value post_max_size 201M`

#### Method 4: Contact your web-host for assistance.

#### Method 5: If you really need PDF export, you can export to HTML and print to PDF file on your local computer.

PDF Printer must be installed on your computer: https://www.google.com/search?q=print+to+pdf

You can find additional information in php.net