Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When "Minify JavaScript Files" is enabled, Magento tries to load non-existent turnto-chatter.min.js file #22

Closed
erikhansen opened this issue Oct 17, 2017 · 1 comment

Comments

@erikhansen
Copy link
Contributor

Issue: When "Minify JavaScript Files" is enabled, Magento tries to load non-existent turnto-chatter.min.js file

Steps to reproduce:

  1. Ensure Magento is running in production mode
  2. Enable and configure TurnTo extension
  3. Enable the "Minify JavaScript Files" on the "STORES > Configuration > ADVANCED > Developer" page
  4. Run bin/magento setup:static-content:deploy
  5. Load a product detail page

Expected results:

  • Page will load without any JS errors

Actual results:

  • Page will have an error like this in the console:
    20-46-22 uovdkhyowwe9byta0desda_3zzbnttnmqfyec1eyddpyteq3rghtpkslzdlpa1eyomo6pmnx7iphitk6qdllhduwl0lilbzjdye_jsvcgqxp46k2per9xg3tp36lcml -9itkl
@erikhansen
Copy link
Contributor Author

erikhansen commented Oct 17, 2017

In order to workaround this issue, running this query should solve the issue:

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)
VALUES ('default', 0, 'dev/js/minify_exclude', 'turnto-chatter.js\ntra.js\n/tiny_mce/');

See this Github comment for more context on why this resolves the issue. Note that running the above query is effectively the same as creating a config.xml file that's mentioned in the Github comment, but it's a simpler way to accomplish the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant