Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error

OK. I’ve triple-tested this and I am 100% sure that it is being caused by my anti-virus (ESET NOD32 ANTIVIRUS 5). Whenever I disable the Real-Time protection, the issue disappears. Today, I left the Real-Time protection off for 6-7 hours and the issue never occurred. A few moments ago, I switched it back on, only for the … Read more

Where does PHP store the error log? (PHP 5, Apache, FastCGI, and cPanel)

PHP stores error logs in /var/log/apache2 if PHP is an apache2 module. Shared hosts are often storing log files in your root directory /log subfolder. But…if you have access to a php.ini file you can do this: According to rinogo‘s comment: If you’re using cPanel, the master log file you’re probably looking for is stored (by default) at If all else fails … Read more

Deprecated: mysql_connect()

There are a few solutions to your problem. The way with MySQLi would be like this: To run database queries is also simple and nearly identical with the old way: Turn off all deprecated warnings including them from mysql_*: The Exact file and line location which needs to be replaced is “/System/Startup.php > line: 2 … Read more

How to fix ‘Notice: Undefined index:’ in PHP form action

Assuming you only copy/pasted the relevant code and your form includes <form method=”POST”> If _POST is not set the filename variable won’t be either in the above example. An alternative way: In this example filename is set regardless of the situation with _POST. This should demonstrate the use of isset nicely. More information here: http://php.net/manual/en/function.isset.php

How to fix “Headers already sent” error in PHP

No output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. summary ⇊ Otherwise the call fails: Warning: Cannot modify header information – headers already sent (output started at script:line) Some functions modifying the HTTP header are: header / header_remove session_start / session_regenerate_id setcookie / setrawcookie Output can … Read more