Vlady.xD Posted December 22, 2016 Report Share Posted December 22, 2016 Salut, mi-am instalat de curand aplicatia IP.Content si cand intru pe forum imi apare eroarea asta: Quote Fatal error: Call to a member function primary_navigation() on a non-object in /home/u513193251/public_html/admin/applications_addon/ips/ccs/sources/hooks.php on line 93 Asta-i hooks.php: Spoiler <?php /** * @file hooks.php IP.Content hook gateway file *~TERABYTE_DOC_READY~ * $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$ * $License: http://www.invisionpower.com/company/standards.php#license$ * $Author: ips_terabyte $ * @since 27 Dec 2011 * $LastChangedDate: 2010-10-14 13:11:17 -0400 (Thu, 14 Oct 2010) $ * @version v3.4.5 * $Revision: 477 $ */ if ( ! defined( 'IN_ACP' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly."; exit(); } /** * Ensure app class has been loaded */ if( !class_exists('app_class_ccs') ) { ipsRegistry::getAppClass( 'ccs' ); } /** * @class ccsHooks * @brief IP.Content hook gateway file */ class ccsHooks { /** * Registry Object Shortcuts * * @var $registry * @var $DB * @var $settings * @var $request * @var $lang * @var $member * @var $memberData * @var $cache * @var $caches */ protected $registry; protected $DB; protected $settings; protected $request; protected $lang; protected $member; protected $memberData; protected $cache; protected $caches; /** * Constructor * * @param object $registry Registry object * @return @e void */ public function __construct( ipsRegistry $registry ) { $this->registry = $registry; $this->lang = $this->registry->getClass('class_localization'); $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); } /** * Menu module hook * * @param array $applications Applications * @return @e string Global template output */ public function menuBar( $applications ) { if( isset($applications['ccs']) ) { $applications['ccs']['app_link'] = $this->registry->ccsFunctions->returnPageUrl( array( 'page_seo_name' => $this->settings['ccs_default_page'], 'page_id' => 0 ) ); $applications['ccs']['app_seotitle'] = ''; // Has to be empty, or IP.Board tries to run its FURL routines causing index.php?//page/... $applications['ccs']['app_template'] = 'app=ccs'; $applications['ccs']['app_base'] = 'none'; } return $this->registry->output->getTemplate('ccs_global')->primary_navigation( $this->caches['ccs_menu'], $applications ); } } Cum pot sa-l rezolv ? Quote Link to comment Share on other sites More sharing options...
+ZEW Posted December 22, 2016 Report Share Posted December 22, 2016 (edited) Încearcă un Recache și un Rebuild. ACP >> Look & Feel >> Template Tools >> Recache Skin Sets / Rebuild Master Data Dacă nici asta nu merge, încearcă o altă versiune la IP.Content. Pe un forum IPB pentru teste am pus IP.Content v2.3.6 și a mers fără probleme Edited December 22, 2016 by ZEW 1 Quote "Sufletele cele mai întunecate nu sunt cele care aleg să existe în iad, ci acelea care aleg să evadeze și se mută în tăcere printre noi." - Samuel Loomis (Halloween) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.