Advertisement
Search the Community
Showing results for tags 'Error'.
-
I installed a Shoutbox Bot to remind people to follow the rules and also to promote the forums VIP package. But when I go to add the messages I run into this error. messages.php <?php /** * @author -RAW- * @copyright 2012 * @link http://invisionlegacy.com * @filesource Shoutbox Bot * @version 1.0.1 */ if ( !defined('IN_ACP') ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit(); } class admin_shoutbox_bot_messages_messages extends ipsCommand { public $html; public function doExecute( ipsRegistry $registry ) { /* Load Skin and Lang */ $this->html = $this->registry->output->loadTemplate( 'cp_skin_messages' ); $this->html->form_code = '&module=messages&section=messages'; $this->html->form_code_js = '&module=messages§ion=messages'; $this->registry->class_localization->loadLanguageFile( array( 'admin_shoutbox_bot' ), 'shoutbox_bot' ); switch ( $this->request['do'] ) { case 'add': $this->form('add'); break; case 'doadd': $this->form('doadd'); break; case 'edit': $this->form('edit'); break; case 'doedit': $this->form('doedit'); break; case 'delete': $this->form('delete'); break; case 'manage': default: //$this->registry->output->html .= $this->html->manage($form); $this->manage(); break; } /* Output */ $this->registry->output->html_main .= $this->registry->output->global_template->global_frame_wrapper(); $this->registry->output->sendOutput(); } public function manage() { $start = intval( $this->request['st'] ) >= 0 ? intval( $this->request['st'] ) : 0; $count = $this->DB->buildAndFetch( array( 'select' => 'count(*) as cnt', 'from' => 'shoutbox_bot_messages' ) ); $pagination = $this->registry->output->generatePagination( array( 'totalItems' => $count['cnt'], 'itemsPerPage' => 10, 'currentStartValue' => $start, 'baseUrl' => $this->settings['base_url'] . "&" . $this->html->form_code, ) ); $this->DB->build( array('select' => 's.*', 'from' => array( 'shoutbox_bot_messages' => 's' ), 'order' => 's.shout_id DESC', 'limit' => array( $start, 10 ), 'add_join' => array( 0 => array( 'select' => 'm.member_id, m.member_group_id, m.members_display_name, m.members_seo_name, mgroup_others', 'from' => array( 'members' => 'm' ), 'where' => 'm.member_id=s.shout_mid', 'type' => 'left'))) ); $this->DB->execute(); /* Any PM? */ if ( $this->DB->getTotalRows() ) { while ( $row = $this->DB->fetch() ) { $allShouts[] = $row; } } /* Show page */ $this->registry->output->html .= $this->html->manage( $allShouts, $pagination ); } public function form( $type = 'add' ) { $form = array(); $st = $this->request['st']; if ( $type == 'add' ) { $formContent['shout_message'] = IPSText::getTextClass( 'editor' )->showEditor( $data['shout_message'], 'shout_message' ); $formContent['shout_enable'] = $this->registry->output->formYesNo( 'shout_enable', 1 ); $this->registry->output->html .= $this->html->add( $formContent ); } if ( $type == 'doadd' ) { $classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite' ); $_editor = new $classToLoad(); $_editor->setAllowHtml( $this->memberData['g_dohtml'] ); $_editor->setRteEnabled( true ); $text = $_editor->process( $_POST['shout_message'] ); /* Parse post */ IPSText::getTextClass('bbcode')->parse_smilies = 1; IPSText::getTextClass('bbcode')->parse_nl2br = 1; IPSText::getTextClass('bbcode')->parse_html = 0;//$this->memberData['g_dohtml']; IPSText::getTextClass('bbcode')->parse_bbcode = 1; $text = IPSText::getTextClass( 'bbcode' )->preDbParse( $text ); $saveArray = array( 'shout_message' => $text, 'shout_enable' => $this->request['shout_enable']); $this->DB->insert( 'shoutbox_bot_messages', $saveArray ); $message = "{$this->lang->words['sbBot_msgadded']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&st=" . $this->request['st'], $message ); } if ( $type == 'delete' ) { /* INIT */ $id = intval( $this->request['id'] ); if ( ! $id ) { $this->registry->output->showError( $this->lang->words['errorNoId'], 'MP001' ); } /* Delete it */ $this->DB->delete( 'shoutbox_bot_messages', 'shout_id='.$id ); /* Set message */ $message = "{$this->lang->words['sbBot_msgdeleted']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&st=" . $this->request['st'], $message ); $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&st=" . $this->request['st'], $message ); } if ( $type == 'edit' ) { $data = $this->DB->buildAndFetch( array( 'select' => '*', 'from' => 'shoutbox_bot_messages', 'where' => "shout_id='".$this->request['id']."'",) ); $formContent['shout_enable'] = $this->registry->output->formYesNo( 'shout_enable', $data['shout_enable'] ); $formContent['shout_message'] = IPSText::getTextClass( 'editor' )->showEditor( $data['shout_message'], 'shout_message' ); $this->registry->output->html .= $this->html->edit( $formContent,$memb ); } if ( $type == 'doedit') { $messageId = intval( $this->request['id'] ); /* Set BBCode parser */ $classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite' ); $_editor = new $classToLoad(); $_editor->setAllowHtml( $this->memberData['g_dohtml'] ); $_editor->setRteEnabled( true ); $text = $_editor->process( $_POST['shout_message'] ); /* Parse post */ IPSText::getTextClass('bbcode')->parse_smilies = 1; IPSText::getTextClass('bbcode')->parse_nl2br = 1; IPSText::getTextClass('bbcode')->parse_html = 0;//$this->memberData['g_dohtml']; IPSText::getTextClass('bbcode')->parse_bbcode = 1; $text = IPSText::getTextClass( 'bbcode' )->preDbParse( $text ); $saveArray = array( 'shout_message' => $text, 'shout_enable' => $this->request['shout_enable']); $this->DB->update( 'shoutbox_bot_messages', $saveArray, 'shout_id=' . $messageId ); $message = "{$this->lang->words['sbBot_msgupdated']}"; $this->registry->output->redirect( $this->settings['base_url'].$this->html->form_code. "&st=" . $this->request['st'], $message ); } } }
-
I am using the awards system here: The error I get when I open up /index.php/jawards/ on row 216 is $rows .= $this->registry->output->getTemplate('jawards')->category_row_start( $c ); It does this when I activate the Manage Cabinet Permissions.
-
Hi, can you help me please, I have this error mesage in the board index Warning: Invalid argument supplied for foreach() in C:xampphtdocsforumcacheskin_cachecacheid_12skin_boards.php on line 131 Please help me.
-
Hello to all webflake members ... I have a litle problem and i hope to find some help here .. I decoded an encrypted fille with ioncube , but now when i upload it on server i get some errors.. Please can someone try to solve the php syntax error form this fille ? http://www.senq.org/function.fmt.inc.rar http://www.datafilehost.com/d/54b53cf2 Php syntax error check that i use is : http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php Thank You verry much PS* First error is on line 541 for example : Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or ' in function.fmt.inc.php on line 541
-
Need a bit of help on errors with Tutorials 1.5.0
zombicydal posted a question in Invision Answered Questions
Hello folks, I am getting errors that I am trying to figure out the cause etc with. I am using Retail 3.4.5 (from your site) tutorials is 1.5.0 (from here) Error is: Fatal error: Call to a member function hookRecentArticles() on a non-object in /home/content/06/11573506/html/hooks/tutorialsRecentlyAdded_76603c2763459a6c934d4d8d51eff552.php on line 67 So when you remove the hook then you get this error: Fatal error: Call to a member function mainPage() on a non-object in /home/content/06/11573506/html/admin/applications_addon/other/tutorials/modules_public/display/index.php on line 85 Its fine on first install these errors don't take place until you make your first category. Anyone able to help or guide or suggest anything? Did not find anything upon searching the site. Thans for the help. -
i have an error.when i select to delet something.it isnt show the action.please help me to fix it.. Thanx
-
i upgrated ipb 3.3.4 to 3.4.4 . all are working well..but the theme i use Mystic doesnt show me the the editor to post members.. help me to fix it friends..
-
hello, i have a ipb 3.4.2... when i am trying to upload the skin it shows a SQL error like this....can you help me to fix it.. It shows Driver Server Level Error but when i import the skin image set it is uploaded without an error..plz help me... i think this line is important... mySQL query error: INSERT INTO mitb_cache_store (`cs_key`,`cs_value`) VALUES('_importSkinContent_','nn n n core.xmln waiting for reply..