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?

  • I guess your module is not deployt correctly. did you call setup:di:compile? I stage also running in production mode? or in devloper – Philipp Sander Jan 15 '19 at 16:52
  • @PhilippSander Jenskis probably executes setup:di:compile – Borche Glafche Jan 15 '19 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 – Raul Sanchez Jan 15 '19 at 17:44
  • Any error? server error log? – Muhammad Ayaz Jan 15 '19 at 19:30
  • "looks like" and "probably" are not helping. you need facts. – Philipp Sander Jan 16 '19 at 8:37

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

  • The config.php is commited. I checked the module is there and enabled – Borche Glafche Jan 15 '19 at 17:30

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.