Giter Site home page Giter Site logo

No Reason Phrase about yii2-comments HOT 7 CLOSED

kwazaro avatar kwazaro commented on June 25, 2024
No Reason Phrase

from yii2-comments.

Comments (7)

ihorchepurnyi avatar ihorchepurnyi commented on June 25, 2024

I think it's a server error. Please research it in the nginx or apache, dependence on what you are you using.

from yii2-comments.

kwazaro avatar kwazaro commented on June 25, 2024

Yii debugger shows the AJAX post request to /comment/default/create with 424 status (error message appears in browser like javascript alert("No Reason Phrase") with OK button) and comment not added. Maybe it something wrong with pjax, because I have no such errors except this module. I noticed this error on different websites using this module. I have no ability to change server configs (shared hosting), so it's hard to track this error, if it is server side.

from yii2-comments.

kwazaro avatar kwazaro commented on June 25, 2024

Is it possible to totally disable PJAX? I think the problem caused by PJAX.

from yii2-comments.

ihorchepurnyi avatar ihorchepurnyi commented on June 25, 2024

I think you can override comments view, so create the similar but without pjax tags

from yii2-comments.

kwazaro avatar kwazaro commented on June 25, 2024

If I simply remove Pjax "open" and "end" widget calls in comment custom view, than submit button works strange, it becomes blured and page won't refresh. It looks like removing Pjax broke the comment widget itself,

from yii2-comments.

mtangoo avatar mtangoo commented on June 25, 2024

Pjax does things AJAX-ically mean does not need reload. If you disable PJax then you have to write Ajax stuffs yourself

from yii2-comments.

kwazaro avatar kwazaro commented on June 25, 2024

I discovered the problem. Some requests were blocked by ModSecurity. I hope this info will help someone in future:

ModSecurity: Access denied with code 424 (phase 2). Found 3 byte(s) in REQUEST_URI outside range: 1-255. [file "/usr/local/apache2/conf/modsecurity/asl/asl.conf"] [line "32"] [id "390613"] [rev "10"] [msg "RS-2: Invalid character in request or headers"] [severity "CRITICAL"] [hostname "my.domain.com"] [uri "/comment/default/create"] [unique_id "XExy2mp6Hy@T4dhsorbhXQAAAFM"] 

from yii2-comments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.