• Hi,

    I just bought a new theme, and trying to upload it in my wp-content/themes folder, but for some unknown reason, it doesn’t work. I can only upload single files (such as index.php, search.php, header.php), but not the theme folder itself.

    To check that it wasn’t a problem with the theme file itself, I tried uploading other themes that I have successfully uploaded in the past, but same problem.

    I also tried uploading the .zip file from my WordPress wp-admin are (in theme>install themes) but it doesn’t work either.

    I have know idea if this matters or not, but I have two subdirectories for wordpress (mydomain.net/main and mydomain.net/test), and can’t upload anything in either. My successful uploads were done before I assigned WordPress its own directory.

    GL

Viewing 5 replies - 1 through 5 (of 5 total)
  • Check if you have the right permissions set on the folders.This may be causing the problem.Just see if you have the write permissions to the folders.This error can also usually occur due to your file size.The size limit is set in php.ini (upload_max_filesize) that maybe blocking your file.

    Thread Starter GenLajoie

    (@genlajoie)

    Hi abinav,

    Thanks for your answer. What is the permission settings I should give? It was set at 755, I tried changing the permissions to wp-contents/theme and /pluggins from 755 to 777, but it fucked with both my wp-admin and my website. Basically, nothing would appear in my navigation browser. So, I put both back to 755.

    I should also mention that I did upload other themes before through my cPanel without problems, and wihout having to do anything to the write permissions.

    Would using FTP instead of cPanel to upload my theme make any difference?

    Thread Starter GenLajoie

    (@genlajoie)

    And one more question. If I want to change the size limits, is that possible? Where is this php.ini file?

    php.ini is not a wordpress file.I think you can usually find it in etc/php.ini or /etc/php5/apache2/php.ini ..
    Try this in php.ini

    upload_max_filesize = 10M ;
    post_max_size = 10M ;

    If it doesn’t work out edit your .htaccess file and try this

    php_value upload_max_filesize 10M
    php_value post_max_size 10M

    Maybe try out uploading it with your ftp client too.

    Thread Starter GenLajoie

    (@genlajoie)

    I did a search in cPanel for php.ini and it doesn’t exist. In etc/ all I find is etc/ftpquota which is empty.

    Which .htaccess file should I modify? the one in public/html or public/html/test? Also, where should I add those lines?

    Also, if it was the size that was the issue with this theme, I would be able to upload again a theme that I already uploaded, right? If it worked once, there’s no reason why the size should be an issue now. But I tried, and it doesn’t work either. I basically cannot upload folders anymore, only single files.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot upload theme to wp-content/themes folder’ is closed to new replies.