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

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -