Jump to content

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-

Link to comment
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?

Link to comment
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

Link to comment
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
×
×
  • Create New...