Forum

[SOLVED] Error tryi...
 
Notifications
Retirer tout

[SOLVED] Error trying to add a Project

9 Posts
2 Utilisateurs
0 Reactions
5,494 Vu
Daniele
(@pakkes)
Posts: 74
Active Member
Début du sujet
 
[#5975]

Hi,
I've installed Projeqtor 8.0.2 on a Apache 2.4 + Php 7.1.10 environment, on Windows 7 64bit. All ran as expected during installation and first setup.
However, I get an error while adding a new Project. The log tells that ...
2019-05-13 00:39:11.747 ** ERROR ** [V8.0.2] ERROR **
2019-05-13 00:39:11.749
** ERROR ** [V8.0.2] on file 'C:Apache-2.4htdocsprojeqtormodelpersistenceSqlElement.php' at line (2732)
2019-05-13 00:39:11.750
** ERROR ***** [V8.0.2] cause = Event::__construct() expects at least 4 parameters, 0 given
Any suggestion on how to avoid this error?
I first tried to use the 7.4.4 version of Projeqtor and getting the same exact error, so I moved to 8.0.2 ... same result.
Many thanks in advance for your help.
Regards


 
Posté : 13 Mai PM 13:055
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Very stange, you get an error on some line that is called 1000 ties a day on active instance.
Possibly there is soething weird on your PHP Configuration, but I cannot guess what.

Try and remove E_STRICT mode on php.ini

error_reporting = E_ALL


 
Posté : 13 Mai PM 21:055
Daniele
(@pakkes)
Posts: 74
Active Member
Début du sujet
 

Hi.
Many thanks for the immediate reply!!!
I tried your suggestion .... I get same result.
Is there something I can do in order to give you more info about this?
Regards


 
Posté : 13 Mai PM 21:055
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Did you restart PHP after change in php.ini ?


 
Posté : 14 Mai AM 11:055
Daniele
(@pakkes)
Posts: 74
Active Member
Début du sujet
 

Hi,
yes, it shows 32767 with phpinfo(), it should be equal to E_ALL


 
Posté : 14 Mai PM 12:055
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

So we'll have to run some debug.
Can you pkease add 1 line in model/persistence/SqlElement before line 2732, this way :

  public static function getSingleSqlElementFromCriteria($class, $critArray, $withoutDepedentElements=false) {
    debugLog("getSingleSqlElementFromCriteria('$class')");
    $obj = new $class();

Then change logLevel to '3' in parameters.php.
Run projeqtor.
Post here trace found in log file.


 
Posté : 14 Mai PM 12:055
Daniele
(@pakkes)
Posts: 74
Active Member
Début du sujet
 

HI,
I did all actions suggested by you, I attach the log file.
Many thanks for helping me to identify this issue.
Regards


 
Posté : 14 Mai PM 12:055
(@babynus)
Posts: 14952
Membre Admin
 

It seems PECL includes a class Event that sets the mess with ProjeQtOr Event class.
Try and disable PECL.

We'll try and find a fix (renamle Projeqtor Event class)


 
Posté : 14 Mai PM 12:055
Daniele
(@pakkes)
Posts: 74
Active Member
Début du sujet
 

Finally, thanks to your suggestion, I identified and fixed the issue.
The issue was caused by the Php module "Event" which I used along with some Mosquitto installations.
Php Event
I disabled it and now all goes as expected.

Really many thanks for your help.
Regards


 
Posté : 14 Mai PM 14:055
Share:
Retour en haut