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

Fixed Create New Language

Discussion in 'Resolved Bug Reports' started by Mert, Oct 5, 2010.

  1. Mert

    Mert Well-Known Member

    Hello ,

    I was on the edge of starting a new translation but when i click Create New Language button in admincp i receive . No details within error_log

    Running Php 5.3.3 , nginx 0.8.50 with php-fpm

    Error

    A server error occurred. Please try again later.
     
  2. Puntocom

    Puntocom Well-Known Member

    I have the same problem on Apache.
     
  3. Romchik®

    Romchik® Well-Known Member

    Same problem...
     
  4. Mert

    Mert Well-Known Member

    Just found more details within Server Error Log feature ( just discovered it )
    Code:
    ErrorException: Undefined index: month_10_short - library/XenForo/Locale.php:189
    Generated by: Mert, Yesterday at 11:43
    Stack Trace
    #0 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/Locale.php(189): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/vhosts...', 189, Array)
    #1 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/Locale.php(255): XenForo_Locale::getFormattedDateInternal(Object(DateTime), 'M j, Y', Array)
    #2 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/Model/Language.php(410): XenForo_Locale::getFormattedDate(1286318594, 'M j, Y')
    #3 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/ControllerAdmin/Language.php(39): XenForo_Model_Language->getLanguageFormatExamples()
    #4 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/ControllerAdmin/Language.php(55): XenForo_ControllerAdmin_Language->_getLanguageAddEditResponse(Array)
    #5 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/FrontController.php(303): XenForo_ControllerAdmin_Language->actionAdd()
    #6 /var/www/vhosts/xenturk.com/httpdocs/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #7 /var/www/vhosts/xenturk.com/httpdocs/admin.php(13): XenForo_FrontController->run()
    #8 {main}
    Request State
    array(3) {
      ["url"] => string(42) "http://xenturk.com/admin.php?languages/add"
      ["_GET"] => array(1) {
        ["languages/add"] => string(0) ""
      }
      ["_POST"] => array(0) {
      }
    }
     
  5. Puntocom

    Puntocom Well-Known Member

    Now it works for me but, when Rebuilding cache, I get "An error occurred or the request was stopped." errors

    The new language appears, but when I try to set it as default, it automatically selects English again.
     
  6. Floren

    Floren Well-Known Member

    Nginx will log all your PHP errors. I just forced an error:
    Code:
    2010/10/05 22:11:10 [error] 18646#0: *67 FastCGI sent in stderr: "PHP Fatal error:  Class 'XenForo_Dependencies_Public1' not found in /var/www/xenforo/index.php on line 14
    PHP Stack trace:
    PHP   1. {main}() /var/www/xenforo/index.php:0" while reading response header from upstream, client: 192.168.1.1, server: www.domain.com, request: "GET /xen/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.domain.com"
    
     
  7. Lucas

    Lucas Well-Known Member

    Bug has been reported and fixed for next release according to Mike.
     
    Puntocom likes this.
  8. Mike

    Mike XenForo Developer Staff Member

  9. Puntocom

    Puntocom Well-Known Member

    Thanks. I made the rebuild process in /install but I get:

    An error occurred. Please click the button below for more information. about 5 times

    Later, I go to Create new language -> An error occurred or the request was stopped. about 2 times

    Then, when I click on the circle to set by default, it automatically select back English
     
  10. Mike

    Mike XenForo Developer Staff Member

    If you can, I would recommend redownloading and doing a reinstall. (The redownload is to ensure you get the cache_rebuild.js fix.)
     
  11. Andy.N

    Andy.N Well-Known Member

    Mike, how do I do a reinstall?
    Do the many fixes that you been making since Beta 1 make it to the download yet?
     
  12. Puntocom

    Puntocom Well-Known Member

    Done, now it doesn't give any error, but the problem persists: when I select the new language (I deleted and created it again without errors), in about 1 second, it automatically select English again.
     
  13. Puntocom

    Puntocom Well-Known Member

    I have uncompressed the files in the root directory of XenForo, and then go to http://url/community/install, and chose Rebuild instead of fresh install. I have not loose anything anyway I didn't installed mods.
     
  14. Ingo Baab

    Ingo Baab New Member

    Mike,
    did you think about an "update-Feature" in XenForo?
    Rather then reinstalling XenForo, I would more like to press a "check update" or something and my xen-foro could "bug-fix" itself.
    Piwik and I think Wordpress do it this way..
    Or is it just a "walk" to <url>/install/ what I am suggesting?
     
    Blandt likes this.
  15. Blandt

    Blandt Well-Known Member

    it will take time to set that up... but sounds great
     
  16. Puntocom

    Puntocom Well-Known Member

    In my experience, it's only unzip and rewrite XenForo files, and then go to /install and push Rebuild instead of Fresh install. Very fast.
     

Share This Page