Problem with "cms products" module installation in PrestaShop

I have a problem installing the 'products on cms page' module. I can upload it, but when I click on the green 'install' button the screen flickers and the nothing, comes back to the same. where the module is not installed. This happens on my mamp and on the live test server. 
greetings, 


Explanation of problem with installing module

This is how old version of prestashop behaves, when you try to install a module that tries to apply an override to shop, while the override for the CmsController file already exists.

Simply saying, you installed some module that applied override of CmsController (module that changes the way of how cms pages behave). Because of this prestashop cant install another override that comes from "produtcts on cms' page.

There are two ways to solve the problem
  1. first solution if you dont want to use module that firstly applied an override of CmsController it is enough to just uninstall this module, then install free 'products on cms' module.
  2. second solution if you want to use both modules at the same time. In this case it will be necessary to manually combine two CmsController.php files.
    Override of file is located in directory: /overrides/controllers/front/, the full path to file is: /overrides/controllers/front/CmsController.php. If file exists - this means that some module applied an override. If you will open it, you will see the details about the module that did it.

    Now you have to combine files:
    - /modules/cmsproducts/override/controller/front/CmsController.php
    - /overrides/controller/front/CmsController.php


    This is the only one way to use two these modules at the same time.
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment