D&D 5e character sheet

Be sure to read and follow the guidelines for our forums.

Sep 13, 2015 3:09 pm
I created a new D&D 5e PC. Now I've put in his stats and I'm trying to save but it keeps giving me a page full of code. I've pasted the code below. Here is a link to the character sheet in question.

UPDATE: I am now able to fill in 1 field and save, fill in another field and save. We'll see what happens.
Quote:
object(MongoWriteConcernException)[5]
protected 'message' => string 'localhost:27017: The dotted field 'Ranger (U.A. variant)' in 'classes.Ranger (U.A. variant)' is not valid for storage.' (length=118)
private 'string' (Exception) => string '' (length=0)
protected 'code' => int 57
protected 'file' => string '/var/www/gamersplane/includes/characters/Character.class.php' (length=60)
protected 'line' => int 176
private 'trace' (Exception) =>
array (size=4)
0 =>
array (size=6)
'file' => string '/var/www/gamersplane/includes/characters/Character.class.php' (length=60)
'line' => int 176
'function' => string 'update' (length=6)
'class' => string 'MongoCollection' (length=15)
'type' => string '->' (length=2)
'args' =>
array (size=3)
...
1 =>
array (size=6)
'file' => string '/var/www/gamersplane/includes/characters/dnd5/dnd5Character.class.php' (length=69)
'line' => int 333
'function' => string 'save' (length=4)
'class' => string 'Character' (length=9)
'type' => string '->' (length=2)
'args' =>
array (size=0)
...
2 =>
array (size=6)
'file' => string '/var/www/gamersplane/characters/process/editCharacter.php' (length=57)
'line' => int 12
'function' => string 'save' (length=4)
'class' => string 'dnd5Character' (length=13)
'type' => string '->' (length=2)
'args' =>
array (size=0)
...
3 =>
array (size=4)
'file' => string '/var/www/gamersplane/dispatch.php' (length=33)
'line' => int 73
'args' =>
array (size=1)
...
'function' => string 'require' (length=7)
private 'previous' (Exception) => null
private 'host' (MongoCursorException) => null
private 'document' =>
array (size=4)
'ok' => boolean true
'nModified' => int 0
'n' => int 0
'writeErrors' =>
array (size=1)
0 =>
array (size=3)
...
public 'xdebug_message' => string '( ! ) MongoWriteConcernException: localhost:27017: The dotted field 'Ranger (U.A. variant)' in 'classes.Ranger (U.A. variant)' is not valid for storage. in /var/www/gamersplane/includes/characters/Character.class.php on line 176
Call Stack
# string 'localhost:27017' (length=15)

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /var/www/gamersplane/includes/characters/Character.class.php:177) in /var/www/gamersplane/includes/functions.php on line 160
Call Stack
# Time Memory Function Location
1 0.0001 291392 {main}( ) ../dispatch.php:0
2 0.0047 407872 require( '/var/www/gamersplane/characters/process/editCharacter.php' ) ../dispatch.php:73
3 0.0063 539672 dnd5Character->save( ) ../editCharacter.php:12
4 0.0072 547056 Character->save( ) ../dnd5Character.class.php:333
5 0.0087 567336 displayJSON( ) ../Character.class.php:180
6 0.0087 567480 header ( ) ../functions.php:160
{"saved":true,"characterID":980}
( ! ) Warning: Cannot modify header information - headers already sent by (output started at /var/www/gamersplane/includes/characters/Character.class.php:177) in /var/www/gamersplane/characters/process/editCharacter.php on line 13
Call Stack
# Time Memory Function Location
1 0.0001 291392 {main}( ) ../dispatch.php:0
2 0.0047 407872 require( '/var/www/gamersplane/characters/process/editCharacter.php' ) ../dispatch.php:73
3 0.0089 547472 header ( ) ../editCharacter.php:13
Last edited September 13, 2015 3:12 pm
Sep 13, 2015 3:28 pm
Managed to complete the character sheet so I'm all good. Leaving this up anyway just in case you still want to look into it. Thanks! :-)
Sep 13, 2015 5:32 pm
That is a weird bug. I'll look into it...

You do not have permission to post in this thread.