svn[1305] PHP errors

Posts from previous Beta sessions

svn[1305] PHP errors

Postby maqjav » Wed Sep 05, 2007 6:55 pm

I have the next php errors when i open the info char.
lib/item.php
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
Warning line 920: preg_match() [function.preg-match]: Empty regular expression
addons/info/inc/char.lib.php
Notice line 2155: Undefined index: lifetime
Last edited by maqjav on Thu Sep 06, 2007 1:38 am, edited 2 times in total.
maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

svn[1305] PHP errors

Postby ds » Thu Sep 06, 2007 1:49 am

I need more information to solve this issue. A link to this page would be great.

** edit: I figured it out anyhow. The problem is I need to know what Armor kits look like in esES

in english they look like:
Reinforced (+32 Armor)


Thanks!
-ds
Last edited by ds on Thu Sep 06, 2007 1:52 am, edited 1 time in total.
Image
ds
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 297
Joined: Sat Jul 08, 2006 9:58 am

svn[1305] PHP errors

Postby maqjav » Thu Sep 06, 2007 2:41 am

maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

svn[1305] PHP errors

Postby ds » Thu Sep 06, 2007 2:48 am

File: localization/esES.php
Line: 576
Find:
Code: Select all
$lang['tooltip_preg_reinforcedarmor']='';


Change to:
Code: Select all
$lang['tooltip_preg_reinforcedarmor']='$lang['tooltip_preg_reinforcedarmor']='/(Reforzado\s\(\+\d+\sarmadura\))/i';


Thanks again...

-ds
Last edited by ds on Thu Sep 06, 2007 2:59 am, edited 1 time in total.
Image
ds
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 297
Joined: Sat Jul 08, 2006 9:58 am

svn[1305] PHP errors

Postby maqjav » Thu Sep 06, 2007 2:55 am

Good eye :).
But it continues with the errors.

I'm going to comprobate the translations:
$lang['tooltip_preg_armor']='/^(\d+) armadura/';
$lang['tooltip_preg_durability']='/Durabilidad (\d+) \/ (\d+)/';
$lang['tooltip_preg_madeby']='/\<Hecho por (.+)\>/'; // this is the text that shows who crafted the item. don't worry about the pattern just post me the text I will make the pattern.
$lang['tooltip_preg_bags']='/(\d+) de casillas/'; // text for bags, ie '16 slot bag'
$lang['tooltip_preg_socketbonus']='/Bonus ranura: (.+)\n/';
$lang['tooltip_preg_classes']='/^(Clases:) (.+)/'; // text for class restricted items
$lang['tooltip_preg_races']='/^(Razas:) (.+)/'; // test for race restricted items
$lang['tooltip_preg_charges']='/(\d+) cargas/'; // text for items with charges
$lang['tooltip_preg_block']='/(\d+) (Bloqueo)/'; // text for shield blocking values
$lang['tooltip_preg_emptysocket']='/Hueco (rojo|amarillo|azul|meta)/'; // text shown if the item has empty sockets.
$lang['tooltip_preg_reinforcedarmor']='/(Reforzado\s\(\+\d+\sarmadura\))';
$lang['tooltip_preg_tempenchants']='/(.+\s\(\d+\s(min|sec)\))\n/';


Maybe i need some help because im lost with so much code.
Last edited by maqjav on Thu Sep 06, 2007 2:56 am, edited 1 time in total.
maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

svn[1305] PHP errors

Postby ds » Thu Sep 06, 2007 3:00 am

My mistake. Please change it to the edited pattern above. :oops:
Image
ds
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 297
Joined: Sat Jul 08, 2006 9:58 am

svn[1305] PHP errors

Postby maqjav » Thu Sep 06, 2007 3:17 am

Well done mate! :D

Now it only has the last error
addons/info/inc/char.lib.php
Notice line 2155: Undefined index: lifetime
maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

svn[1305] PHP errors

Postby ds » Thu Sep 06, 2007 3:24 am

The last error I will need to investigate further. I didn't write that part so I do not know the problem off hand. I'll follow up when I fix it.
Image
ds
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 297
Joined: Sat Jul 08, 2006 9:58 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron