EDIT: I rephrased the question because I have not explained well. Let's see if this time we do best.
I'm working on a very simple blog system in PHP and MySQL through Kohana Framework. For the content of a post / entry I am using TinyMCE (POST request). I recently tried to add an entry with a piece of code in javascript by way of explanation, but it is running a part of it. More specifically I'm "using" the "exec()" inside TinyMCE/textarea (not to run it). Something like:
/regexval/.exec('string');
As I say, the problem is in the call to "exec" and when I send the form Kohana returns me the following message:
TTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: 500.shtm
It seems that there is an internal error which I do not know where. My CPanel error log not showing anything and on localhost it's working properly. I wonder if there is a time when this function can be executed. I tried to debug in stopping Kohana during request execution, but whenever I stop the execution "$_POST" is empty, so I guess the problem is elsewhere.
I suppose it's a rookie mistake, but I do not know what can be and have not found anything about it (maybe I have not looked properly). So if someone can shed some light, I would be grateful. And if it is necessary to provide other information, please let me know.
Thanks for your trouble and sorry for my english.