Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Error tryi...
 
Notifications
Clear all

[SOLVED] Error trying to add a Project

9 Posts
2 Users
0 Reactions
5,532 Views
Daniele
(@pakkes)
Posts: 74
Active Member
Topic starter
 
[#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


 
Posted : 13 May 2019 13H53
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 13 May 2019 21H09
Daniele
(@pakkes)
Posts: 74
Active Member
Topic starter
 

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


 
Posted : 13 May 2019 21H42
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Did you restart PHP after change in php.ini ?


 
Posted : 14 May 2019 11H55
Daniele
(@pakkes)
Posts: 74
Active Member
Topic starter
 

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


 
Posted : 14 May 2019 12H00
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 14 May 2019 12H19
Daniele
(@pakkes)
Posts: 74
Active Member
Topic starter
 

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


 
Posted : 14 May 2019 12H34
babynus
(@babynus)
Posts: 14966
Main Contributor 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)


 
Posted : 14 May 2019 12H58
Daniele
(@pakkes)
Posts: 74
Active Member
Topic starter
 

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


 
Posted : 14 May 2019 14H00
Share:

Scroll to Top