MESSAGE: Trying to get property of non-object
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 202
DEBUG INFO:
197
198
199
200
201 $output->currentArticle = $this->da->getArticleById($input->articleId);
202 $output->source = $this->da->getSourceBySourceId($output->currentArticle->source);
203 if( isset($output->currentArticle->creator_uid) )
204 $output->creator = $this->da->getUserById($output->currentArticle->creator_uid);
205
206
207
MESSAGE: Trying to get property of non-object
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 212
DEBUG INFO:
207
208
209 #/* Prepare breadcrumbs */
210 #$this->da->dropBreadcrumb($this->da->getLanguageById($output->currentArticle->language_id), SGL_Url::makeLink('viewLanguage', 'learn', 'learn').'language_id/'.$output->currentArticle->language_id);
211 /* Breadcrumb dropping */
212 switch($output->currentArticle->type) {
213 case EPHISTO_TYPE_ARTICLE_EXTERNAL:
214 $output->pageTitle = $this->pageTitle = $output->currentArticle->title;
215 $this->da->dropBreadcrumb($this->da->getLanguageById($output->currentArticle->language_id), SGL_Url::makeLink('viewLanguage', 'learn', 'learn').'language_id/'.$output->currentArticle->language_id);
216 $this->da->dropBreadcrumb(SGL_String::translate('Latest news from the world'), SGL_Url::makeLink('view', 'read', 'learn').'language_id/'.$output->currentArticle->language_id);
217 $this->da->dropBreadcrumb(substr($output->currentArticle->title, 0, 25).'...', SGL_Url::makeLink('article', 'read', 'learn').'language_id/'.$output->currentArticle->language_id);
MESSAGE: Trying to get property of non-object
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 228
DEBUG INFO:
223 $this->da->dropBreadcrumb($this->da->getLanguageById($output->currentArticle->language_id), SGL_Url::makeLink('viewLanguage', 'learn', 'learn').'language_id/'.$output->currentArticle->language_id);
224 $this->da->dropBreadcrumb($output->currentArticle->title, SGL_Url::makeLink('article', 'read', 'learn').'language_id/'.$output->currentArticle->language_id);
225 break;
226 }
227
228 if( $output->currentArticle->type!=EPHISTO_TYPE_ARTICLE_EXTERNAL )
229 $output->currentArticle->text = nl2br($output->currentArticle->text);
230 /*
231 * Get proper parent type, and check to see if the
232 * target_id is finished.
233 */
MESSAGE: Trying to get property of non-object
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 229
DEBUG INFO:
224 $this->da->dropBreadcrumb($output->currentArticle->title, SGL_Url::makeLink('article', 'read', 'learn').'language_id/'.$output->currentArticle->language_id);
225 break;
226 }
227
228 if( $output->currentArticle->type!=EPHISTO_TYPE_ARTICLE_EXTERNAL )
229 $output->currentArticle->text = nl2br($output->currentArticle->text);
230 /*
231 * Get proper parent type, and check to see if the
232 * target_id is finished.
233 */
234 $parent_type = $output->currentArticle->parent_type;
MESSAGE: Undefined property: stdClass::$parent_type
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 234
DEBUG INFO:
229 $output->currentArticle->text = nl2br($output->currentArticle->text);
230 /*
231 * Get proper parent type, and check to see if the
232 * target_id is finished.
233 */
234 $parent_type = $output->currentArticle->parent_type;
235 $parent_id = $output->currentArticle->parent_id;
236 if( $parent_type==0 || $output->currentArticle->scope=='global' ) {
237 $parent_type = EPHISTO_TYPE_USER;
238 $parent_id = SGL_Session::getUid();
239 }
MESSAGE: Undefined property: stdClass::$parent_id
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 235
DEBUG INFO:
230 /*
231 * Get proper parent type, and check to see if the
232 * target_id is finished.
233 */
234 $parent_type = $output->currentArticle->parent_type;
235 $parent_id = $output->currentArticle->parent_id;
236 if( $parent_type==0 || $output->currentArticle->scope=='global' ) {
237 $parent_type = EPHISTO_TYPE_USER;
238 $parent_id = SGL_Session::getUid();
239 }
240
MESSAGE: Undefined property: stdClass::$type
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 241
DEBUG INFO:
236 if( $parent_type==0 || $output->currentArticle->scope=='global' ) {
237 $parent_type = EPHISTO_TYPE_USER;
238 $parent_id = SGL_Session::getUid();
239 }
240
241 if( in_array($output->currentArticle->type, array(EPHISTO_TYPE_LISTEN_TASK,EPHISTO_TYPE_GAME_TASK, EPHISTO_TYPE_ARTICLE_TASK, EPHISTO_TYPE_SENDMESSAGE_TASK)) ) {
242 $output->addOnLoadEvent('sitepalSayMessage(document.getElementById(\'plaintext\').innerHTML, true);');
243 $action_type = EPHISTO_ACTION_FINISHED;
244 }else {
245 $action_type = EPHISTO_ACTION_READ;
246 }
MESSAGE: Undefined property: stdClass::$type
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 256
DEBUG INFO:
251 header('Location: //learn/action/viewLanguage/');
252 exit();
253 }
254 }
255
256 if( $this->da->isFinished(SGL_Session::getUid(), $parent_type, $parent_id, $output->currentArticle->type, $input->articleId, $action_type) )
257 $output->finished = true;
258 else
259 $output->finished = false;
260 $output->files = $this->da->getFilesByParent($output->currentArticle->type, $output->currentArticle->id);
261
MESSAGE: Undefined property: stdClass::$type
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 260
DEBUG INFO:
255
256 if( $this->da->isFinished(SGL_Session::getUid(), $parent_type, $parent_id, $output->currentArticle->type, $input->articleId, $action_type) )
257 $output->finished = true;
258 else
259 $output->finished = false;
260 $output->files = $this->da->getFilesByParent($output->currentArticle->type, $output->currentArticle->id);
261
262
263 /* Create plaintext content for sitepal to read. */
264 $output->plainTextContent = strip_tags($output->currentArticle->title).'. '.strip_tags($output->currentArticle->intro).'. '.strip_tags($output->currentArticle->text);
265 $output->plainTextContent = ereg_replace("\r\n", "", $output->plainTextContent);
MESSAGE: Undefined property: stdClass::$id
TYPE: Notice
FILE: /var/www/newephisto/modules/learn/classes/ReadMgr.php
LINE: 260
DEBUG INFO:
255
256 if( $this->da->isFinished(SGL_Session::getUid(), $parent_type, $parent_id, $output->currentArticle->type, $input->articleId, $action_type) )
257 $output->finished = true;
258 else
259 $output->finished = false;
260 $output->files = $this->da->getFilesByParent($output->currentArticle->type, $output->currentArticle->id);
261
262
263 /* Create plaintext content for sitepal to read. */
264 $output->plainTextContent = strip_tags($output->currentArticle->title).'. '.strip_tags($output->currentArticle->intro).'. '.strip_tags($output->currentArticle->text);
265 $output->plainTextContent = ereg_replace("\r\n", "", $output->plainTextContent);
Fatal error: Call to undefined method DB_Error::fetchRow() in /var/www/newephisto/modules/files/classes/DA_Files.php on line 80