Uploads files giving error "An error has occurred on uploading."
- Single Page
Posted 12 July 2012 - 13:13 PM
Posted 12 July 2012 - 15:38 PM
Check your upload folder permitions. If you work with your local machine just set permitions to 0777.
Posted 12 July 2012 - 20:00 PM
Posted 13 July 2012 - 11:52 AM
Posted 14 July 2012 - 19:57 PM
Also perhaps this post will help you with your problem: /topic/473-file-upload-issue/page__p__1939
Posted 16 July 2012 - 10:28 AM
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web103/b1036/ipg.idsgeocom/softwareon/dev/assets/grocery_crud/languages/pt-br.portuguese.php:1)</p>
<p>Filename: libraries/grocery_crud.php</p>
<p>Line Number: 4369</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web103/b1036/ipg.idsgeocom/softwareon/dev/assets/grocery_crud/languages/pt-br.portuguese.php:1)</p>
<p>Filename: libraries/grocery_crud.php</p>
<p>Line Number: 4379</p>
</div>{"success":true,"files":[{"name":"9a339-epc_wall-3.jpg","size":276259,"type":"image\/jpeg","url":"http:\/\/www.softwareon.com.br\/dev\/uploads_imagens\/9a339-epc_wall-3.jpg"}]}
Posted 16 July 2012 - 11:40 AM
Let me know if it works!
Posted 17 July 2012 - 06:42 AM
public function my_function_name()
{
$crud = new grocery_CRUD();
$crud->set_table('your_table_name');
$output = $crud->render();
$this->_example_output($output);
}
and NOT straight away to the view like this:
...
<header>....</header>
<div><?php echo $crud->render(); ?></div>
...
Posted 19 July 2012 - 15:18 PM
And changed the codification to utf-8 without BOM
I doing the calling of the grocery crud in the controller like Johnny sad.
And still no working.
So I have to comment all lines that have -> header(....);
//header('Pragma: no-cache');
//header('Cache-Control: private, no-cache');
//header('Content-Disposition: inline; filename="files.json"');
//header('X-Content-Type-Options: nosniff');
//header('Access-Control-Allow-Origin: *');
//header('Access-Control-Allow-Methods: OPTIONS, HEAD, GET, POST, PUT, DELETE');
//header('Access-Control-Allow-Headers: X-File-Name, X-File-Type, X-File-Size');
And right now is working. And I want to know why the grocery crud have to change the header information and why is no working. I will try it on local host using xampp maybe is an apache error our a php version.
I have to thank for the all help and I hope to solve the problem sun.
Posted 20 July 2012 - 16:48 PM
Little tip if you are on windows use WAMP as I had many problems with XAMPP.
Cheers.
Posted 21 July 2012 - 22:03 PM
Posted 10 October 2012 - 17:58 PM
I need help again for this topic o solved the problem commenting the header information and it was working but right now it stopped to work again and it is showing just 1 as the return and is not uploading. I checked again the permission on the folder and it is 777.
Maybe is something on the php.ini file but I don’t know what it tis.
Posted 11 October 2012 - 02:00 AM
{"success":false,"message":1}
No error.
I update the version of the grocery to see if the error stop but still giving the same message.
Posted 14 October 2012 - 15:14 PM
Posted 15 October 2012 - 16:57 PM
I will try to but grocery crud in my local host and see if it works and than compare the php.ini files with the server version.
Posted 19 January 2013 - 20:04 PM