Exception on creating a subforum

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

May 29, 2015 8:45 am
( ! ) Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gamersplane.forums_permissions_group' doesn't exist' in /var/www/gamersplane/forums/acp/process/subforums.php on line 57
( ! ) PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gamersplane.forums_permissions_group' doesn't exist in /var/www/gamersplane/forums/acp/process/subforums.php on line 57
Call Stack
# Time Memory Function Location
1 0.0001 236104 {main}( ) ../dispatch.php:0
2 0.0082 348480 require( '/var/www/gamersplane/forums/acp/process/subforums.php' ) ../dispatch.php:73
3 0.0181 514256 query ( ) ../subforums.php:57
May 29, 2015 12:03 pm
Yeh for typos! Should be 'groups'... I hope that's the only issue.
May 29, 2015 12:12 pm
you should really try some unittests :-) Then those bugs wouldn't hit the users :-)
May 29, 2015 12:50 pm
Actually, this is code I haven't touched on a long time, so I'm surprised it's throwing errors. And yah, automated testing is something I keep meaning to learn but never quite get around to. It's actually kinda intimidating.
May 29, 2015 2:07 pm
Maybe just start with some end to end tests that automatically perform some tasks on your site. Have a development instance and have a script that klicks all the links and fills in the forms.

Here are some links:
Codeception
Canoo Webtest

Edit: Wow they seem both very simple.... I will probably start using one of those myself...
Just go small steps. You could write a test for every bug posted and every new feature. Then it won't be much work at once and you will slowly build up a test base that will save you trouble in the future.
Last edited May 29, 2015 2:15 pm
May 29, 2015 2:21 pm
Wow again :-) With Codeception and the Quickstart guide you can have a running test in 5 minutes ...
http://codeception.com/quickstart
May 30, 2015 1:34 am
This bug if fixed, and yah, I'll look into getting to unit testing.

You do not have permission to post in this thread.