Error on file upload: UPLOAD_ERR_PARTIAL

When I was trying to send a file via the HTML form, I saw “error=3” in the $_FILE variable, what means:
UPLOAD_ERR_PARTIAL – The uploaded file was only partially uploaded.

The php_sapi_name() function returned me ‘apache2filter’.
I removed libapache2-mod-php5filter and installed libapache2-mod-php5.
Now php_sapi_name() returns ‘apache2handler’ and files uploading works good now 🙂

Quickly define the file lines limit and cut the first lines

Use this command if you want to keep only a certain number of the most recent lines in the file without using an additional file.

Replace:
* yourFileName – your filename
* 200 – the number of lines you want to keep

 

[PrestaShop][1.6] Edit the topics of e-mail with informations about order

Target: Edit the topics of e-mail with informations about order in PrestaShop 1.6
File: /classes/order/OrderHistory.php
Class: OrderHistory
Method: addWithemail()
Variable: $topic
Info: This variable contains topic of the e-mail.
Example: Continue reading [PrestaShop][1.6] Edit the topics of e-mail with informations about order