<![CDATA[ [SOLVED] PHX triggers event log: $modx->recordCount() is deprecated function - My Forums]]> https://forums.modx.com/thread/?thread=95507 <![CDATA[Re: [SOLVED] PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518872 Quote from: atmmarketing at Jan 20, 2015, 11:20 PM
Quote from: danilocuculic at Jan 20, 2015, 07:27 AM
Here you go: https://github.com/Eoler/PHx
That worked, thanks. Does someone need to submit a PR to the original author? And perhaps to have this rolled into the version distributed with MODX?

I've submitted an issue: https://github.com/extras-evolution/PHx/issues/2
(original commit had too many things going at once)

PHx is an extra and probably shouldn't go into base distribution...]]>
danilocuculic Jan 21, 2015, 02:12 AM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518872
<![CDATA[Re: PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518852 Quote from: danilocuculic at Jan 20, 2015, 07:27 AM
Here you go: https://github.com/Eoler/PHx

That worked, thanks. Does someone need to submit a PR to the original author? And perhaps to have this rolled into the version distributed with MODX?]]>
atmmarketing Jan 20, 2015, 05:20 PM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518852
<![CDATA[Re: PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518793 Quote from: atmmarketing at Jan 20, 2015, 05:57 AM
Well, we upgraded to PHx 2.2 and while it contained quite a bit of updated code, it still retains a few lines of deprecated functions:

Ooops, I forgot that deprecation fix wasn't in original repository.
Here you go: https://github.com/Eoler/PHx]]>
danilocuculic Jan 20, 2015, 01:27 AM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518793
<![CDATA[Re: PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518779
assets/plugins/phx/phx.parser.class.inc.php(line:323)
$result= $modx->dbQuery($sql);


assets/plugins/phx/phx.parser.class.inc.php(line:324)
if ($modx->recordCount($result) == 1) {


assets/plugins/phx/phx.parser.class.inc.php(line:328)
} else if ($modx->recordCount($result) == 0){ // If snippet not found, look in the modifiers folder


The MODX System Log still generates errors like this:

$modx->dbQuery() is deprecated function
]]>
atmmarketing Jan 19, 2015, 11:57 PM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-518779
<![CDATA[Re: PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-516927 Quote from: atmmarketing at Dec 17, 2014, 10:03 PM
Does this mean PHX needs updating? It also appears to be used by AjaxSearch as well.

Yes: https://github.com/extras-evolution/PHx]]>
danilocuculic Dec 18, 2014, 12:34 AM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-516927
<![CDATA[ [SOLVED] PHX triggers event log: $modx->recordCount() is deprecated function]]> https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-516907
} else if ($modx->recordCount($result) == 0){ // If snippet not found, look in the modifiers folder


This only appears to have started happening after installing the MODX 1.0.15 update.

Does this mean PHX needs updating? It also appears to be used by AjaxSearch as well.]]>
atmmarketing Dec 17, 2014, 04:03 PM https://forums.modx.com/thread/95507/phx-triggers-event-log-modx--recordcount-is-deprecated-function#dis-post-516907