• Resolved zorvek

    (@zorvek)


    I am trying to install a theme provided in the form of a zip file. When I upload it using the Word Press client I get the error message “The uploaded file exceeds the upload_max_filesize directive in php.ini.” I followed these instructions:

    https://www.siteground.com/tutorials/wordpress/install_themes.htm

    I have tried everything I can find including the suggestions in these two pages:

    https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
    https://atlantisthemes.com/fix-upload_max_filesize/

    Currently I have installed all of the suggestions to .htaccess, wp-config.php, and php.ini from the above pages. I have rebooted the server, restarted IIS, and restarted the website. I have reloaded the browser and tried different browsers.

    Windows Server 2012 R2 Standard
    64 bit, 4 GB RAM
    IIS 8
    PHP 5.5
    PHP 5.3
    CMD window running php –ini reveals:
    Configuration File (php.ini) Path: C:\Windows
    Loaded Configuration File: C:\Program Files (x86)\PHP\v5.5\php.ini
    Scan for additional .ini files in: (none)
    Additional .ini files parsed: (none)

    Paths to files I have edited:
    C:\Program Files (x86)\PHP\v5.5\php.ini
    C:\inetpub\WORDPRESSROOT\DataAutoPros\wp-config.php
    C:\inetpub\WORDPRESSROOT\DataAutoPros\wp-content\plugins\akismet\.htaccess

    Note that the .htaccess file was the only one I could find.

    Some pages suggest using cPanel but I have no idea what that is or how to install/run it on Windows.

    One page above suggests updating the “Theme Functions File” but I have no idea what this is or where it is.

    I know this can be resolved and suspect that I am touching the wrong files. Or there are settings that are overriding the setting I have touched. So many files and so many folders.

    Kevin

Viewing 8 replies - 1 through 8 (of 8 total)
  • .htaccess file should be located under WordPress root ( C:\inetpub\WORDPRESSROOT\.htaccess ) or ( C:\inetpub\WORDPRESSROOT\DataAutoPros\.htaccess – if you’ve installed WordPress under sub-directory ).

    C:\inetpub\WORDPRESSROOT\DataAutoPros\wp-content\plugins\akismet\.htaccess appears wrong .htaccess file to me.

    @zorvek increases upload_max_filesize in php.ini
    or upload directory theme in /wp-content/themes/

    Yes, the easiest way would be to upload unpacked theme folder to /wp-content/themes/ using some FTP program.

    Thread Starter zorvek

    (@zorvek)

    I reverted back to original everything and then did two things:

    1) Changed these lines in the php.ini file:

    ;post_max_size = 8M
    post_max_size = 10M

    ;upload_max_filesize = 2M
    upload_max_filesize = 10M

    2) Created a new .htaccess file with this content:

    php_value memory_limit 256M
    php_value upload_max_filesize 10M
    php_value post_max_size 10M
    php_value max_execution_time 300
    php_value max_input_time 300

    Restarted the website and the same message. Tried putting .htaccess in both:

    C:\inetpub\WORDPRESSROOT

    and

    C:\inetpub\WORDPRESSROOT\DataAutoPros

    I confirmed that PHP is using the ini file that I am editing and that it is, in fact, picking up the settings (using PHP Manager app in IIS Manager.)

    PHP Settings

    Any other ideas to try? Any other reason that I would get the message “The uploaded file exceeds the upload_max_filesize directive in php.ini.” when, clearly, PHP is using 10M for both post_max_size and upload_max_filesize and the file is 3.6 MB?

    Kevin

    Thread Starter zorvek

    (@zorvek)

    More…

    I tried to install the unzipped folder in wp-content\themes, restarted the website, and WordPress doesn’t recognize it. I also noticed that three of our nine installed themes don’t have directories in wp-content\themes: Renden, OnePress, and Ultra.

    Why are they missing? Where are they? I’m logged on as an Administrator and showing hidden files.

    Kevin

    If the theme is valid and all files are uploaded to themes/theme_name/ them WP must see it. The fact that you have some more themes that aren’t under /themes/ folder, should point out that there’s some serious configuration issue.

    Thread Starter zorvek

    (@zorvek)

    OK, I’m going to stop this insanity and apologize. It turns out my business partner neglected to tell me that he hasn’t actually redirected the domain to the new server. I’ve been logging in to WordPress on one sever while maintaining WordPress with RDP on another server. He’s been moved from IT to Sales.

    Thank you all for your support! Needless to say I have learned a lot about configuring IIS, setting up an FTP server, where WordPress puts stuff, configuring PHP, etc.

    Kevin

    Thread Starter zorvek

    (@zorvek)

    I’m closing this one.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t Upload Theme’ is closed to new replies.