Jump to content

4.5 and Missing or Out of Date Templates or CSS


Go to solution Solved by bfarber,

Recommended Posts

Posted

I am beginning to think I am unlucky here.

So far, just about every IPB install has gone the way of the dinosaur while in development mode. With errors like:

[[Template core/admin/global/globalTemplate is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

There is either missing css or missing template files when in developer mode.

So far, I have had to reinstall my localhost developer build 5 times and it has just happened again. I didn't even get to the stage of installing my applications or plugins, installed, turned on dev mode and I got the above error.

I have downloaded the IPB install and developer files numerous times to make sure that it wasn't a bad zip

 

 

 

 

 

 

Posted

Error thrown with message "Class 'IPS\Theme\Dev\hook22' not found"

Stacktrace:
#7 Error in E:\wamp64\www\DevWorking4.5\system\Theme\Dev\Theme.php:151
#6 IPS\Theme\Dev\_Theme:getTemplate in C:\Windows\Temp\the3A66.tmp:59
#5 IPS\Theme\theme_core_admin_global_globalTemplate in E:\wamp64\www\DevWorking4.5\system\Theme\Dev\Template.php:171
#4 IPS\Theme\Dev\_Template:__call in E:\wamp64\www\DevWorking4.5\system\Dispatcher\Dispatcher.php:172
#3 IPS\_Dispatcher:finish in E:\wamp64\www\DevWorking4.5\system\Dispatcher\Standard.php:113
#2 IPS\Dispatcher\_Standard:finish in E:\wamp64\www\DevWorking4.5\init.php:887
#1 IPS\Dispatcher\nexus_hook_DispatcherAdmin:finish in E:\wamp64\www\DevWorking4.5\system\Dispatcher\Dispatcher.php:154
#0 IPS\_Dispatcher:run in E:\wamp64\www\DevWorking4.5\admin\index.php:14

 

Whoops\Exception\ErrorException thrown with message "Cannot declare class IPS\Theme\Dev\nexus_hook_clientAreaLink, because the name is already in use"

Stacktrace:
#2 Whoops\Exception\ErrorException in C:\Windows\Temp\app7ED8.tmp:12
#1 Whoops\Run:handleError in E:\wamp64\www\DevWorking4.5\dev\Whoops\Run.php:433
#0 Whoops\Run:handleShutdown in [internal]:0

 

<?php
namespace IPS\Theme\Dev;

//<?php

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
    exit;
}

class nexus_hook_clientAreaLink extends Template
{

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'userBar' => 
  array (
    1 => 
    array (
      'selector' => '#cUserLink',
      'type' => 'add_before',
      'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
	{template="cartHeader" app="nexus" group="store" params=""}
{{endif}}',
    ),
    2 => 
    array (
      'selector' => '#elSignInLink',
      'type' => 'add_before',
      'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
	{template="cartHeader" app="nexus" group="store" params=""}
{{endif}}',
    ),
  ),
  'mobileNavigation' => 
  array (
    0 => 
    array (
      'selector' => '#elUserNav_mobile',
      'type' => 'add_inside_end',
      'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
	{template="cartHeaderMobile" app="nexus" group="store" params=""}
{{endif}}',
    ),
    1 => 
    array (
      'selector' => '#elMobileDrawer > div.ipsDrawer_menu > div.ipsDrawer_content',
      'type' => 'add_inside_start',
      'content' => '{{if !\IPS\Member::loggedIn()->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
<ul id=\'elUserNav_mobile\' class=\'ipsList_inline signed_in ipsClearfix\'>
	{template="cartHeaderMobile" app="nexus" group="store" params=""}
</ul>
{{endif}}',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */

Contents of the tmp file

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...