Nacridan le forum

Forum en lien avec le jeu Nacridan

Vous n'êtes pas identifié(e).

#1 2017-02-28 17:07:16

Korolad
Membre
Inscription : 2015-06-14
Messages : 156

Nouvelle apparence perso

Quand j'essaie d'acheter une nouvelle apparence pour un perso dans la boutique:

"
TPhpErrorException
Description

[Notice] Use of undefined constant MAIN_GAME_PATH - assumed 'MAIN_GAME_PATH' (@line 240 in file /var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php).
Fichier Source

/var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php (240)

0229:                 $indices = $this->DBRadioButtonList2->SelectedIndices;
0230:                 $item = $this->DBRadioButtonList2->Items[$indices[0]];
0231:                 $newSkinRecord = NewSkinRecord::finder()->findByPk($item->Value + 1);
0232:                 
0233:                 if (($newSkinRecord->race != $rowPlayer['racename']) || ($newSkinRecord->gender != $rowPlayer['gender'])) {
0234:                     $this->BuyComment->Text = "<b>La miniature choisie" . $newSkinRecord->race . " n'a pas la race" . $newSkinRecord->gender . " et" . $item->value .
0235:                          " le sexe correspondant au personnage dont vous avez fourni l'identifiant.</b>";
0236:                     return;
0237:                 }
0238:                 $extFileName = ".png";
0239:                 $stringFileName = $this->IDCharacterNS->Text;
0240:                 if (file_exists(MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName)) {
0241:                     $i = 1;
0242:                     $stringFileName = $this->IDCharacterNS->Text . "-" . $i;
0243:                     while (file_exists(MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName)) {
0244:                         $i = $i + 1;
0245:                         $stringFileName = $this->IDCharacterNS->Text . "-" . $i;
0246:                     }
0247:                 }
0248:                 // ------- CREATION OF THE NEW SKIN
0249:                 
0250:                 if (! copy("themes/Basic/images/customized/miniature" . ($item->Value + 1) . $extFileName,
0251:                     MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName))
0252:                     $this->BuyComment->Text = "<b>ERREUR DE COPIE !!! Contactez un administrateur.</b>";

Trace de la pile d'ex閏ution:

#0 /var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php(240): PradoBase::phpErrorHandler(8, 'Use of undefine...', '/var/www/nacrid...', 240, Array)
#1 /var/www/nacridan/gg/prado/framework/TComponent.php(450): ReadProduct->buyProduct(Object(TLinkButton), NULL)
#2 /var/www/nacridan/gg/prado/framework/Web/UI/WebControls/TLinkButton.php(318): TComponent->raiseEvent('OnClick', Object(TLinkButton), NULL)
#3 /var/www/nacridan/gg/prado/framework/Web/UI/WebControls/TLinkButton.php(305): TLinkButton->onClick(NULL)
#4 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(952): TLinkButton->raisePostBackEvent('undefined')
#5 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(267): TPage->raisePostBackEvent()
#6 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(200): TPage->processPostBackRequest(Object(THtmlWriter))
#7 /var/www/nacridan/gg/prado/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#8 /var/www/nacridan/gg/prado/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(ReadProduct), Array)
#9 /var/www/nacridan/gg/prado/framework/TApplication.php(1189): TPageService->run()
#10 /var/www/nacridan/gg/prado/framework/TApplication.php(406): TApplication->runService()
#11 /var/www/nacridan/gg/ggsite/index.php(24): TApplication->run()
#12 {main}

2017-02-28 17:02 Apache/2.2.22 (Debian) PRADO/3.2.0
"

Hors ligne

#2 2017-03-01 16:43:45

Aé Li
Administrateur
Inscription : 2013-11-03
Messages : 3 397

Re : Nouvelle apparence perso

je regarde ce week-end.

Hors ligne

#3 2017-04-19 08:59:35

Martius
Membre
Inscription : 2016-03-10
Messages : 6

Re : Nouvelle apparence perso

Je ne sais pas si tu as regardé, mais j'ai le même problème... et cela dure depuis quelque temps car j'avais attendu pour réessayer...

TPhpErrorException
Description

[Notice] Use of undefined constant MAIN_GAME_PATH - assumed 'MAIN_GAME_PATH' (@line 240 in file /var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php).
Fichier Source

/var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php (240)

0229:                 $indices = $this->DBRadioButtonList2->SelectedIndices;
0230:                 $item = $this->DBRadioButtonList2->Items[$indices[0]];
0231:                 $newSkinRecord = NewSkinRecord::finder()->findByPk($item->Value + 1);
0232:                 
0233:                 if (($newSkinRecord->race != $rowPlayer['racename']) || ($newSkinRecord->gender != $rowPlayer['gender'])) {
0234:                     $this->BuyComment->Text = "<b>La miniature choisie" . $newSkinRecord->race . " n'a pas la race" . $newSkinRecord->gender . " et" . $item->value .
0235:                          " le sexe correspondant au personnage dont vous avez fourni l'identifiant.</b>";
0236:                     return;
0237:                 }
0238:                 $extFileName = ".png";
0239:                 $stringFileName = $this->IDCharacterNS->Text;
0240:                 if (file_exists(MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName)) {
0241:                     $i = 1;
0242:                     $stringFileName = $this->IDCharacterNS->Text . "-" . $i;
0243:                     while (file_exists(MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName)) {
0244:                         $i = $i + 1;
0245:                         $stringFileName = $this->IDCharacterNS->Text . "-" . $i;
0246:                     }
0247:                 }
0248:                 // ------- CREATION OF THE NEW SKIN
0249:                 
0250:                 if (! copy("themes/Basic/images/customized/miniature" . ($item->Value + 1) . $extFileName,
0251:                     MAIN_GAME_PATH . "/pics/map/players/customized/" . $stringFileName . $extFileName))
0252:                     $this->BuyComment->Text = "<b>ERREUR DE COPIE !!! Contactez un administrateur.</b>";

Trace de la pile d'ex閏ution:

#0 /var/www/nacridan/gg/ggsite/protected/pages/shop/product/ReadProduct.php(240): PradoBase::phpErrorHandler(8, 'Use of undefine...', '/var/www/nacrid...', 240, Array)
#1 /var/www/nacridan/gg/prado/framework/TComponent.php(450): ReadProduct->buyProduct(Object(TLinkButton), NULL)
#2 /var/www/nacridan/gg/prado/framework/Web/UI/WebControls/TLinkButton.php(318): TComponent->raiseEvent('OnClick', Object(TLinkButton), NULL)
#3 /var/www/nacridan/gg/prado/framework/Web/UI/WebControls/TLinkButton.php(305): TLinkButton->onClick(NULL)
#4 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(952): TLinkButton->raisePostBackEvent('undefined')
#5 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(267): TPage->raisePostBackEvent()
#6 /var/www/nacridan/gg/prado/framework/Web/UI/TPage.php(200): TPage->processPostBackRequest(Object(THtmlWriter))
#7 /var/www/nacridan/gg/prado/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#8 /var/www/nacridan/gg/prado/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(ReadProduct), Array)
#9 /var/www/nacridan/gg/prado/framework/TApplication.php(1189): TPageService->run()
#10 /var/www/nacridan/gg/prado/framework/TApplication.php(406): TApplication->runService()
#11 /var/www/nacridan/gg/ggsite/index.php(24): TApplication->run()
#12 {main}

2017-04-19 08:54 Apache/2.2.22 (Debian) PRADO/3.2.0

Hors ligne

#4 2017-04-19 20:13:13

Aé Li
Administrateur
Inscription : 2013-11-03
Messages : 3 397

Re : Nouvelle apparence perso

Merci pour le rappel, effectivement je n'avais pas pu le corriger. J'espère que ça sera réglé ce week-end.

Hors ligne

#5 2017-05-26 19:38:28

Martius
Membre
Inscription : 2016-03-10
Messages : 6

Re : Nouvelle apparence perso

Je ne suis pas pressé, mais UP

Hors ligne

#6 2017-05-27 17:05:16

Aé Li
Administrateur
Inscription : 2013-11-03
Messages : 3 397

Re : Nouvelle apparence perso

tu fais bien de le remonter. Je suis en train de regarder grâce à toi ^^

Hors ligne

#7 2017-05-27 17:27:01

Aé Li
Administrateur
Inscription : 2013-11-03
Messages : 3 397

Re : Nouvelle apparence perso

Voila c'est réparé normalement.

Hors ligne

Pied de page des forums