Jump to content
Sign in to follow this  
Osvaldas

Module bug

Recommended Posts

I updated my prestashop from 1.3 to 1.4.6.2. So now i want to install slider, I have uploaded that module files via ftp to modules folder. Then go to back office- modules- click install and nothing happens? whats wrong with it? Need emergency help :) thanks!

Youtube link-

Share this post


Link to post
Share on other sites

Hi,

 

try to turn on display errors in config/config.inc.php

 

@ini_set('display_errors', 'on');
define('_PS_DEBUG_SQL_', true);

 

Maybe the slider module is not compatible with 1.4 ...

Share this post


Link to post
Share on other sites

I got Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/baldinis/domains/baldinis.lt/public_html/modules/carouselfeatured/classes/CategoryDao.php on line 29.

 

In CategoryDao.php lines there is this code:

24 class CategoryDao{

25

26 private static $NON_EMPTY_CATEGORY_QUERY = null;

27

28 public function __construct(){

29 if ($this::$NON_EMPTY_CATEGORY_QUERY == NULL)

30 {

31

$this::$NON_EMPTY_CATEGORY_QUERY =

'SELECT DISTINCT c.id_category FROM '._DB_PREFIX_.'category c

JOIN '._DB_PREFIX_.'category_product cp ON c.id_category=cp.id_category

WHERE c.active = 1 AND cp.id_product IS NOT NULL';

 

}

}

 

what is wrong?

Share this post


Link to post
Share on other sites

you must correct these lines:

 

line 47:

 

if ($nonEmptyCategoryIds = Db::getInstance()->ExecuteS($this->$NON_EMPTY_CATEGORY_QUERY)){

 

line 88:

 

$psLangDefault = Configuration::get('PS_LANG_DEFAULT');

Share this post


Link to post
Share on other sites

Okey, we are one step closer :)) After editing line 47 and 88, I managed to install the module. But now there is another problem :( In front office there is error:

Fatal error: Call to undefined function str_getcsv() in /home/baldinis/domains/baldinis.lt/public_html/modules/carouselfeatured/carouselfeatured.php on line 122

 

In back office, when I click configure that module, I get

Fatal error: Cannot access empty property in /home/baldinis/domains/baldinis.lt/public_html/modules/carouselfeatured/classes/CategoryDao.php on line 29

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
Sign in to follow this  

×

Important Information

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