Hello,
as soon as i log-in (after the installation process) i have the following error:
ERROR : Invalid access attempt
the log shows:
2014-01-08 08:49:53 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 192.168.16.45
2014-01-08 08:49:53 ===== TRACE ===== IP CLient=192.168.16.45
2014-01-08 08:49:53 ** ERROR ** EXCEPTION **
2014-01-08 08:49:53 ** ERROR ** on file '/var/www/TEST/Shared/vers/projeqtor_4.1.1/tool/projeqtor.php' at line (99)
2014-01-08 08:49:53 ** ERROR ** cause = Invalid access attempt
2014-01-08 08:49:53 ** ERROR ***** => #0 /var/www/TEST/Shared/vers/projeqtor_4.1.1/view/main.php (10) -> require_once()
I have installed (installation ended successfully) projeqtor on a Centos 64 bit with php5.3 .
Doing a bit of debug.. adding echo get_class($user)."
"; to projeqtor.php (line 93) i have :
__PHP_Incomplete_Class
can some one help me ?
thanks
The most probable is that you retrived PHP session from other application.
Be sure to clean PHP session (clean cookies, remove files in PHP temp directory) and try again.
Hello,
i clean all caches, session ... (also the server one) but still the same error. It is a problem to istall it under /somedirectory/projects/ ?
here below the print of the object $user:
object(__PHP_Incomplete_Class)#1 (32) { ["__PHP_Incomplete_Class_Name"]=> string(4)
"User" ["_col_1_2_Description"]=> NULL
["id"]=> string(1) "1"
["name"]=> string(5) "admin"
["email"]=> NULL
["password"]=> string(32) "21232f297a57a5a743894a0e4a801fc3"
["_spe_buttonSendMail"]=> NULL
["idProfile"]=> string(1) "1"
["locked"]=> string(1) "0"
["loginTry"]=> string(1) "0"
["isLdap"]=> string(1) "0"
["_spe_image"]=> NULL ["isContact"]=> string(1) "0"
["isResource"]=> string(1) "0"
["initials"]=> NULL
["resourceName"]=> NULL
["idle"]=> string(1) "0"
["description"]=> NULL
["_col_2_2_Affectations"]=> NULL
["_spe_affectations"]=> NULL
["_arrayFilters"]=> array(0) { }
["_arrayFiltersDetail"]=> array(0) { }
["salt"]=> NULL ["crypto"]=> string(3) "md5"
["_accessControlRights":"User":private]=> NULL
["_accessControlVisibility"]=> NULL
["_affectedProjects":"User":private]=> NULL
["_affectedProjectsIncludingClosed":"User":private]=> NULL
["_visibleProjects":"User":private]=> NULL
["_visibleProjectsIncludingClosed":"User":private]=> NULL
["_hierarchicalViewOfVisibleProjects":"User":private]=> NULL
["_hierarchicalViewOfVisibleProjectsNotClosed":"User":private]=> NULL }
hope could be of help.
It is a problem to istall it under /somedirectory/projects/ ?
No
Issue is that you retrive $user with class __PHP_Incomplete_Class, meaning class cannot be identified.
This happens when session_start() is called before __autoload or called twice.
This is not the case, as projeqtor.php starts with spl_autoload_register, then session_start.
Moreover, application is running fine for most users. So I think you have another application running, with an asynchronous process, that initialises session before the __autoload is defined.
Just to ber sure :
what version or PHP are you running ?
What stack are you running ? (WAMP, Easy PHP, other)
Do you have other applications on same server ? Could you try with projeqtor running alone on a server ?
Hello,
i know that it is very strange but i do not understand what happen. My configuration is an apache virtualhost and i use the following version of mysql/php/apache on a centos 6 64 bit server:
mysql-5.1.61-1.el6_2.1.x86_64
httpd-2.2.15-15.el6.centos.1.x86_64
php-5.3.3-27.el6_5.x86_64
Do you have other applications on your php server ?
Hello,
the virtualhost hosting projeqtor has currently another simple php app that, however, it is not used (it is a test server).
Hi,
Could you just try with no other application ?
sorry for late reply but i was really busy ...
i try to install it on the main server (where i have no other applicaiton installed), still the same problem. any idea ?
thanks
You could try to force class loading for User : in /tool/projeqtor.php, add line before session_start() so that first lines look like :
<?php
spl_autoload_register('projeqtorAutoload', true);
include_once('../model/User.php');
session_start(); // Setup session. Must be first command.
at the end also this did not work.
then i set-up a virtual machine from scratch and install projeqtor ... it works at first try !!! i do not know whats happen on the original system but now is working.
thanks a lot for your help.