A PHP Error was encountered

Severity: Warning

Message: fopen(/var/cpanel/php/sessions/ea-php70/ci_sessionhm2nv8npgt9c27s8lrfcfs9hrrekravm): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 174

Backtrace:

File: /home/teksla5/public_html/application/controllers/Courses.php
Line: 10
Function: library

File: /home/teksla5/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/teksla5/public_html/system/core/Exceptions.php:271)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/teksla5/public_html/application/controllers/Courses.php
Line: 10
Function: library

File: /home/teksla5/public_html/index.php
Line: 315
Function: require_once

MongoDB Unset

Unset a field from Documents

Sample of document, and you want to unset the field “affLink”.

domain.json

{ "_id" : 1,

"domain" : "mkyong.com",

"affLink" : "abc" }

Interested in mastering Mongo DB Training?
Enroll now for FREE demo on Mongo DB Training.

 

To unset a field from all documents, set {multi: true}, else only the field of the first matched document will be removed.

db.domain.update({},{$unset: {affLink:1}},{multi: true});

Output

domain.json

{ "_id" : 1, "domain" : "mkyong.com" }

For indepth understanding click on

 

A PHP Error was encountered

Severity: Warning

Message: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php70)

Filename: Unknown

Line Number: 0

Backtrace: