Page 1 of 1

Error Non-static method

Posted: Wed Apr 12, 2017 10:11 am
by jayandrewryan
I have a process that worked in 2.5.1 that is not working in 3.0. The first task is an automated task that gets and sets some data, then passes the process on to the next task. It no longer passes on to the next task. I setup the Last Error and Error Backtrace and Last Error came up with this:

Array ( [type] => 2048 [message] => Non-static method DBAdapter::getStringDelimiter() should not be called statically, assuming $this from incompatible context [file] => /opt/processmaker/workflow/engine/classes/class.case.php [line] => 3231 )

This is at the top of the first trigger. That means it's happening before anything in the trigger, right?

The backtrace contains this:

[res] =>
Array ( [1] => Array ( [TAS_TITLE] => ) ) [__ERROR__] => It is not possible to execute the query. Please contact your system administrator [errorLast] => Array ( [type] => 2048 [message] => Non-static method DBAdapter::getStringDelimiter() should not be called statically, assuming $this from incompatible context [file] => /opt/processmaker/workflow/engine/classes/class.case.php [line] => 3231 )

That isn't exactly helpful. I'm trying to figure out what query is causing this error, but if it happens before the trigger then it seems like it has to be something outside of the process.

Any ideas that might point me in the right direction?

Re: Error Non-static method

Posted: Wed Apr 12, 2017 7:59 pm
by amosbatto
You need to set PHP to ignore E_STRICT. Change your php.ini file so it has this line:
Code: Select all
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Then restart Apache or reboot for the changes to take effect.

Re: Error Non-static method

Posted: Thu Apr 13, 2017 3:13 pm
by jayandrewryan
I forgot to respond. This is already what php.ini looks like and it's still happening.

Re: Error Non-static method

Posted: Thu Apr 13, 2017 8:53 pm
by amosbatto
I would like to test this process to see what is causing the error. Would you mind posting it so I can test it?