0

I want to know that is something about structure changed in magento 2.2 that extension of magento 2.1.8 (tested) not working on it ? I have to change something to run on it ?

  • As far i know there is no change in module structure , did you tried to use that extension in V-2.2 ? – inrsaurabh Mar 30 '18 at 13:48
  • @inrsaurabh yes I ran and some weird errors happen like Exception #0 (ReflectionException): Class TemplateMonster\Megamenu\Model\Attribute\Backend\Configurator does not exist – Learner Mar 30 '18 at 13:55
  • Share your complete error log , so that someone can see and i think it related to `TemplateMonster\Megamenu` you can contact them too if you can. – inrsaurabh Mar 30 '18 at 13:58
2

Learner if your extension after install in Magento2.2 getting a synchronization related error so you can first make upgrade data script and use can save Json format data like -:

{"type":"Magento\\Rule\\Model\\Action\\Collection","attribute":null,"operator":"=","value":null}


public function serializeFun($value)
{
    $objManager = \Magento\Framework\App\ObjectManager::getInstance();
    $productMetadata = $objManager->get('Magento\Framework\App\ProductMetadataInterface');
    if ($productMetadata->getVersion() > '2.2.0') {
        $serialize = $objManager->create('Magento\Framework\Serialize\Serializer\Json');
        $conditions = $serialize->unserialize($value->getConditionsSerialized());
    } else {
        $conditions = unserialize($value->getConditionsSerialized());
    }
    return $conditions;
}

then you have get a synchronization error first you remove indexer function in your model file after you can use json format data.

  • Is Possible magento 2.0.0 theme support for magento 2.1.7? – zus Mar 31 '18 at 10:02
  • yes also use but some theme related customization required. – Tushar Apr 2 '18 at 3:59
  • Can i get study material for this. – zus Apr 2 '18 at 7:37
  • where I need to write that all things ?\ – Learner Apr 3 '18 at 7:07
  • your thing write in our Model or Controller then you can write this function in our helper file and you can call any file please you can use this function. – Tushar Apr 21 '18 at 6:43
0

having no logs in the question makes it hard to indicate a certain issue so:

  1. Have a look on the logs to see details about your case
  2. Check this official docs to get more details about the changes happened as there's several major changes between Magento 2.1 and 2.2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.