DbInstall standard error

2 views
Skip to first unread message

Matt Edmonds

unread,
Apr 3, 2011, 5:17:44 AM4/3/11
to cis605
When I run my dbInstall file, I get these errors:

Installing Tables...

Strict Standards: Non-static method dbEventType::createTable() should
not be called statically in C:\xampp\htdocs\cis605-donate\db-control
\dbInstall.php on line 56
Added table 'EventType' successfully...

It throws one for every 'createTable()' method I try to run, but then
afterword it prints the successful message.

Is this something I should be worried about? Im posting to see If any
of the other DB managers ran into something like this.

-Matt

Aaron Jarzombek

unread,
Apr 3, 2011, 9:56:18 AM4/3/11
to cis605
If you look in mySql are the tables actually added? Your successful
print out might be in the wrong spot in your code, so if it fails it
might print out successful instead of an error.

Chris

unread,
Apr 3, 2011, 12:41:13 PM4/3/11
to cis605
Thats not an error, but a warning.

Looks as though you copied i2c dbinstall without understanding what it
does, look at their dbxxx create functions and youll see why you get
the warning

Chris

unread,
Apr 3, 2011, 1:51:12 PM4/3/11
to cis605
Sorry lost half that message,

They use static functions "static function createTable()" we do not,
static functions are functions that are only visible to other
functions in the same file

Matt Edmonds

unread,
Apr 3, 2011, 2:04:43 PM4/3/11
to cis...@googlegroups.com
Already fixed it.

Chris

unread,
Apr 3, 2011, 2:04:57 PM4/3/11
to cis605
Actually ignore this "static functions are functions that are only
visible to other
functions in the same file "
Its for another language, Im not familiar with its use in PHP
Reply all
Reply to author
Forward
0 new messages