René's URL Explorer Experiment


Title: Error when executing Site_Command::create · Issue #392 · wp-cli/entity-command · GitHub

Open Graph Title: Error when executing Site_Command::create · Issue #392 · wp-cli/entity-command

X Title: Error when executing Site_Command::create · Issue #392 · wp-cli/entity-command

Description: Bug Report [ x] Yes, I reviewed the contribution guidelines. [ x] Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When using the command site create, I have the er...

Open Graph Description: Bug Report [ x] Yes, I reviewed the contribution guidelines. [ x] Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When usin...

X Description: Bug Report [ x] Yes, I reviewed the contribution guidelines. [ x] Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When usin...

Opengraph URL: https://github.com/wp-cli/entity-command/issues/392

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when executing Site_Command::create","articleBody":"## Bug Report\r\n\r\n- [ x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\r\n- [ x] Yes, more specifically, I reviewed the guidelines on [how to write clear bug reports](https://make.wordpress.org/cli/handbook/bug-reports/).\r\n\r\n**Describe the current, buggy behavior**\r\n\r\nWhen using the command site create, I have the error :\r\n\r\nBecause this code relies on `get_super_admins()` and that the key 0 is present. (https://github.com/wp-cli/entity-command/blob/main/src/Site_Command.php#L430)\r\n\r\nOn my case, the `get_super_admins` returns :\r\n```\r\nget_super_admins();\r\n=> array(6) {\r\n  [1]=>\r\n  string(8) \"aaaa\"\r\n  [2]=>\r\n  string(8) \"bbb\"\r\n  [3]=>\r\n  string(6) \"ccccc\"\r\n  [4]=>\r\n  string(10) \"dddd\"\r\n  [5]=>\r\n  string(10) \"ffff\"\r\n  [6]=>\r\n  string(15) \"gggg\"\r\n}\r\n```\r\n\r\n**Describe how other contributors can replicate this bug**\r\nI do not know howto replicate this, maybe delete a super admin ?\r\n\r\n**Describe what you would expect as the correct outcome**\r\n\r\nThat the code find the first by using PHP function.\r\n\r\n**Let us know what environment you are running this on**\r\n\r\n```\r\nOS:     Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64\r\nShell:  /bin/bash\r\nPHP binary:     /usr/local/share/php8.0/bin/php\r\nPHP version:    8.0.28\r\nphp.ini used:   /usr/local/share/php8.0/etc/php.ini\r\nMySQL binary:   /usr/bin/mysql\r\nMySQL version:  mysql  Ver 15.1 Distrib 10.8.5-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper\r\nSQL modes:      \r\nWP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli\r\nWP-CLI vendor dir:      phar://wp-cli.phar/vendor\r\nWP_CLI phar path:       /home/recette/www/web\r\nWP-CLI packages dir:    /home/recette/.wp-cli/packages/\r\nWP-CLI cache dir:       /home/recette/.wp-cli/cache\r\nWP-CLI global config:   /home/recette/.wp-cli/config.yml\r\nWP-CLI project config:  /home/recette/www/wp-cli.yml\r\nWP-CLI version: 2.7.1\r\n```\r\n\r\n**Provide a possible solution**\r\n\r\nUsing `reset` to get the first ?\r\n","author":{"url":"https://github.com/Rahe","@type":"Person","name":"Rahe"},"datePublished":"2023-02-21T13:24:56Z","url":"https://github.com/wp-cli/entity-command/issues/392"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a3d2e0d8-9ef1-0ec1-00ae-7eeb823020c7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8072:23725B:E1E7AF:135DE72:6AFB5AFC
html-safe-nonce4fa3e2c0e292482e7448b3ccf3bf9cd09155e0855c96e24067ea702d86cbae8f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDcyOjIzNzI1QjpFMUU3QUY6MTM1REU3Mjo2QUZCNUFGQyIsInZpc2l0b3JfaWQiOiIyMzEyNjY1ODExMzcxMzgzNTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacea34183ee9e179f89288e978f8f93a41f7862cf4e3468900a00af78e8ee4a6e5
hovercard-subject-tagissue:1593481063
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/entity-command/392/issue_layout
twitter:imagehttps://opengraph.githubassets.com/619f65a0db22bf181baa3de643d10dbb59fe5fcc3431301e3b1c78a3283b48a4/wp-cli/entity-command/issues/392
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/619f65a0db22bf181baa3de643d10dbb59fe5fcc3431301e3b1c78a3283b48a4/wp-cli/entity-command/issues/392
og:image:altBug Report [ x] Yes, I reviewed the contribution guidelines. [ x] Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior When usin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRahe
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/wp-cli/entity-command git https://github.com/wp-cli/entity-command.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id87201389
octolytics-dimension-repository_nwowp-cli/entity-command
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id87201389
octolytics-dimension-repository_network_root_nwowp-cli/entity-command
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/wp-cli/entity-command/issues/392#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fentity-command%2Fissues%2F392
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fentity-command%2Fissues%2F392
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wp-cli%2Fentity-command
Reloadhttps://github.com/wp-cli/entity-command/issues/392
Reloadhttps://github.com/wp-cli/entity-command/issues/392
Reloadhttps://github.com/wp-cli/entity-command/issues/392
wp-clihttps://github.com/wp-cli
entity-commandhttps://github.com/wp-cli/entity-command
Codehttps://github.com/wp-cli/entity-command
Issues9 (9)https://github.com/wp-cli/entity-command/issues
Pull requests10 (10)https://github.com/wp-cli/entity-command/pulls
Actionshttps://github.com/wp-cli/entity-command/actions
Security and qualityhttps://github.com/wp-cli/entity-command/security
Insightshttps://github.com/wp-cli/entity-command/pulse
https://github.com/wp-cli/entity-command
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/entity-command/issues/392
New issuehttps://github.com/login?return_to=https://github.com/wp-cli/entity-command/issues/392
#432https://github.com/wp-cli/entity-command/pull/432
Error when executing Site_Command::createhttps://github.com/wp-cli/entity-command/issues/392#top
#432https://github.com/wp-cli/entity-command/pull/432
bughttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22bug%22
command:siteRelated to 'site' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite%22
command:site-createRelated to 'site create' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite-create%22
2.6.0https://github.com/wp-cli/entity-command/milestone/46
https://github.com/Rahe
Rahehttps://github.com/Rahe
on Feb 21, 2023https://github.com/wp-cli/entity-command/issues/392#issue-1593481063
contribution guidelineshttps://make.wordpress.org/cli/handbook/contributing/
how to write clear bug reportshttps://make.wordpress.org/cli/handbook/bug-reports/
https://github.com/wp-cli/entity-command/blob/main/src/Site_Command.php#L430https://github.com/wp-cli/entity-command/blob/main/src/Site_Command.php#L430
danielbachhuberhttps://github.com/danielbachhuber
bughttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22bug%22
command:siteRelated to 'site' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite%22
command:site-createRelated to 'site create' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite-create%22
on Feb 27, 2023https://github.com/wp-cli/entity-command/issues/392#event-8615154518
xknownhttps://github.com/xknown
on Nov 10, 2023https://github.com/wp-cli/entity-command/issues/392#event-10922868416
Site_Command: Do not assume `get_super_admins()` has the `0` arrayhttps://github.com/xknown/entity-command/commit/e8257c65cc179caf037e66cbf0101735beae4b9d
e8257c6https://github.com/xknown/entity-command/commit/e8257c65cc179caf037e66cbf0101735beae4b9d
swissspidyhttps://github.com/swissspidy
completedhttps://github.com/wp-cli/entity-command/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#432https://github.com/wp-cli/entity-command/pull/432
on Nov 10, 2023https://github.com/wp-cli/entity-command/issues/392#event-10923202937
danielbachhuberhttps://github.com/danielbachhuber
2.5.7https://github.com/wp-cli/entity-command/milestone/46
on Nov 10, 2023https://github.com/wp-cli/entity-command/issues/392#event-10924883844
Sign up for freehttps://github.com/signup?return_to=https://github.com/wp-cli/entity-command/issues/392
Sign in to commenthttps://github.com/login?return_to=https://github.com/wp-cli/entity-command/issues/392
bughttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22bug%22
command:siteRelated to 'site' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite%22
command:site-createRelated to 'site create' commandhttps://github.com/wp-cli/entity-command/issues?q=state%3Aopen%20label%3A%22command%3Asite-create%22
2.6.0https://github.com/wp-cli/entity-command/milestone/46
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.