WordPress Upload Mp4 Error



Mautic WordPress Plugin injects Mautic tracking script and image in the WP website. Your Mautic instance will be able to track information about your visitors. You can also insert Mautic content inside your website using different shortcodes.

Key features

  • You don’t have to edit source code of your template to insert tracking code.
  • Plugin adds additional information to tracking image URL so you get better results than using just plain HTML code of tracking image.
  • You can use Mautic form embed with shortcode described below.
  • You can choose where the script is injected (header / footer).
  • Tracking image can be used as fallback when JavaScript is disabled.


Once installed, the plugin must appared in your plugin list :

  1. Enable it.
  2. Go to the settings page and set your Mautic instance URL.

Mautic Tracking Script

Tracking script works right after you finish the configuration steps. That means it will insert the mtc.js script from your Mautic instance. You can check HTML source code (CTRL + U) of your WP website to make sure the plugin works. You should be able to find something like this:

Custom attributes handling

If you need to send custom attributes within Mautic events, you can use the wpmautic_tracking_attributes filter.

The returned attributes will be added to Mautic payload.

Mautic Forms

To load a Mautic Form to your WP post, insert this shortcode to the place you want the form to appear:

Replace „1“ with the form ID you want to load. To get the ID of the form, go to your Mautic, open the form detail and look at the URL. The ID is right there. For example in this URL: http://yourmautic.com/s/forms/view/3 the ID is 3.

Mautic Focus

To load a Mautic Focus to your post, insert this shortcode to the place you want the form to appear:

Replace „1“ with the focus ID you want to load. To get the ID of the focus, go to your Mautic, open the focus detail and look at the URL. The ID is right there. For example in this URL: http://yourmautic.com/s/focus/3.js the ID is 3.

Mautic Dynamic Content

To load dynamic content into your WP content, insert this shortcode where you’d like it to appear:

Replace the „slot_name“ with the slot name you’d like to load. This corresponds to the slot name you defined when building your campaign and adding the „Request Dynamic Content“ contact decision.

Mautic Gated Videos

Mautic supports gated videos with Youtube, Vimeo, and MP4 as sources.

To load gated videos into your WP content, insert this shortcode where you’d like it to appear:

Replace the # signs with the appropriate number. For gate-time, enter the time (in seconds) where you want to pause the video and show the mautic form. For form-id, enter the id of the mautic form that you’d like to display as the gate. Replace URL with the browser URL to view the video. In the case of Youtube or Vimeo, you can simply use the URL as it appears in your address bar when viewing the video normally on the providing website. For MP4 videos, enter the full http URL to the MP4 file on the server.

Since the Mautic v2.9.1 release, the form-id is not mandatory anymore, mautic video can be tracked.

Mautic Tags

You can add or remove multiple lead tags on specific pages using commas. To remove an tag you have to use minus „-“ signal before tag name:


Via WP administration

Mautic – WordPress plugin is listed in the in the official WordPress plugin repository. That makes it very easy to install it directly form WP administration.

  1. Go to Plugins / Add New.
  2. Search for WP Mautic in the search box.
  3. The „WP Mautic“ plugin should appear. Click on Install.

Via ZIP package

If the installation via official WP plugin repository doesn’t work for you, follow these steps:

  1. Download ZIP package.
  2. At your WP administration go to Plugins / Add New / Upload plugin.
  3. Select the ZIP package you’ve downloaded in step 1.

413 Request Entity Too Large Error – An Easy Solution

Today I was trying different themes on one of my WordPress website. I downloaded many themes on my computer before. After I chose my theme file and hit the Install Now button to upload it to my server, Nginx said: 413 Request Entity Too Large. Most of the time, you only have to edit Nginx configuration file to allow large file upload.

Increasing Upload File Size For All Server Blocks

If you have multiple websites (server blocks) on a single Nginx server and you want to increase the upload file size for all of them. Then you need to edit nginx.conf file

Put the following text into the http section

The above Nginx directive means the maximum file size for uploading is 2 megabytes. The default value is 1M. So if you don’t specify it and upload a file that is larger than 1 megabytes, then your will get a 413 request entity too large error. You can change this value to your liking.

Save and close the file. Then reload Nginx configuration. You don’t need to restart Nginx.

Increasing Upload File Size For a Single Server Block

If you want to increase the upload file size for a single server block, then you need to edit the server block file. On Debian/Ubuntu server:

On CentOS/Redhat Server:

And add the following line to the server section. Again, you can change the value to your needs.

Now reload your Nginx configuration.

Uploading Files That is Larger Than 2 Megabytes

Please note that PHP also sets a limit of upload file size. The default maximum file size for uploading is 2M. So when you upload a file larger than 2M, you will get this error

then you need to change the value in PHP.

Edit the php.ini file. On Debian/Ubuntu:

Find the following line:

Change the value to the same value of your Nginx upload file size. Then reload php-fpm.

Your system may have php5-fpm or php7.0-fpm instead of php-fpm.

Checking if it’s already set

Before set the client_max_body_size value in Nginx, it’s wise to check if the value is already set but you don’t know it. Change your working directory to /etc/nginx/ and execute the following command:

Leave a Reply

Your email address will not be published. Required fields are marked *