Skip to content
  • There are no suggestions because the search field is empty.

MatrixRates: Memory Limits

Resolve PHP memory limit errors for successful CSV file uploads

Table of Contents

Overview

In this guide, we'll walk you through adjusting memory limits in PHP. You might encounter the need for this when seeing an error like "Memory limit exceeded... Tried to allocate X bytes," or when trying to upload a CSV where no rates are uploaded. 😊

Solution

To resolve memory limit issues, you have two options: either contact your hosting company to make the necessary changes, or adjust the configuration yourself if you're comfortable with server settings. 💡 Remember to back up your files before making any changes.

The file you need to edit is php.ini, whose location can vary based on your operating system. In many Linux setups, you'll find it at /etc/php.ini. If you're unsure, a quick online search should guide you.

Here are the values you need to modify:

  • upload_max_filesize=5M
  • post_max_size=10M

Increase these values to accommodate larger files. For instance, if your CSV file is 20MB, set both upload_max_filesize and post_max_size to about 30M (note: use "M," not "MB"!). This ensures your file uploads successfully. ⚠️

By following these steps, you can efficiently manage PHP memory limits and avoid upload issues. Continue reading or reach out for further support if needed. 😊