PHP code snippet causes page 404 in WordPress -


i facing strange issue wordpress. when put line code snippet in blog post:

$app = require_once __dir__.'/../bootstrap/app.php'; 

i 404 error when try preview page, , wont able save post @ if make line of code incorrect example, remove last 'e' require, way:

$app = requir_once __dir__.'/../bootstrap/app.php'; 

everything works fine. code somehow executing , causing problems?

your web host has paranoid web application firewall (most mod_security) enabled, rules block requests contain data looks php code.

contact web host , request turn feature off.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -