Unable to load themes due to php.ini using Webmatrix
-
Hi
I’m using WordPress locally on Webmatrix 3. When I try to install a new theme, I get the following:
The uploaded file exceeds the upload_max_filesize directive in php.ini.
In ‘Add Media’ it says my upload limit is 2mb, I have tried all the solutions I have found in the forum to no avail. I found my php.ini files on my C drive and altered them but it made no difference. When I look at the php.ini code in Webmatrix I see the following and can’t make out what to change:/** * Determines the maximum upload size allowed in php.ini. * * @since 2.5.0 * * @return int Allowed upload size. */ function wp_max_upload_size() { $u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) ); $p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) ); /** * Filter the maximum upload size allowed in php.ini. * * @since 2.5.0 * * @param int $size Max upload size limit in bytes. * @param int $u_bytes Maximum upload filesize in bytes. * @param int $p_bytes Maximum size of POST data in bytes. */ return apply_filters( 'upload_size_limit', min( $u_bytes, $p_bytes ), $u_bytes, $p_bytes );
Any help gratefully appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Unable to load themes due to php.ini using Webmatrix’ is closed to new replies.