Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Print Page - Probleme with create.php

DragonPrime - LoGD Resource Community

Coding Support => Coding Support Desk => Topic started by: Sacha Fournier on January 17, 2006, 12:55:00 PM



Title: Probleme with create.php
Post by: Sacha Fournier on January 17, 2006, 12:55:00 PM
Hi,

I've gone throught all logd installation steps including Apache 2, Mysql 5.1 and PHP5. Everything works fine. I've also gone throught installer.php and didn't get any problems. But when I try to create a new character, I get this error

Field 'specialty' doesn't have a default value
Call Stack:
1: db_query("INSERT INTO isi_accounts ...") called from C:\Program Files\Apache Group\Apache2\htdocs\lotgd-1.0.6\create.php on line 189

I took a look at the code and table structure and notice that a lots of non null collumns is not inserted when creating a new character in create.php

Any ideas ?


Title: Re:Probleme with create.php
Post by: XChrisX on January 17, 2006, 09:12:04 PM
There are some differences between mysql4 and mysql5. Besides others, in mysql4 certain fieldtypes must not have a default value whereas mysql5 allows and requires this.

You'd have to go to you database and manually add empty default values (DEFAULT = '') for those fields.


Title: Re:Probleme with create.php
Post by: Sacha Fournier on January 18, 2006, 05:13:55 AM
Ok. I'll try to replace Mysql 5 to MySQL 4 tonight and let you know. Thanks.


Title: Re:Probleme with create.php
Post by: sachafournier on January 19, 2006, 06:59:27 AM
Hey ! That was the problem. It's working now. Thank you.


Title: Re:Probleme with create.php
Post by: XChrisX on January 19, 2006, 07:01:04 AM
I'm glad, I could help :)

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines