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
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.
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?
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).
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)
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Paramétrages de cookies
×
Cookies fonctionnels
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
Veuillez vous connecter pour voir vos activités!
Autres cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.