OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Possible login trouble with debug ON

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

Possible login trouble with debug ON

Postby DavidRad » Fri Apr 13, 2007 11:42 am

I toggled "debug = On" via the interface and when I attempted to login after a log out, I couldn't find a discernable logon via http://24.161.80.157/mhr/harvester2/index.php/admin.

Here is the output, in case this was an unintentional error (note: error on first line) :

Code: Select all
mysql): SET NAMES 'utf8'   1064: syntax error near 'NAMES 'utf8'' at line 1

                                                adodb_mysql._execute(SET NAMES 'utf8') % line  845, file: adodb.inc.php
                                             adodb_mysql.execute(SET NAMES ?, Array[1]) % line  602, file: adodb-mysql.inc.php
                                          adodb_mysql.setcharset(utf8) % line  154, file: DBConnection.inc.php
                                       dbconnection.connect() % line  117, file: DBConnection.inc.php
                                    dbconnection.initconn() % line   75, file: DBConnection.inc.php

(mysql): SELECT * FROM sessions WHERE session_id = 'c752c23e0494da21af0daa3a7c3e3978' 
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/home/mhr/www/harvester2/lib/adodb/adodb.inc.php:377) in /usr/home/mhr/www/harvester2/classes/session/SessionManager.inc.php on line 57
(mysql): UPDATE sessions SET ip_address = '24.161.80.157', user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3', created = '1176480776', last_used = 1176481486, remember = 0, data = 'username|s:5:\"admin\";', logged_in = 0 WHERE session_id = 'c752c23e0494da21af0daa3a7c3e3978' 
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/mhr/www/harvester2/lib/adodb/adodb.inc.php:377) in /usr/home/mhr/www/harvester2/classes/core/Request.inc.php on line 41
(mysql): UPDATE sessions SET ip_address = '24.161.80.157', user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3', created = '1176480776', last_used = 1176481486, remember = 0, data = 'username|s:5:\"admin\";', logged_in = 0 WHERE session_id = 'c752c23e0494da21af0daa3a7c3e3978'   


It's easy enough to manually turn debug off via config.inc.php, though I though it may have been a bug.

BTW, I did do a cvs update before posting.

Thanks,
DavidRad
 
Posts: 47
Joined: Sun Mar 25, 2007 4:49 pm
Location: Saugerties, NY

Postby asmecher » Fri Apr 13, 2007 12:00 pm

Hi David,

The Harvester isn't meant to run with the debug option on, and the syntax error can be ignored. The debug mode is just used for development purposes, when debugging a problematic database query.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8618
Joined: Wed Aug 10, 2005 12:56 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest