Forums › Forums › OroCommerce › Install Oro Commerce 4.1
This topic contains 17 replies, has 3 voices, and was last updated by aman.srivastava462 4 years ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- February 6, 2020 at 2:13 am #41363
I am installing orocommerce 4.1 but always i am getting issue, like when i have run the command i will get this issue,
php ./bin/console oro:install –env=prod –timeout=1200i will get this error-
pfa- screenshoterror.pngwhen I have run the command:
php bin/console oro:assets:install –env=prod
i will get the error:
pfa- screenshoterror1.png - CreatorTopic
- AuthorReplies
- February 10, 2020 at 12:51 pm #41369
Hi Aman,
Make sure you have enough memory on a web server where you installing an application. The error occurs because the process is not able to consume enough memory.February 10, 2020 at 10:09 pm #41370Hello Andrey,
as i have checked, i have 49 of gb space available at server, so i think this is not cause.
there is some other reason is there any doc regarding the requirement of instaling orocommerce 4.1February 17, 2020 at 1:59 am #41373By memory, I mean RAM, not disk space.
February 26, 2020 at 7:55 am #41398Hello Andrey,
Now i am getting this error,
While installing, could you please assist,
Assets has not been installed! Please run “php bin/console oro:assets:install”.
Error during install assets:In Process.php line 1250:
The process “‘/usr/local/bin/node’ ‘vendor/oro/platform/build//node_modules
/webpack/bin/webpack.js’ ‘–hide-modules’ ‘–mode=production’ ‘–env.stats=
‘ ‘–env.symfony=prod’ ‘–colors'” exceeded the timeout of 900 seconds.Best Regards
February 27, 2020 at 5:46 am #41399hello Andrey,
any update about the previous question.
and also i have one more question.
In past project i was using requirejsbundle for my project, now i am getting issue because it is removed in Orocommerce4.1 could you please let me know now how can i use require in twig.February 27, 2020 at 6:38 am #41400and also I am getting loadModules is not defined error, could you please let me know how can I defined loadmodules.
February 27, 2020 at 8:52 am #41401Hi,
May be this article will help you https://doc.oroinc.com/backend/configuration/yaml/jsmodules/
Regarding loadModules, it is available once main JS is loaded
<script type="text/javascript" src="/layout-build/default/app.js?version=f86bacfe"></script>
On FrontStore it is included at the end of the page, under the main content.February 27, 2020 at 9:40 pm #41402Hello Hryhorii,
Please help I have loaded this js module, now getting error
my route is: seller/products/add
and in app.js it is searching for route: seller/products/index%200Error getting in console
app.js?version=c7e3df60:711 Uncaught (in promise) Error: Unable to load routes from “undefined”
at app.js?version=c7e3df60:711
at async Promise.all (index 0)February 28, 2020 at 2:16 am #41404The error throw from here https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/NavigationBundle/Resources/public/js/routes-loader.js#L22
That means that routes loader does not have configuration yet. Make sure your inline code is defined in HTML after configuration definition:
But it is highly recommended to avoid writing inline code. Develop your code as page components to avoid such problems. See https://doc.oroinc.com/master/frontend/javascript/ and https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/UIBundle/Resources/doc/reference/page-component.md
February 28, 2020 at 2:35 am #41405Hello but i am getting error,
when i am using loadmodules syntax like this,
loadModules([‘jquery’], function ($) {
$(‘select[name^=”oro_product_step_one[type]”] option[value=”configurable”]’).remove();
});
then getting error while created loadmodules like jquery,
Unable to load routes from “undefined”, where i need pass route in this.
the code is,{% import ‘@OroAsset/Asset.html.twig’ as Asset %}
{{ Asset.js(‘build/app.js’) }}loadModules([‘jquery’], function ($) {
$(‘select[name^=”oro_product_step_one[type]”] option[value=”configurable”]’).remove();
});February 28, 2020 at 3:01 am #41406February 28, 2020 at 3:02 am #41408You are missing config definition
{% placeholder js_modules_config %}
it has to be before
{{ Asset.js('build/app.js') }}
loadModules
is available only after application has started. But configuration with routes definition is needed for application to start. That’s why you get an error even for requiring jquery.Once again, do not use inline scripts. Develop your code as components and views (see documentation), it will ensure, that your code lives in application life cycles. Properly initialized and properly disposed when it is time.
February 28, 2020 at 3:12 am #41411Hello Hryhorii
thanks for the information but I have already added this, but still getting route error.
February 28, 2020 at 3:22 am #41412this template
https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/UIBundle/Resources/views/Assets/oro_js.html.twigis included here https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/UIBundle/Resources/views/Default/index.html.twig#L26
so no need for
loadModules(['oroui/js/app']);
|
and
loadModules(['orouser/js/init-user', ...]);
Once again, consider reading documentation and write your code properly.
loadModules
— is added temporary, to support deprecated code. In a future it going to be removed from global scope at all.February 28, 2020 at 4:02 am #41413but what about this line of code,
loadModules([‘oroui/js/mobile/layout’], function (layout) {layout.init();});
??
- AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.