neosin Posted April 11, 2018 Share Posted April 11, 2018 I see this frequently when editing existing PageTable fields within a template (in modal) and also directly in setup>fields>pagefield_name Quote Warning: count(): Parameter must be an array or an object that implements Countable in F:\htdocs\pw3098\wire\modules\Fieldtype\FieldtypePageTable.module on line 278 this function seems to be the culprit /** * Get the Inputfield used for input by PageTable * * @param Page $page * @param Field $field * @return Inputfield * */ public function getInputfield(Page $page, Field $field) { $inputfield = $this->modules->get('InputfieldPageTable'); $value = $page->getUnformatted($field->name); $inputfield->attr('value', $value); $templateID = $field->template_id; if(!$field->parent_id && !empty($templateID) && $page->numChildren > count($value)) { $orphans = $this->findOrphans($page, $field); if(count($orphans)) $inputfield->setOrphans($orphans); } return $inputfield; } Link to comment Share on other sites More sharing options...
BitPoet Posted April 11, 2018 Share Posted April 11, 2018 If you add the error line to https://github.com/processwire/processwire-issues/issues/408 Ryan will no doubt make short work of it. 2 Link to comment Share on other sites More sharing options...
neosin Posted April 11, 2018 Author Share Posted April 11, 2018 @BitPoet ty, wasn't sure where to post Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now