An error when trying to migrate the website to the new hosting

Hello All,

We have tried to migrate the website to a new hosting. Just uploaded the back up, unpacked everything but seems like the website can not be connected to the data base. From the error occurred it seems like the code is older version than the site but it is not a case. The error below.

(mysql): SELECT * FROM sessions WHERE session_id = ‘23d27eed8c0f30a6d261b7ce7a6e101f’
(mysql): select version()
ojs2 has produced an error Message: WARNING: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/eujour5/public_html/lib/pkp/lib/adodb/adodb.inc.php:377) In file: /home/eujour5/public_html/lib/pkp/classes/session/SessionManager.inc.php At line: 60 Stacktrace: Server info: OS: Linux PHP Version: 5.6.30 Apache Version: N/A DB Driver: mysql DB server version: 5.6.35
(mysql): SELECT * FROM site
(mysql): SELECT v.* FROM versions v LEFT JOIN plugin_settings ps ON lower(v.product_class_name) = ps.plugin_name AND ps.setting_name = ‘enabled’ AND ((journal_id = 0) OR v.sitewide = 1) WHERE v.current = 1 AND (ps.setting_value = ‘1’ OR v.lazy_load <> 1)
(mysql): SELECT * FROM journals WHERE journal_id = 1
ojs2 has produced an error Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/eujour5/public_html/lib/pkp/lib/adodb/adodb.inc.php:377) In file: /home/eujour5/public_html/lib/pkp/classes/core/PKPRequest.inc.php At line: 87 Stacktrace: Server info: OS: Linux PHP Version: 5.6.30 Apache Version: N/A DB Driver: mysql DB server version: 5.6.35
(mysql): UPDATE sessions SET user_id = NULL, ip_address = ‘217.16.93.75’, user_agent = ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36’, created = 1490743987, last_used = 1490749364, remember = 0, data = ‘’, domain = ‘eujournal.org’ WHERE session_id = ‘23d27eed8c0f30a6d261b7ce7a6e101f’

Any clue what could be the problem?

Hi @john2,

It looks like your debug option is turned On in config.inc.php; this will cause all SQL queries to be dumped to the user’s browser. I don’t see any errors in the listing; you may just want to turn off debug.

Regards,
Alec Smecher
Public Knowledge Project Team