I made the installation of OHS successfully, but when I enter, the following error
DB Error: ERROR: column “enabled” does not exist LINE 4: AND ps.setting_name = “enabled” ^
Stack Trace:
File: /var/www/html/ohsuis/lib/pkp/classes/site/VersionDAO.inc.php line 228
Function: DAO->retrieve(“SELECT v.* FROM versions v LEFT JOIN plugin_settings ps ON …”, Array(0), False)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 257
Function: VersionDAO->getCurrentProducts(Array(0))
File: /var/www/html/ohsuis/lib/pkp/classes/plugins/PluginRegistry.inc.php line 98
Function: PKPApplication->getEnabledProducts(“plugins.generic”)
File: /var/www/html/ohsuis/lib/pkp/classes/core/Dispatcher.inc.php line 126
Function: PluginRegistry->loadCategory(“generic”, True)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 176
Function: Dispatcher->dispatch(Object(Request))
File: /var/www/html/ohsuis/index.php line 65
Function: PKPApplication->execute()
The server configuration is
-Redhat Enterprise Linux 7
-PHP 5.4.16 (cli)
-Apache versión 2.4.6
-Versión 9.2.23 de PostgreSQL
I already made the line change, but now the following error is displayed
DB Error: ERROR: argument of NOT must be type boolean, not type smallint LINE 5: … WHERE current = 1 AND (ps.setting_value OR NOT v.lazy_loa… ^
Stack Trace:
File: /var/www/html/ohsuis/lib/pkp/classes/site/VersionDAO.inc.php line 228
Function: DAO->retrieve(“SELECT v.* FROM versions v LEFT JOIN plugin_settings ps ON …”, Array(0), False)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 257
Function: VersionDAO->getCurrentProducts(Array(0))
File: /var/www/html/ohsuis/lib/pkp/classes/plugins/PluginRegistry.inc.php line 98
Function: PKPApplication->getEnabledProducts(“plugins.generic”)
File: /var/www/html/ohsuis/lib/pkp/classes/core/Dispatcher.inc.php line 126
Function: PluginRegistry->loadCategory(“generic”, True)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 176
Function: Dispatcher->dispatch(Object(Request))
File: /var/www/html/ohsuis/index.php line 65
Function: PKPApplication->execute()
I already made the line change, but now the following error is displayed
DB Error: ERROR: operator does not exist: text = integer LINE 5: WHERE current = 1 AND (ps.setting_value=1 OR v.lazy_loa… ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Stack Trace:
File: /var/www/html/ohsuis/lib/pkp/classes/site/VersionDAO.inc.php line 228
Function: DAO->retrieve(“SELECT v.* FROM versions v LEFT JOIN plugin_settings ps ON …”, Array(0), False)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 257
Function: VersionDAO->getCurrentProducts(Array(0))
File: /var/www/html/ohsuis/lib/pkp/classes/plugins/PluginRegistry.inc.php line 98
Function: PKPApplication->getEnabledProducts(“plugins.generic”)
File: /var/www/html/ohsuis/lib/pkp/classes/core/Dispatcher.inc.php line 126
Function: PluginRegistry->loadCategory(“generic”, True)
File: /var/www/html/ohsuis/lib/pkp/classes/core/PKPApplication.inc.php line 176
Function: Dispatcher->dispatch(Object(Request))
File: /var/www/html/ohsuis/index.php line 65
Function: PKPApplication->execute()
Hmm, your PostgreSQL is being extremely picky – I wonder if you’re not using an especially pedantic version of it? You may need to quote the 1, i.e. ps.setting_value='1'. If you have some SQL skills, please experiment with this further – it’s slow and error-prone for me to do so remotely
Regards,
Alec Smecher
Public Knowledge Project Team
After saving the change, I try to access the URL and it presents the STATUS 500 error, and I restore the change in the file VersionDAO.inc, and I make the modification ‘1’ to 1, it works again.