1

What is the mistake in my parameter?

protected function _construct()
{
     $this->_init("sync/queue", "id");
}

My sync/queue -> I get

Warning: array_values() expects parameter 1 to be array, object given in C:\xampp\htdocs\magento2x_2\lib\internal\Magento\Framework\Interception\Interceptor.php on line 146

  • If i use $this->_init('Vendor\Module\Model\Queue', 'id'); i get Maximum function nesting level of '200' reached, aborting! in C:\xampp\htdocs\magento2x_2\lib\internal\Magento\Framework\ObjectManager\Config\Config.php on line 157 – Sushivam Jul 20 '16 at 10:25
0

This error is caused from Plug-in configuration from your custom Module, Not the _construct().

Assume you have used Plug-in and missed some method in your module.

Expected the breaking.

    $pluginMethod = 'around' . $capMethod;
    $result = $pluginInstance->$pluginMethod($this, $next, ...array_values($arguments));
    unset($pluginInstance, $pluginMethod);

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.