View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Can't login in v5.0.1 after installation - ProjeQtOr
 

Can't login in v5.0.1 after installation

More
09 Jul 2015 06:57 #1 by potzilov
Hello,

I installed a fresh copy of ProjeQtOr 5.0.1. Configuration went good and after some time I arrived at the login screen. After entering the credentials the following message appears in firefox:
ERROR : main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "User" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition
   in projeqtor.php
   at line 125
I tried to restart Apache and removed sess_* files. After removing sess_* files I manage to arrive at the login screen, but after entering the credentials the story repeats itself.

Apache error log gives the following:
[Thu Jul 09 06:48:38.234719 2015] [:error] [pid 11337] [client ::1:59465] PHP Notice:  A session had already been started - ignoring session_start() in /usr/local/www/projeqtor/tool/projeqtor.php on line 29, referer: http://localhost/projeqtor/view/main.php

The system is FreeBSD-CURRENT, Apache version is 2.4.12, Mysql version is 5.6.24, PHP version is 5.6.10

Any clues as to what I should do?

TIA.

Please Log in or Create an account to join the conversation.

More
09 Jul 2015 09:34 #2 by babynus
Hi,

Strange, it seems there are some characters submitted before session_start().
This could happen if you have characters (spaces or new lines) before tag <?php in :
/view/main.php
/tool/projeqtor.php
/model/User.php
/model/persistence/SqlElement.php
/model/_securityCheck.php
or after ?> ending tag in the three last one (under /model)

I could not find such.
Could you check on your local files ?
Maybe transfer could add extra "not expected" characters.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
09 Jul 2015 11:39 #3 by potzilov
Hi, thank you for the quick reply!
I checked the files you suggested and can state the following:
  • No extra characters are present before the <?php tag.
  • No extra characters are present after the ?> in the mentioned 3 files.
  • There's a carriage return character (^M) visible in Vi in some files. Could that be the issue, even though the character is not before or after the tags you mention?

Please Log in or Create an account to join the conversation.

More
09 Jul 2015 12:29 #4 by babynus
If ^M is not after ?>, I don't think it is the origin of the issue.
But could you please tell me where you found them ? (files, lines, ...)

Also, how did you transfer files ? Unzip on local (windows) conputeut and ftp copy to target ?
Or direct unzip on target ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
09 Jul 2015 13:01 - 09 Jul 2015 13:02 #5 by potzilov
Actually I see the ^M character in all php files (of course I didn't check them one by one, but the ones I checked do have it).
I downloaded the archive using the link on this website (link to SF) to my FreeBSD box and then unzipped the files to the directory where my webserver looks. After that I changed permissions on the files (to be owned by the webserver user).
Last edit: 09 Jul 2015 13:02 by potzilov.

Please Log in or Create an account to join the conversation.

More
09 Jul 2015 13:24 #6 by babynus
Ok,
You did it the best way, so issue may not come from this side.

I just get an idea : could you just try and remuve ?> at the end of /model/User.php file
(I once met an issue with some PHP/Apache versions where closing tag in parameters.php file led to same kind of issue)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.044 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.