Skip to content

Magneto error: “Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider”

So when I install Magento using DirectAdmin all goes well. When I go to the website I get the error “Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider”. I… Read More »Magneto error: “Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider”

Getting ` 1452 Cannot add or update a child row: a foreign key constraint fails` on Magento 2.4.7-p1

I did a magento update from 2.4.6-p3 -> 2.4.7-p1 and now I cannot create programmatically a product. Once I am doing: $product = $this->product->setData($productData); $this->resourceModelProduct->save($product); I’m getting this error message: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a… Read More »Getting ` 1452 Cannot add or update a child row: a foreign key constraint fails` on Magento 2.4.7-p1