Title: Got a 412 error
Last modified: August 31, 2016

---

# Got a 412 error

 *  [jalcantar](https://wordpress.org/support/users/jalcantar/)
 * (@jalcantar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/got-a-412-error-1/)
 * Got This error when trying to upload photos to a gallery
 * **412 Error**
    Your request got filtered out due to possible security issues.
   One or more things in your request were suspicious (defective request header,
   invalid cookies, bad parameters) If you think you did nothing wrong: try again
   with a different browser avoid any evil characters inside the request url If 
   you are the owner of the website, you can consider revising the rules of the 
   mod_security module or turning it off from your Web Hosting Control Panel.
 * I’m fascinated with the last album widget, but can’t upload images.
 * Thanks
 * [https://wordpress.org/plugins/awesome-photo-gallery/](https://wordpress.org/plugins/awesome-photo-gallery/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [CodeBrothers](https://wordpress.org/support/users/codebrothers/)
 * (@codebrothers)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/got-a-412-error-1/#post-6966649)
 * Hi Jalcantar,
 * Thanks for your support topic.
 * We’ve never seen this message before. Are you able to upload images in your Media
   library?
 * If not, it may be an issue with your web host.
 * Please let me know if the media library is working as expected.
 *  Thread Starter [jalcantar](https://wordpress.org/support/users/jalcantar/)
 * (@jalcantar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/got-a-412-error-1/#post-6966751)
 * Hi CodeBrothers, ther is no way I can make this plugin works,
 * the logs of the modsecurity show this:
 * 2016-01-22 05:30:40.331426 ModSecurity: **XXX.XXX.XXX.XXX** Access denied with
   code 412 (phase 2). Pattern match “(?:< ?i?frame ?src ?= ?(?:ogg|gopher|data|
   php|zlib|(?:ht|f)tps?):/|(?:\\.add|\\@)import |asfunction\\:|background-image\\:
   |e(?:cma|xec)script|\\.fromcharcode|get(?:parentfolder|specialfolder)|\\.innerhtml
   |\\< ?input|(?:/|<) ?(?:java|live|j|vb)script!s| …” at ARGS:apg_photos. [file“/
   services/mod_security-rules/10_asl_rules.conf”] [line “1055”] [id “340149”] [
   rev “154”] [msg “Atomicorp.com WAF Rules: Potential Cross Site Scripting Attack”][
   data “<input”] [severity “CRITICAL”] [uri ” [hostname “entregrillosychapulines.
   com”]”]/wp-admin/edit.php
 * Where **XXX.XXX.XXX.XXX** it’s my IP, so, basickly the server protection kicks
   in, and asumes that the plugin it’s tryng to cross site scripting, from my own
   IP.
 *  [pmdelgado1](https://wordpress.org/support/users/pmdelgado1/)
 * (@pmdelgado1)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/got-a-412-error-1/#post-8427746)
 * Hello Jalcantar,
    I was checking my server’s setting this morning, and I noticed
   the ModSecurity turned on blocking access under the 412 code. Check your server,
   and see if it is turned on; and look a the logs to see if you were blocked, and
   contact your server provider to see what triggered it. Hope this helps.
 * Pedro M

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Got a 412 error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/awesome-photo-gallery_e19372.svg)
 * [Awesome Photo Gallery](https://wordpress.org/plugins/awesome-photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-photo-gallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [pmdelgado1](https://wordpress.org/support/users/pmdelgado1/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/got-a-412-error-1/#post-8427746)
 * Status: not resolved