CodeIgniter Forums
Weird Bug "From" word goes 404 page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Weird Bug "From" word goes 404 page (/thread-42648.html)



Weird Bug "From" word goes 404 page - El Forum - 06-14-2011

[eluser]weblizzer[/eluser]
Hello,

I just encounter some weird bug that I found on the CI. Where when I try to save a long text and when there is a word "from" It goes to 404 not on the form action....

Any idea? but when I tried it on the local host it does work.. Is there something wrong with the host provider or?

Thanks


Weird Bug "From" word goes 404 page - El Forum - 06-16-2011

[eluser]Narkboy[/eluser]
Can you post your view and controller together with the long text that causes the issue? Weird one..

/B


Weird Bug "From" word goes 404 page - El Forum - 06-16-2011

[eluser]weblizzer[/eluser]
I'm using codeiginter ver. 1.8.7 and use Doctrine plugin for ORM. Though I made try on the localhost and it works okay but when I put it on the hosting that how it shows. Is it maybe on the hosting or so?

Here is the code:

Code:
function edit_pagecontents($id){
        
        
        if (isset($this->admin)) {                
            if ($this->input->server('REQUEST_METHOD') == "POST"){
                
                if($content = Doctrine::getTable('PageContents')->findOneById($id)){
                    $pcontent = $this->input->post('page_content');    
                    $content->page_title = $this->input->post('page_title');
                    $content->page_content = $pcontent;
                    $content->last_edit = date('Y-m-d H:i:s');
                    $content->save();
                    echo "[removed]parent.$.fancybox.close();[removed]";
                }            
            }
            
                $config['page'] = Doctrine::getTable('PageContents')->findOneById($id);
                $this->load->view('admin/edit_page_content.php', $config);        
            
        }
    }