We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

getting 500 error - Smart Captcha | Forum

Marisa
Marisa Jan 30 '15
Installed the plugin, clicked on settings, and got this: 


Error 500

Internal Server Error.

If you are the site admin, click here for details (+)

Something went wrong!

To get the error details follow these steps:

- Open ow_includes/config.php file and set DEBUG_MODE to true

- Reproduce your last action.

Error details:

Type:Exception

Message:SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysite_socnet.soc_smartcaptcha_fonts' doesn't exist

File:/home/mysite/public_html/33/ow_core/database.php

Line:707

Trace:#0 /home/mysite/public_html/33/ow_core/database.php(707): PDOStatement->execute() #1 /home/mysite/public_html/33/ow_core/database.php(305): OW_Database->execute('SELECT * FROM s...', Array) #2 /home/mysite/public_html/33/ow_core/base_dao.php(114): OW_Database->queryForObject('SELECT * FROM s...', 'SMARTCAPTCHA_BO...', Array, 0, Array) #3 /home/mysite/public_html/33/ow_plugins/smartcaptcha/bol/font_dao.php(50): OW_BaseDao->findObjectByExample(Object(OW_Example)) #4 /home/mysite/public_html/33/ow_plugins/smartcaptcha/controllers/admin.php(103): SMARTCAPTCHA_BOL_FontDao->findFontByLangId('1') #5 [internal function]: SMARTCAPTCHA_CTRL_Admin->viewQuestionAnswerList(Array) #6 /home/mysite/public_html/33/ow_core/request_handler.php(266): call_user_func_array(Array, Array) #7 /home/mysite/public_html/33/ow_core/application.php(329): OW_RequestHandler->dispatch() #8 /home/mysite/public_html/33/index.php(73): OW_Application->handleRequest() #9 {main}



Please help!!

The Forum post is edited by Marisa Jan 30 '15
Marisa
Marisa Jan 30 '15
okay, I figured myself what the problem is. You have a bug in install.php. ;)


on line 88:

CREATE TABLE IF NOT EXISTS `ow_smartcaptcha_fonts` (


should be:

CREATE TABLE `' . OW_DB_PREFIX . 'smartcaptcha_fonts` (


because for the folks like me, who's table prefix is not "ow", it's not gonna work.

Mac Fionn
Mac Fionn Mar 5 '15

Quote from Marisa CREATE TABLE `' . OW_DB_PREFIX . 'smartcaptcha_fonts` (
Good on you, Marisa! :)
You do not have permission to reply this topic