/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zenbu/frameworks/craft/FieldsBase.php(96)
084 { 085 return $out; 086 } 087 088 $sql = Craft\craft()->db->createCommand() 089 ->select('et.*') 090 ->from('entrytypes et') 091 ->queryAll(); 092 093 $output = array(); 094 $field_output = array(); 095 096 if(count($sql > 0)) 097 { 098 foreach($sql as $row) 099 { 100 $fieldLayout = Craft\craft()->fields->getLayoutById( $row['fieldLayoutId'] ); 101 $fields = $fieldLayout->getFields(); 102 103 foreach($fields as $f) 104 { 105 $field_output[$f->field->id] = $f->field->getAttributes(); 106 } 107 108 // ----------------------------------------
#0 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/etc/web/WebApp.php(687): CApplication->handleError(2, "count(): Parameter must be an array or an object that implements...", "/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zen...", 96) 682 if (version_compare(PHP_VERSION, '7', '>=') && $code === 2 && strpos($message, 'should be compatible with') !== false) 683 { 684 return; 685 } 686 687 parent::handleError($code, $message, $file, $line); 688 } 689 690 // Private Methods 691 // ========================================================================= 692 |
#1 |
unknown(0): Craft\WebApp->handleError(2, "count(): Parameter must be an array or an object that implements...", "/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zen...", 96, ...)
|
#2 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zenbu/frameworks/craft/FieldsBase.php(96): count(true) 091 ->queryAll(); 092 093 $output = array(); 094 $field_output = array(); 095 096 if(count($sql > 0)) 097 { 098 foreach($sql as $row) 099 { 100 $fieldLayout = Craft\craft()->fields->getLayoutById( $row['fieldLayoutId'] ); 101 $fields = $fieldLayout->getFields(); |
#3 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zenbu/librairies/Fields.php(20): Zenbu\frameworks\craft\FieldsBase->getFields() 15 var $fields; 16 17 public function __construct() 18 { 19 parent::__construct(); 20 $this->fields = parent::getFields(); 21 } // END __construct() 22 23 // -------------------------------------------------------------------- 24 25 |
#4 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/plugins/zenbu/ZenbuPlugin.php(48): Zenbu\librairies\Fields->__construct() 43 public $fields; 44 45 public function __construct() 46 { 47 $this->basecontroller = new ZenbuBaseController(); 48 $this->fields = new Fields(); 49 } 50 51 public function getName() 52 { 53 return Craft::t('Zenbu'); |
#5 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/services/PluginsService.php(1142): Craft\ZenbuPlugin->__construct() 1137 if (!class_exists($nsClass, false)) 1138 { 1139 return null; 1140 } 1141 1142 $plugin = new $nsClass; 1143 1144 // Make sure the plugin implements the IPlugin interface 1145 if (!$plugin instanceof IPlugin) 1146 { 1147 return null; |
#6 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/services/PluginsService.php(110): Craft\PluginsService->_getPlugin("Zenbu") 105 106 $names = array(); 107 108 foreach ($rows as $row) 109 { 110 $plugin = $this->_getPlugin($row['class']); 111 112 if ($plugin) 113 { 114 $this->_autoloadPluginClasses($plugin); 115 |
#7 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/etc/web/WebApp.php(257): Craft\PluginsService->loadPlugins() 252 253 // If the system is offline, make sure they have permission to be here 254 $this->_enforceSystemStatusPermissions(); 255 256 // Load the plugins 257 $this->plugins->loadPlugins(); 258 259 // Check if a plugin needs to update the database. 260 if ($this->updates->isPluginDbUpdateNeeded()) 261 { 262 $this->_processUpdateLogic(); |
#8 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#9 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/index.php(62): CApplication->run() 57 58 // Load and run Craft 59 // ----------------------------------------------------------------------------- 60 61 $app = require 'bootstrap.php'; 62 $app->run(); |
#10 |
+
–
/srv/users/serverpilot/apps/nicolasbottari-com/public/index.php(19): require_once("/srv/users/serverpilot/apps/nicolasbottari-com/craft/app/index.p...") 14 } 15 16 exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__); 17 } 18 19 require_once $path; |