Jump to content

Bulk Actions Uncaught exception 'ReflectionException'


01generator
 Share

Recommended Posts

Hello,

 

I am developing a module that uses the web service of a delivery provider in order to register orders and get delivery reference id. 

 

All is working good until i add bulk action for mass printing of orders.

 

To be precise i did add any code to the bulk actions yet. 

 

All I did is add bulk actions in __construct and the appropriate functions.

$this->bulk_actions = array(
	'printSelected' => array(
		'text' => $this->l('Εκτύπωση επιλεγμένων'),
		'confirm' => $this->l('Να προχωρήσω στη εκτύπωση?')),
	'printSheet' => array(
		'text' => $this->l('Εξαγωγή επιλεγμένων παραγγελιών'),
		'confirm' => $this->l('Να προχωρήσω στη εξαγωγή?')),
);

And the functions

protected function processBulkPrintSelected()
{
	print_r($this->boxes);
}
protected function processBulkPrintSheet()
{
	print_r($this->boxes);
}

Now when I click on one bulk action i get a Fatal Error: Uncaught exception 'ReflectionException' you can see the attachment for more details.

 

Any ideas why this is happening?

 

I developed bulk actions before but i never faced an issue like this!

 

I am developing the module on 1.6.1.0

post-911936-0-12877600-1443426875_thumb.png

Share this post


Link to post
Share on other sites

News Flash! 

 

I upgraded my prestashop release from 1.6.1.0 to the latest 1.6.1.1

 

That solved the problem.

 

1.6.1.0 seems to be little bit buggy for modules as i countered more issues.

 

Anyway if anyone is facing the same issue out there and want a quick solution than debuggin, then upgrading is one. 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More