⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

An error has occurred on uploading.



Lurchi

Lurchi
  • profile picture
  • Member

Posted 09 March 2018 - 11:56 AM

Hi,

 

I get this error when I try to upload a (very small) picture.
On my Xampp installation everything is ok !!


But on the providers webserver I get the message:

"An error has occurred on uploading."

If I look via FTP in the directory
'assets/uploads/files'

the file is uploaded, but there is no entry in the table.

 

The debugger says:
<p>Severity: Warning</p>
<p>Message:  Cannot modify header information - headers already sent by (output started at /homepages/0/dxxxxxxxxxxxx/htdocs/m_und_d/error_db/application/controllers/Main.php:380)</p>
<p>Filename: libraries/Grocery_CRUD.php</p>
<p>Line Number: 1442</p>

 

 

 

 

function simple_upload()
{

    $crud = new grocery_CRUD();
    $crud->set_theme('datatables');
    $crud->set_table('tabImages');
    $crud->set_language("english");
    $crud->columns('headline');

 

    $crud->fields('headline','file_url');
    $crud->set_field_upload('file_url','assets/uploads/files');

 

    $crud->unset_delete();
    $crud->unset_clone();

    $output = $crud->render();
    $this->_example_output($output);
}

 

Anyone an idea ?