1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't import styles

Discussion in 'Troubleshooting and Problems' started by Robert F Schmitz, Nov 22, 2011.

  1. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Using RC1. Upload information and go to import style and get the following error message:

     
  2. Mike

    Mike XenForo Developer Staff Member

    This either means that that uploaded file couldn't be read or that no uploaded file was actually received (or if it was, it couldn't be read). Can you upload a new avatar?

    This likely represents a server misconfiguration, so you would need to ask your host about it. (Unfortunately, they may need more technical details to go on, and I can provide a script to do that if necessary.)
     
    Rob Fritz likes this.
  3. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    I will check into that Mike.
     
  4. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Tried replacing my avatar and it states that the file is too large for the server to process. Image size is 32KB.

     
  5. Mike

    Mike XenForo Developer Staff Member

  6. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Tried the htaccess approach and no luck. Sent a support email.
     
  7. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    OK was shown where and how to edit my php5.ini file. Added what tech support told me to but still get the same error when uploading an avatar. Can't try the style until I get home.

    My php5.ini file now:
    Code:
    memory_limit = 50M
    php5_value post_max_size = 30M
    file_uploads = On
    php5_value upload_max_filesize = 30M
     
    register_globals=off
    magic_quotes_gpc=off
     
  8. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    This is something that has come to light recently so I will upgrade to the stable version released, tonight and follow up here.
     
  9. Mike

    Mike XenForo Developer Staff Member

    If you're putting stuff in your own php.ini, you shouldn't have "php5_value" in it - just the name = value part.
     
  10. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Tried it without but had the same error. Added it and no change.

    Removed the additional items and have ...

    Code:
    memory_limit = 50M
    post_max_size = 30M
    file_uploads = On
    upload_max_filesize = 30M
     
    register_globals=off
    magic_quotes_gpc=off
    when trying to install a style.
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Upload a phpinfo file to your forum directory to make sure those new values are working. A phpinfo file is just a PHP file with this code:

    Code:
    <?php
    
    phpinfo();
    
     
    Rob Fritz likes this.
  12. Brogan

    Brogan XenForo Moderator Staff Member

    No need for that ;)

    It's available at admin.php?tools/phpinfo
     
    Rob Fritz likes this.
  13. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    Yup they are set correctly.
     
  14. Lykke

    Lykke Well-Known Member

    We had that problem - and for some reason we had to increase some space on the server (I believe - I will point Peter to this thread to explain what he did because he is handling all the more advanced tech :) )
     
    Rob Fritz likes this.
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I'm still gonna call this a server configuration problem.

    Can you confirm the value of upload_tmp_dir in your phpinfo? Make sure that directory exists and is writable. If it is "no value" then it should default to /tmp on the server in which case you need to make sure that directory exists and is writable. Also make sure the partition is not full. You can check the partitions by running this shell command:

    Code:
    df
    
     
  16. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    upload_tmp_dir is set as no value
     
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In that case:

     
    Rob Fritz likes this.
  18. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    OK back. Am doing this while getting ready for work. I do not have shell access; shared hosting. Is there another way to tell?
     
  19. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Maybe. Try creating a PHP script with this code:

    PHP:
    <?php

    echo '<pre>';
    system("df");
    echo 
    '</pre>';
    Upload the file to your server and visit the URL. That may work.

    Otherwise you will have to contact your host and ask them to make sure the /tmp directory is OK.
     
    Rob Fritz likes this.
  20. Robert F Schmitz

    Robert F Schmitz Well-Known Member

    I added a line to the php5 file to the tmp directory and now all works! :) Thanks to all.
     

Share This Page