Laravel : Mengatasi Error FatalErrorException in Collection.php line 11: Interface ‘Illuminate\Contracts\Queue\QueueableCollection’ not found

Hari ini saya mendapat error di sistem saya yang memakai laravel, errornya ialah :

FatalErrorException in Collection.php line 11: Interface ‘Illuminate\Contracts\Queue\QueueableCollection’ not found

Akhirnya saya nemu solusinya di stackoverflow, yaitu dengan download file  QueueableCollection.php di link :

https://github.com/illuminate/contracts/blob/master/Queue/QueueableCollection.php

Saya tadi buat file dan copas…jreng..selesai….masalah solved.

Referensi :

http://stackoverflow.com/questions/37695774/laravelfatalerrorexception-in-collection-php-line-11-interface-illuminate-con

http://stackoverflow.com/questions/37695774/laravelfatalerrorexception-in-collection-php-line-11-interface-illuminate-con

 

Error CodeIgniter : A PHP Error was encountered Severity: Warning Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php Line Number: 117

Malam ini saya ada error di aplikasi codeigniter saya :

A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

 

Dan setelah browsing nemu caranya yaitu :

  1. Masuk ke file config.php di application/config/config.php
  2. ubah settingan
    $config['sess_save_path'] = null 
    menjadi 
    $config['sess_save_path'] = sys_get_temp_dir();

 

Dan Alhamdulillah solved…..

 

Referensi :

http://stackoverflow.com/questions/31042456/when-i-want-to-use-session-in-codeigniter-it-says-error-why

CodeIgniter Error : Only variable references should be returned by reference

Setelah Install php terbaru versi 5.6.5  saya menjalankan aplikasi php saya ada error :

A PHP  Error Was Encountered

Severity : Notice

Message : Only variable references should be returned by reference

Filename : Core/Common.php

Line Number : 257

Padahal sebelumnya tidak ada error

Setelah browsing2 akhirnya saya ubah kodenya :

dari :

return $_config[0] =& $config;

Menjadi :

return $config;

Dan Alhamdulillah berjalan normal seperti biasa tanpa error ….

Referensi :

http://indrayn.com/codeigniter-message-only-variable-references-should-be-returned-by-reference/