Override of jscomposer and passcms modules problem

When i try to activate the module i got this error message "Cannot enable module passcms. Unable to install override: The method initContent in the class CmsController is already overridden by the module jscomposer version 4.4.8 at 2018-08-23 17:01:24 ."

I know this due to an incompability between the cms password plugin and visual composer but i have you got a fix ?

Solution for Override of jscomposer and passcms installation procedure


Hello
Module "passcms" is based on prestashop's feature dedicated for modules named "override". Override is a kind of programming mechanism that allows to change the way of how prestashop's default features work.
PrestaShop allows to use only one override of selected features (in this case override of cms page).

In your store you previously installed module named "jscomposer" that applied an override of cms page feature.
This means that it will be not possible to install all other modules that use the same override (passcms module also uses cms page override - this is why you cant install it).

There are two solutions for the problem you have

depending on your expectactions you can use two solutions for the problem.

  1. You do not need "jscomposer" module
    if you do not need to use 'jscomposer' module it is enough to just uninstall it. Then you will be able to install any other module that applies an override of cms page (so you will have possibility to install passcms addon)
  2. You need "jscomposer" module
    if you need to use jscomposer module it will be necessary to combine two overrides that these modules use into one.
    Simply saying, it will be necessary to create one file with overrides,
    - /modules/jscomposer/overrides/front/CmsController.php
    - /modules/passcms/overrides/front/CmsController.php
    and move it to this path: /overrides/controllers/front/CmsControllers.php

    thanks to this it will be possible to install and use both modules at the same time.


if you are not tech-savvy i am able to provide support,
in this case i will need an access to your shop back office with possibility to upload module.


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