Dale Inverarity
  • Member for 7 years, 7 months
  • Last seen more than a month ago
Why does a Element Criteria Model Query with Strings on a custom element type not filtering?
Accepted answer
5 votes

Found the answer, simple mistake. if ($criteria->code) { $query->andWhere(DbHelper::parseParam('trips.code', $criteria->code, $query->params)); } was needed along with public ...

View answer
PSR-0 Composer Autoloading causing class not found in plugin
Accepted answer
2 votes

Problem was with how composer handles psr-0 and psr-4 autoloading, so by changing the composer.json like such, the classes were loaded. { "autoload":{ "psr-4": {"PluginX\\": "PluginX/"} }, "...

View answer
500 error on admin/actions/elementIndex/getElements
Accepted answer
0 votes

Finally discovered the solution to this, it was as Brad had suggested due to the query - however it was my incidental prepending of the plugin name to the table. ie. "gowander_trips" vs. "trips". ...

View answer