Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome shows RESULT_CODE_INVALID_CMDLINE_URL when other Chromium browsers work fine

I'm writing a WP plugin that makes changes to tags and categories. After making my selections and submitting the form, the page reloads and executes wp_set_post_categories and/or wp_set_post_terms.

It works fine even in other Chromium based browsers, but when I try it in Chrome, it throws the following error:

Error code: RESULT_CODE_INVALID_CMDLINE_URL

There's a "Learn more" link, but nothing happens when I click it.

After refreshing the page, I can see that my script did what it was supposed to do, but I'd like to eliminate this error if possible.

I found this support page about the error code, and I turned on logging to see if that would give me any clues, but I don't really know what to look for.

Please let me know if there is any additional info I can add that might lead to an answer. Thanks!

like image 830
thingEvery Avatar asked Jun 05 '20 09:06

thingEvery


1 Answers

I don't know what might have caused your problem, but I know a problem that causes this error. So even if it is too late someone may benefit from it. I found your question when I was answering a related problem here. you can read it if you want, but in short this happens when an array of length infinity is created. (like a

stackoverflow

). If you want to regenerate such an issue you can use this js code below.

let arr = [];
let arrcounter = 13;
for (let x = 1; x <= arrcounter; x) {
    arr.push(x);
}

This is an infinite loop that adds an element to an array.

This might not be your exact problem, but I hope this helps.

like image 166
EHM Avatar answered Nov 11 '22 09:11

EHM