Giter VIP home page Giter VIP logo

Comments (4)

boldsidney avatar boldsidney commented on August 16, 2024

hi @webdachu,
this looks like a server configuration issue.
If you're using apache, maybe the solution from #16 can help resolve your issue?

from magento2-ordercomments.

webdachu avatar webdachu commented on August 16, 2024

not working

from magento2-ordercomments.

s60v5 avatar s60v5 commented on August 16, 2024

I encountered the same problem, you'll probably have to enable PUT method in your Apache.
I use Directadmin in production environment, and so nothing else but this worked for me: https://help.directadmin.com/item.php?id=700

Cheers

from magento2-ordercomments.

lewisje avatar lewisje commented on August 16, 2024

I just found that this same issue affected two very similar Magento modules I tried (by Ulmod and by Magecomp): All three modules rely on the HTTP PUT method, and the fact that I had been blocking it for security reasons is why they didn't work.

In case anyone added a <Limit PUT DELETE> block to a root-level .htaccess file as a method of cargo-cult security (by copying and pasting from one of the many tutorials and examples on the Web), here's a better way to go about it (assuming no Magento module relies on any HTTP method except for HEAD, GET, POST, and PUT:

  • Replace any <Limit> blocks in the .htaccess file in your Magento root with this, outside of any other blocks:
# PUT is required by a module
<Limit GET POST PUT>
    order allow,deny
    allow from all
</Limit>
<LimitExcept GET POST PUT>
    order deny,allow
    deny from all
</LimitExcept>
  • Include the following block in the .htaccess file in your media directory, and in any other subdirectory that exists on the filesystem and doesn't deal with any checkout code:
<Limit PUT>
    order deny,allow
    deny from all
</Limit>

(Actually, that very first <Limit> block, which just allows everything, might not be strictly necessary.) Anyway, I checked the Apache docs, and this syntax works from the current version of Apache (2.4) all the way back to 1.3; if you use some other Web server, the syntax is different but the idea is the same: Make sure that PUT is allowed in the Magento root and not allowed in certain subdirectories, like media.

from magento2-ordercomments.

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.