Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
danwarrior

Exception with this Codecanyon module

Question

Hi, guys!

I'm trying a module from Codecanyon for a motorparts site: https://codecanyon.net/item/prestashop-carparts-filter-plugin/9672880

I've installed it and it seems working ok, but at the configuration page it throws this message and I lost a section on the BO product page that I supose is directly related with this error:

[ThirtyBeesException]
Call to undefined method PartsFilter::trans()
at line 275 in file modules/partsfilter/partsfilter.php

270. 							)
271. 						),
272. 					),
273. 				),
274. 				'submit' => array(
275. 					'title' => $this->trans('Save', array(), 'Admin.Actions')
276. 				)
277. 			),
278. 		);
279. 
280. 		$helper = new HelperForm();
PartsFilter->renderForm - [line 154 - modules/partsfilter/partsfilter.php]
PartsFilter->getContent - [line 1648 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore->postProcessCallback - [line 1511 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore->postProcess - [line 251 - classes/controller/Controller.php]
ControllerCore->run - [line 837 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 63 - admin/index.php]

Any idea of what I need to do?

Thank you so much!

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Try instead of 

'title' => $this->trans('Save', array(), 'Admin.Actions')

the following:

'title' => $this->l('Save')

 

Share this post


Link to post
Share on other sites
  • 0
11 minutes ago, wakabayashi said:

Try instead of 


'title' => $this->trans('Save', array(), 'Admin.Actions')

the following:


'title' => $this->l('Save')

 

Thanks for your support! I tryed and get this:

syntax error, unexpected '' (T_STRING), expecting ')'
at line 275 in file modules/partsfilter/partsfilter.php

270. 							)
271. 						),
272. 					),
273. 				),
274. 				'submit' => array(
275. 					'title' => $this->l('Save')
276. 				)
277. 			),
278. 		);
279. 
280. 		$helper = new HelperForm();

Share this post


Link to post
Share on other sites
  • 0

This error doesn't make sense to me. It says unexpected " but there is no " at all. Probably we would have to see more, to solve it.

Share this post


Link to post
Share on other sites
  • 0
9 minutes ago, wakabayashi said:

This error doesn't make sense to me. It says unexpected " but there is no " at all. Probably we would have to see more, to solve it. Was this module developed for an another shop system too? 

I know, is weird... Is a module from Codecanyon, more than 300 websites are using it. But it is for PrestaShop, si isn't so weird something not . working on TB.

Another error I . saw is when I try to search anything on the front, I get this too:

[ThirtyBeesException]

Call to undefined method Search::getSearchParamFromWord()
at line 255 in file override/classes/Search.php

250.         $context);
251. 		die();
252. 		}
253.         foreach ($words as $key => $word) {
254.             if (!empty($word) && strlen($word) >= (int)Configuration::get('PS_SEARCH_MINWORDLEN')) {
255.                 $sql_param_search = self::getSearchParamFromWord($word);
256.                 $intersect_array[] = 'SELECT DISTINCT si.id_product
257. 					FROM '._DB_PREFIX_.'search_word sw
258. 					LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word
259. 					WHERE sw.id_lang = '.(int)$id_lang.'
260. 						AND sw.id_shop = '.$context->shop->id.'

 

***

I'm not sure if I have any override or something, because we had another developer trying to adapt this module, but I deactivated and uninstalled before putting the original again.

In fact, the modules apparently works fine in the BO, it let me assign models to the product, but when I try to search at the front, it doesn't find nothing.

 

Share this post


Link to post
Share on other sites
  • 0

Well I bet this module was developped for 1.7. I could look into it, if I have the ftp and BO access.

Share this post


Link to post
Share on other sites
  • 0
Just now, wakabayashi said:

Well I bet this module was developped for 1.7. I could look into it, if I have the ftp and BO access.

I though that too, even the developer answer something similar to another guy in the comments of the module, time ago. But it says is compatible with 1.6 and there are many people using it.

I wrote him but is taking his time answering... 

Of course, I send you access, thanks!

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

×