[How to solve] – CodeIgniter Error : Only Variable References Should Be Returned By Reference

Previously I had heard and seen on several issues regarding this. One of them is this forum. And it turns out I experienced the same thing.  See the error on the image below.


I was trying to fix the error code and discover the error message. Seen this line which is the source of the error. You can open this file “/system/core/Common.php”.


You can quickly turn it into like this.


And now try to refresh your web browser. You can continue the your project now.

Source : http://forum.codeigniter.com/thread-60436.html


[How to solve] – Fatal error : Maximum execution time of 300 seconds exceeded

Sometimes when we want to learn a source code to the database we are given an SQL dump to be studied again. Some time ago, I was studying the structure of the data from MySQL given by my friend. However I find this error message when I try to import them to my device.  “Fatal error : Maximum execution time of 300 seconds exceeded” . as seen in the picture. Happen to my office devices using windows.


After I trace the error message, I know why it happened. and it turns out the default PHPMyAdmin configuration. And then open this file xampp\phpmyadmin\config.inc.php . Search line code and set value :

$cfg['ExecTimeLimit'] = 6000;

And then open this file xampp\php\php.ini . Search line code and set value this according to the needs.

post_max_size = 128M
upload_max_filesize = 128M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 128M

And then open this file xampp\mysql\bin\my.ini . Search line code and set value this according to the needs.

max_allowed_packet = 200M

Do not forget to save all configurations. Please restart the web server and the database server.  You can tried to import data SQL. If there are criticisms and suggestions, or a more serious problem on this matter, you can tell me. I hope be useful.