I am using Taxonomies on my project and added many terms inside main, noow i got problem that on some terms i got blank page when i try to open it. I have looked for error log in modx and says
[2016-05-23 21:35:17] (ERROR @ xxxxx/core/components/taxonomies/model/Base.php : 283) PHP warning: in_array() expects at least 2 parameters, 1 given
What i can do to fix this, anybody got same problem?
This is error i got on server log
[Mon May 23 19:41:30 2016] [warn] [client 178.148.114.186] mod_fcgid: stderr: PHP Fatal error: Call to a member function get() on a non-object in /xxxx/public_html/core/components/taxonomies/model/Base.php on line 255, referer: http://xxxxx/manager/?a=resource/update&id=138
After investigation i found problem here
if ($Terms = $this->modx->getCollectionGraph('PageTerm','{"Page":{}}',$c)) {
foreach ($Terms as $t) {
$out .= '<tr>
<td><a href="'.MODX_MANAGER_URL.'?a=resource/update&id='.$t->get('page_id') .'">'.$t->Page->get('pagetitle').' ('.$t->get('page_id').')</a></td>
<td>'.$t->Page->get('alias').'</td>
</tr>';
}
}
[ed. note: miomir.dancevic last edited this post 7 years, 10 months ago.]