A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 113

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 280

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 145

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 223

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 303

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 344

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 293

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 303

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 313

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 314

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 315

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: drivers/Session_files_driver.php

Line Number: 94

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 107

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 140

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once

db->query('SELECT * from videos'); $vids= $query->result(); return $vids; } // help to get the verbs public function info($id){ // update the views $this->db->where('id', $id); $this->db->set('views', '`views`+ 1', FALSE); $this->db->update('videos'); // get the information $query = $this->db->query('SELECT * from videos where id='.$id.''); $srch= $query->row(); return $srch; } public function onlyInfo($id){ $query = $this->db->query('SELECT * from videos where id='.$id); $srch= $query->row(); return $srch; } public function vocabmeaning($id){ if($id<1){ $id=0; } $this->db->join('vocab_meaning', 'vocab_meaning.vid = vocab.id'); $this->db->where('vid IN ('.$id.')'); $this->db->group_by('vocab'); $query = $this->db->get('vocab'); /* print 'SELECT *, vocab.id as voId from vocab INNER JOIN vocab_meaning ON vocab.id=vocab_meaning.vid where vocab.id IN ('.$id.')'; die(); $query = $this->db->query('SELECT *, vocab.id as voId from vocab INNER JOIN vocab_meaning ON vocab.id=vocab_meaning.vid where vocab.id IN ('.$id.')'); $query= $query->result(); */ if($query){ $srch= $query->result(); return $srch; } } public function phrasalverb($id){ if($id<1){ $id=0; } $id = ltrim($id,','); $this->db->where('pvid IN ('.$id.')'); $this->db->group_by('verb'); $query = $this->db->get('phrasal_verbslist'); $srch= $query->result(); return $srch; } public function phrase($id){ if($id<1){ $id=0; } $id = ltrim($id,','); $this->db->where('id IN ('.$id.')'); $this->db->group_by('phrase'); $query = $this->db->get('phrase'); $srch= $query->result(); return $srch; } public function getvocab($vocab){ $query = $this->db->query('SELECT * from vocab where id IN ('.$vocab.')'); $srch= $query->result(); return $srch; } public function getverbs($verbs){ if($verbs<1){ $verbs=0; } $this->db->where('id IN ('.$verbs.')'); $this->db->group_by('infinitive'); $query = $this->db->get('verbs'); if($query){ $srch= $query->result(); return $srch; }else{ return false; } } public function fav($id){ $this->load->library('session'); $data = array( 'vid_id' => $id , 'user_id' => $this->session->userdata('id'), 'date' => date('Y-m-d') ); $this->db->insert('fav', $data); //print $this->db->last_query(); } public function unfav($id){ $this->load->library('session'); $this->db->query('DELETE FROM fav where vid_id='.$id.' and user_id='.$this->session->userdata('id').''); //print $this->db->last_query(); } public function favcount($id){ $query = $this->db->query('SELECT count(*) as total from fav where vid_id='.$id.''); $srch= $query->row(); return $srch; } public function isMyFav($id){ $query = $this->db->query('SELECT * from fav where vid_id='.$id.' AND user_id='.$this->session->userdata('id').''); $srch= $query->row(); return $srch; } public function breakdown($id){ $query = $this->db->query('SELECT * from transcript where vid='.$id.''); $srch= $query->row(); return $srch; } public function savedplanscount($id){ $query = $this->db->query('SELECT count(*) as total from saved_plans where vid='.$id.''); $srch= $query->row(); return $srch; } public function savedplan($id){ $query = $this->db->query('SELECT * from saved_plans where id='.$id.''); $srch= $query->row(); return $srch; } public function getAllPlansForVideo($id) { $query = $this->db->query('SELECT users.fname, users.sname, videos.title,saved_plans.order, saved_plans.date as pdate,saved_plans.title as ptitle,saved_plans.id as pid, videos.id as vid FROM (users INNER JOIN saved_plans ON users.id = saved_plans.user_id) INNER JOIN videos ON saved_plans.vid = videos.id WHERE videos.id='.$id); return $query->result(); } } ?>

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/u451388225/domains/teachesl.tv/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 573

Backtrace:

An uncaught Exception was encountered

Type: RuntimeException

Message: /home/u451388225/domains/teachesl.tv/public_html/application/models/Videomodal.php exists, but doesn't declare class Videomodal

Filename: /home/u451388225/domains/teachesl.tv/public_html/system/core/Loader.php

Line Number: 336

Backtrace:

File: /home/u451388225/domains/teachesl.tv/public_html/application/controllers/Esl_lesson_plan_video.php
Line: 59
Function: model

File: /home/u451388225/domains/teachesl.tv/public_html/index.php
Line: 292
Function: require_once