-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"planet_b_building_id" default value #115
Comments
@MahmutHizal |
Yeni kurulum yaptığım sırada böyle bi hata ile karşılaştım.
Bu hataya rağmen admin paneline eriştim ve admin panelinden yeni bir gezegen oluşturmayı denedim ancak aynı hata ile karşılaştım I saw this issue when I trying to install
although this issue, i was access the admin panel. And tried to create a planet on admin area. But saw the same error |
@MahmutHizal Tek dilde yazmanız yeterlidir. İsterseniz ingilizce isterseniz türkçe iletiniz ben gerekli durumlarda ingilizceye yada ispanyolcaya çevirebilirim. Öncelik ile kurmaya çalıştığınız sürümü ve php bilgilerini rica edeceğim. Eğerki denemiş olduğunuz sürüm 3.0rc ise ne localhost ne de normal bir hosting hizmetinde hata vermemektedir. |
@BeReal86 kullandığım php sürümü 7.0.4-7ubuntu1, MySql sürümü 5.7.12-0ubuntu1 localhost olarak kurmayı deniyorum |
@MahmutHizal Bazı denemeler yaptım fakat kurulum esnasında herhangi bir hata yada db hata kaydına rastlamadım. xampp-win32-7.0.6-0-VC14-installer kullandım. Normal hostinglerde de bir sorun rastlamadım. |
Farklı local programlar ile deneme yapıp sonucunu bildirirseniz iyi olur veya kullandığınız programı söyleyin bizde denemeler yaparız. lakin şuan için bir sorun yoktur. |
Acabo de probar el instalador y lo instala bien... |
Kendi düzenlediğim klonda veritabanı sınıfı olarak laravelin database sınıfını kullanıyorum. Laravel/Database kullanılarak oluşturulan veritabanı tabloları ve veritabanı verilerinde sıkıntı olmuyor ancak saf kurulumda bahsettiğim hata ile karşılaşıyorum parent::$db->create(USERS, function($table){
$table->increments('id');
$table->string('username', 60);
$table->string('password', 32);
$table->string('email', 60);
$table->string('email_permanent', 60);
$table->integer('authlevel')->default(0);
$table->integer('homeplanet');
$table->integer('galaxy');
$table->integer('system');
$table->integer('planet');
$table->integer('current_planet');
$table->string('last_ip', 16)->nullable();
$table->string('ip_at_reg', 16);
$table->text('user_agent');
$table->string('current_page', 20);
$table->text('fleet_shortcuts');
$table->integer('ally_id')->nullable();
$table->integer('ally_request')->nullable();
$table->text('ally_request_text')->nullable();
$table->timestamp('ally_register_time')->nullable();
$table->integer('ally_rank_id')->nullable();
$table->text('settings');
$table->timestamps();
$table->softDeletes();
});``` |
@MahmutHizal A que Nucleo pertenece eso, por que en XG no se encuentra esa función. eso es de 2moons. si es así no damos soporte a esa version. @MahmutHizal At Core belongs to that, because XP is not found this function. That is 2moons. if so, we do not support this version. |
@FGServers I am trying to install clean version of XGP. The code shared by me at last comment, in my forked XGP. |
@MahmutHizal Ok I'll try to see if I can see the error to fix. |
Applied same fix to other fields.
More improvements to solve MySQL not allowing a text column have a default value in MySQL, and not allowing fields to not have a default value.
This issue still go on |
I fixed it like this: ,'planet_b_building_id' => '0',
'planet_b_hangar_id' => '0' find this file: application/libraries/PlanetLib.php Line: 213 ,'planet_b_building_id' => '0',
'planet_b_hangar_id' => '0' |
Confirmado error con las mismas versiones 5.7.16-0ubuntu0.16.04.1 - (Ubuntu) version 10 protocolo. Confirmed error, same versions 5.7.16-0ubuntu0.16.04.1 - (Ubuntu) protocol version 10. MahmutHizal thanks i tray to fix it. |
i tried create first planet(first installation step), show this error:
|127.0.0.1|SQL Error|Database query failed: Field 'planet_b_building_id' doesn't have a default value Last SQL Query:
INSERT INTO xgp_planets SET
planet_name= 'unTouchabLe',
planet_user_id= '1',
planet_galaxy= '1',
planet_system= '1',
planet_planet= '1',
planet_last_update= '1463431187',
planet_type= '1',
planet_image= 'trockenplanet08',
planet_diameter= '10031',
planet_field_max= '100',
planet_temp_min= '184',
planet_temp_max= '224',
planet_metal= '500',
planet_metal_perhour= '90',
planet_crystal= '500',
planet_crystal_perhour= '45',
planet_deuterium= '0',
planet_deuterium_perhour= '0';
|Where called: line 77 of application\core\Database
(in PlanetLib.php)|2016/05/16 23:39:47||
The text was updated successfully, but these errors were encountered: