Exceeded number of allowed args on initial commit
-
In attempting to do an initial commit of the entire WordPress install of an existing site, I ran up against what appears to be a hard limit on the number of arguments allowed on this site’s host (Dreamhost).
The error title was “418 Unused” and the error log contained this:
ModSecurity: Access denied with code 418 (phase 2). Operator GT matched 3000 at ARGS. The log then referenced a mod_sec .conf file.The existing site had +-4700 files to commit, and I’m guessing from the error message that Dreamhost has a limit of 3000 arguments.
I tried committing the files in chunks by unstaging everything but one top-level directory, like wp-admin. Subsequent to the commit, though, I couldn’t get Revisr to see all the remaining files as untracked. It was showing 0 untracked files.
The method that worked for me was to add everything to .gitignore and then unignore one directory at a time. Over a number of commits, I manged to get the whole site committed.
This seemes like something that could happen on other hosts, and I don’t know if you can test for this situation, but it is an impediment to committing the entire WordPress install of an existing site in one go.
Cheers
- The topic ‘Exceeded number of allowed args on initial commit’ is closed to new replies.