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

Fixed Create New Language

Mert

Well-known member
#1
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.
 

Mert

Well-known member
#4
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) {
  }
}
 

Puntocom

Well-known member
#5
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.
 

Floren

Well-known member
#6
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
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"
 

Puntocom

Well-known member
#9
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
 

Mike

XenForo developer
Staff member
#10
If you can, I would recommend redownloading and doing a reinstall. (The redownload is to ensure you get the cache_rebuild.js fix.)
 

Andy.N

Well-known member
#11
If you can, I would recommend redownloading and doing a reinstall. (The redownload is to ensure you get the cache_rebuild.js fix.)
Mike, how do I do a reinstall?
Do the many fixes that you been making since Beta 1 make it to the download yet?
 

Puntocom

Well-known member
#12
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.
 
#14
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?
 

Puntocom

Well-known member
#16
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?
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.