0

Have created a module and it works fine on staging and locally but not working on live. The module is installed correctly and enabled. The live config.php and the staging config.php are the same. I used the live db on staging and it is working fine which means is not a db problem.

Also cleared the cache. In my custom module I have a before plugin for Magento\Checkout\Controller\Onepage\Success execute() and overwritten Iways\PayPalPlus\Controller\Order\Create.php.

Looks like the code is never executed. Does anyone know what might be the problem?

5
  • I guess your module is not deployt correctly. did you call setup:di:compile? I stage also running in production mode? or in devloper Commented Jan 15, 2019 at 16:52
  • @PhilippSander Jenskis probably executes setup:di:compile
    – glafche
    Commented Jan 15, 2019 at 17:28
  • Which application mode are you running in local / staging environments? Production? Developer? Try running production mode (assuming live site is running in production mode) in local / staging & check what happens Commented Jan 15, 2019 at 17:44
  • Any error? server error log? Commented Jan 15, 2019 at 19:30
  • "looks like" and "probably" are not helping. you need facts. Commented Jan 16, 2019 at 8:37

1 Answer 1

0

First check how many server for production. If more than one, then you need to commit config.php file too. After that clear cache.

1
  • The config.php is commited. I checked the module is there and enabled
    – glafche
    Commented Jan 15, 2019 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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