-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Please add administrator user as optional parameter to bin/magento setup:upgrade #1671
Comments
@nagno it is possible to specify an admin username during CLI install: http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-install.html Is this what you are referring to? |
Hi @mbrinton01, bin/magento help setup:upgrade
Usage:
setup:upgrade [--magento-init-params="..."]
Options:
--magento-init-params Add to any command to customize Magento initialization parameters
For example: "MAGE_MODE=developer&MAGE_DIRS[base][path]=/var/www/example.com&MAGE_DIRS[cache][path]=/var/tmp/cache"
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question |
@nagno Thank you for reporting this issue, we have created MAGETWO-41500 to track this internally. |
Thanks! |
Hello, @nagno! How did you create a CMS page? I created a simple module and added creation of CMS page in setup script. |
Hi @BaDos, We have a code like this: $page = $this->pageFactory->create()->load($pageData['identifier'], 'identifier');
if (!$page->getId()) {
$page->setIdentifier($pageData['identifier']);
}
$page->setTitle($pageData['title']);
$page->setPageLayout($pageData['page_layout']);
$page->setMetaKeywords($pageData['meta_keywords']);
$page->setMetaDescription($pageData['meta_description']);
$page->setContentHeading($pageData['content_heading']);
$page->setContent($pageData['content']);
$page->setIsActive($pageData['is_active']);
$page->setStores($pageData['stores']);
$page->setSortOrder($pageData['sort_order']);
$page->save(); |
I think, this issue was reported before we started to log the issues to the partner portal. Do you want me to report it on the partner portal instead of github? |
@nagno do you still have this issue in the latest version? |
Hi @piotrekkaminski, |
@piotrekkaminski - I can confirm the issue on the merchant beta 5 version. |
I opened a partner portal ticket (#02570269), probably that will help to get support on it. @piotrekkaminski I'm really sad it was closed without any explanation. :( |
Re opened the issue for more clarification. @nagno @adragus-inviqa can you confirm if you are still having issues ? @mazhalai Can you share the status of the internal ticket please ? |
I tried to reproduce it one time, but I wasn't successful with a single setup script, however I'm quite sure the issue is there. I think, it is happening when you have multiple scripts and they somehow causes this issue. Also it might be from upgrade script. We had the issue on our project, where we had many setup scripts. |
@nagno any update on this? |
Hi @mazhalai -- UPDATE -- |
@nagno That sounds like a plan. Closing this issue, since it will be handled via partner portal |
[EngCom] Public Pull Requests - 2.2-develop - MAGETWO-83279: Magento 2.2.0 Solution for Cross-sell product placeholder image size … #12018 - MAGETWO-83270: 11700: "Something Went Wrong" error for limited access admin user #11993 - MAGETWO-83085: fix #8846: avoid duplicated attribute option values #11785
Hello!
We tried to create a cms page from setup script and it seems, there is no clean way to do it with the merchant beta version.
The issue is caused by the observer in the VersionsCms module. The new CMS page is always going to be handled like a version controlled CMS page (https://github.com/magento/magento2ee/blob/f37c9d7bea3ff2300dc38f2e426f0f447b6c4c4d/app/code/Magento/VersionsCms/Model/Backend/Observer.php#L274) and it requires a logged in admin user (https://github.com/magento/magento2ee/blob/f37c9d7bea3ff2300dc38f2e426f0f447b6c4c4d/app/code/Magento/VersionsCms/Model/Backend/Observer.php#L291)
It would be a lot easier to implement these kind of setup scripts, if we have an admin user loaded by default.
Could you please consider to add the optional parameter for the administrator username like the sample data installer works at the moment?
Thanks!
The text was updated successfully, but these errors were encountered: