Required PHP functions for MainWP

Available with the following:
MainWP Core
Table of Contents

Below is a list of PHP functions that we occasionally see disabled on the servers, but are required for MainWP functionality.

imagepng – Required for PDF generation in our Pro Reports add-on. The function is part of the PHP GD extension.

mb_internal_encoding – Required for PDF generation in our Pro Reports add-on. The function is part of the mbstring PHP extension.

allow_url_fopen – It must be set to On in php.ini to allow PHP functions like fopen(), file_get_contents(), and include() to access files via URLs. It is required for PDF generation in our Pro Reports add-on.

bccomp – Required for the Google Analytics add-on. The function is part of the BC Math extension.

putenv – Required for the Google Analytics add-on and for generating Pro Reports reports if they include Google Analytics data.

curl_exec and curl_multi_exec – Required for adding child sites to the MainWP Dashboard. These functions are part of the cURL Functions extension.

tmpfile – Required for creating a temporary file on the Dashboard site. Used when installing Plugins and Themes via ZIP upload, adding a plugin or theme to Favorites add-on, etc…

set_time_limit – Is used to set the maximum execution time for a script, overriding the default limit. It’s typically used to prevent long-running scripts from timing out.

Still Have Questions?
Search for additional solutions in the MainWP Community or start your own discussion
MainWP Community

Table of Contents

Search MainWP.com

[searchwp_form id="1"]