Fatal error: Call to a member.........

Status
Niet open voor verdere reacties.

hoogteijling

Terugkerende gebruiker
Lid geworden
12 aug 2005
Berichten
4.261
Hallo allemaal,

Weet iemand wat de onderstaande foutmelding precies betekend en wat ik er aan kan doen om het te verhelpen ?
Fatal error: Call to a member function getCfg() on a non-object in /home/users/b/l/blaayn/www/jupgrade/templates/rt_versatility4_j25/index.php on line 10

Dit is de gehele php file:
PHP:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
global $template_real_width, $leftcolumn_width, $rightcolumn_width, $leftbanner_width, $rightbanner_width, $tstyle;


$live_site        		= $mainframe->getCfg('live_site');
$template_path 			= $this->baseurl . '/templates/' .  $this->template;
$default_style 			= $this->params->get("defaultStyle", "style2");
$menu_style				= $this->params->get("menuStyle", "menustyle3");
$header_wrapped			= ($this->params->get("headerWrapped", 0)  == 0)?"false":"true";
$footer_wrapped			= ($this->params->get("footerWrapped", 0)  == 0)?"false":"true";
$enable_ie6warn         = ($this->params->get("enableIe6warn", 0)  == 0)?"false":"true";
$font_family            = $this->params->get("fontFamily", "default");
$enable_fontspans       = ($this->params->get("enableFontspans", 1)  == 0)?"false":"true";
$template_width 		= $this->params->get("templateWidth", "958");
$leftcolumn_width		= $this->params->get("leftcolumnWidth", "220");
$rightcolumn_width		= $this->params->get("rightcolumnWidth", "220");
$leftinset_width		= $this->params->get("leftinsetWidth", "275");
$rightinset_width		= $this->params->get("rightinsetWidth", "185");
$splitmenu_col			= $this->params->get("splitmenuCol", "rightcol");
$menu_name 				= $this->params->get("menuName", "mainmenu");
$menu_type 				= $this->params->get("menuType", "splitmenu");
$default_font 			= $this->params->get("defaultFont", "default");
$show_moduleslider 		= ($this->params->get("showModuleslider", 1)  == 0)?"false":"true";
$moduleslider_location	= $this->params->get("modulesliderLocation", "mid-bottom");
$moduleslider_height	= $this->params->get("modulesliderHeight", "220");
$leftbanner_width		= $this->params->get("leftbannerWidth", "170");
$rightbanner_width		= $this->params->get("rightbannerWidth", "170");
$h3_style 				= $this->params->get("h3Style", "icon1");
$show_breadcrumbs 		= ($this->params->get("showBreadcrumbs", 0)  == 0)?"false":"true";
$show_logo		 		= ($this->params->get("showLogo", 1)  == 0)?"false":"true";
$show_textsizer		 	= ($this->params->get("showTextsizer", 1)  == 0)?"false":"true";
$show_bottomlogo 		= ($this->params->get("showbottomLogo", 1)  == 0)?"false":"true";
$js_compatibility	 	= ($this->params->get("jsCompatibility", 0)  == 0)?"false":"true";

// moomenu options
$moo_bgiframe     		= ($this->params->get("moo_bgiframe'","0") == 0)?"false":"true";
$moo_delay       		= $this->params->get("moo_delay", "500");
$moo_duration    		= $this->params->get("moo_duration", "600");
$moo_fps          		= $this->params->get("moo_fps", "200");
$moo_transition   		= $this->params->get("moo_transition", "Sine.easeOut");

$moo_bg_enabled			= ($this->params->get("moo_bg_enabled","0") == 0)?"false":"true";
$moo_bg_over_duration		= $this->params->get("moo_bg_over_duration", "100");
$moo_bg_over_transition		= $this->params->get("moo_bg_over_transition", "Expo.easeOut");
$moo_bg_out_duration		= $this->params->get("moo_bg_out_duration", "800");
$moo_bg_out_transition		= $this->params->get("moo_bg_out_transition", "Sine.easeOut");

$moo_sub_enabled		= ($this->params->get("moo_sub_enabled","0") == 0)?"false":"true";
$moo_sub_over_duration		= $this->params->get("moo_sub_over_duration", "50");
$moo_sub_over_transition	= $this->params->get("moo_sub_over_transition", "Expo.easeOut");
$moo_sub_out_duration		= $this->params->get("moo_sub_out_duration", "600");
$moo_sub_out_transition		= $this->params->get("moo_sub_out_transition", "Sine.easeIn");
$moo_sub_offsets_top		= $this->params->get("moo_sub_offsets_top", "5");
$moo_sub_offsets_right		= $this->params->get("moo_sub_offsets_right", "15");
$moo_sub_offsets_bottom		= $this->params->get("moo_sub_offsets_bottom", "5");
$moo_sub_offsets_left		= $this->params->get("moo_sub_offsets_left", "5");
	
	// module slider configuration
	
$max_mods_per_row			= $this->params->get("maxModsPerRow", 5);
$ms_title1					= $this->params->get("msTitle1", "Tab One");	
$ms_title2					= $this->params->get("msTitle2", "Tab Two");	
$ms_title3					= $this->params->get("msTitle3", "Tab Three");	
$ms_title4					= $this->params->get("msTitle4", "Tab Four");	
$ms_title5					= $this->params->get("msTitle5", "Tab Five");
$ms_title6					= $this->params->get("msTitle6", "Tab Six");
$ms_title7					= $this->params->get("msTitle7", "Tab Seven");
$ms_title8					= $this->params->get("msTitle8", "Tab Eight");
$ms_title9					= $this->params->get("msTitle9", "Tab Nine");
$ms_title10					= $this->params->get("msTitle10", "Tab Ten");	
$ms_module1					= $this->params->get("msModule1", "user11");		
$ms_module2					= $this->params->get("msModule2", "user12");			
$ms_module3					= $this->params->get("msModule3", "user13");			
$ms_module4					= $this->params->get("msModule4", "user14");			
$ms_module5					= $this->params->get("msModule5", "user15");
$ms_module6					= $this->params->get("msModule6", "user16");
$ms_module7					= $this->params->get("msModule7", "user17");
$ms_module8					= $this->params->get("msModule8", "user18");
$ms_module9					= $this->params->get("msModule9", "user19");
$ms_module10				= $this->params->get("msModule10", "user20");
								
	require(YOURBASEPATH . "/rt_styleloader.php");
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
	<head>
		<jdoc:include type="head" />
		<?php
		require(YOURBASEPATH . DS . "rt_tabmodules.php");
		require(YOURBASEPATH . DS . "rt_utils.php");
		require(YOURBASEPATH . DS . "rt_head_includes.php");

	?>
	</head>
	<body id="ff-<?php echo $fontfamily; ?>" class="<?php echo $fontstyle; ?> <?php echo $tstyle; ?> <?php echo $mstyle; ?> <?php echo $h3style; ?> iehandle">
		<?php if($this->countModules('banner1')) : ?>
		<div id="topbanner"><div class="wrapper">
			<jdoc:include type="modules" name="banner1" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<!-- Begin Header -->
		<?php if($hwrap == "true") : ?>
		<div class="wrapper">
		<?php endif; ?>
		<div id="header-bar">
			<?php if($hwrap == "false") : ?>
			<div class="wrapper">
				<?php endif; ?>
				<?php if($show_logo == "true") : ?>
				<a href="<?php echo $this->baseurl; ?>" class="nounder"><img src="<?php echo $template_path; ?>/images/blank.gif" border="0" alt="" id="logo" /></a>
				<?php elseif($show_logo =="false" and $this->countModules('icon')) : ?>
				<div class="logo-module">
					<jdoc:include type="modules" name="icon" style="xhtml" />
				</div>
				<?php endif; ?>
				<div id="headerblock-right"><div class="padding">
					<?php if ($show_textsizer=="true") : ?>
					<div id="accessibility"><div id="buttons">
						<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-larger"); ?>" title="Increase size" class="large"><span class="button">&nbsp;</span></a>
						<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-smaller"); ?>" title="Decrease size" class="small"><span class="button">&nbsp;</span></a>
					</div></div>
					<?php endif; ?>
					<?php if ($this->countModules('top')) : ?>
					<div id="top-menu">
						<jdoc:include type="modules" name="top" style="xhtml" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('search')) : ?>
					<div id="searchmod">
						<jdoc:include type="modules" name="search" style="xhtml" />
					</div>
					<?php endif; ?>
					<div class="clr"></div>
				</div></div>
			<?php if($hwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php if($hwrap == "true") : ?>
		</div>
		<div class="wrapper">
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		<div id="submenu-container">
		<?php endif; ?>
		<?php if($mtype != "none") : ?>
		<div id="horiz-menu" class="<?php echo $mtype; ?>">
			<?php if($hwrap == "false") : ?>
			<div class="wrapper">
			<?php endif; ?>
			<?php if($mtype != "module") : ?>
				<?php echo $topnav; ?>
			<?php else: ?>
				<jdoc:include type="modules" name="toolbar" style="none" />
			<?php endif; ?>
			<?php if($hwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php else: ?>
		<div id="header-divider"></div>
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		<div id="sub-menu">
		<?php if($hwrap == "false") : ?>
			<div class="wrapper">
		<?php endif; ?>
			<?php echo $subnav; ?>
		<?php if($hwrap == "false") : ?>
		</div>
		<?php endif; ?>
		</div>
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		</div>
		<?php endif; ?>
		<?php if($hwrap == "true") : ?>
		</div>
		<?php endif; ?>
		<?php if($mtype != "none") : ?>
		<div class="div-spacer"></div>
		<?php endif; ?>
		<!-- End Header -->
		<div class="wrapper">
		<?php if($this->countModules('banner3')) : ?>
		<div id="rightbanner"><div class="padding">
			<jdoc:include type="modules" name="banner3" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<?php if($this->countModules('banner2')) : ?>
		<div id="leftbanner"><div class="padding">
			<jdoc:include type="modules" name="banner2" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<!-- Begin Main Page -->
			<div id="mainblock">
				<?php if ($this->countModules('showcase')) : ?>
				<div class="showcase-module"><jdoc:include type="modules" name="showcase" style="xhtml" /></div>
				<?php endif; ?>
				<div id="main-body">
					<!-- Begin Right Column -->
					<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="right" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')) or ($this->countModules('right') or ($sidenav and $splitmenu_col=="rightcol")))) : ?>
					<div id="rightcol">
						<div class="main-height">
							<?php if ($sidenav and $splitmenu_col=="rightcol") : ?>
							<div class="sidenav-block">
								<?php if($hwrap == "false") : ?>
								<div class="sidenav-block-right">
								<?php endif; ?>
									<div class="sidenav-block-left">
									<?php echo $sidenav; ?>
									</div>
								<?php if($hwrap == "false") : ?>
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="right" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<jdoc:include type="modules" name="right" style="xhtml" />
						</div>
					</div>
					<?php endif; ?>
					<!-- End Right Column -->
					<!-- Begin Left Column -->
					<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="left" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')) or ($this->countModules('left') or ($sidenav and $splitmenu_col=="leftcol")))) : ?>
					<div id="leftcol">
						<div class="main-height">
							<?php if ($sidenav and $splitmenu_col=="leftcol") : ?>
							<div class="sidenav-block">
								<?php if($hwrap == "false") : ?>
								<div class="sidenav-block-right">
								<?php endif; ?>
									<div class="sidenav-block-left">
									<?php echo $sidenav; ?>
									</div>
								<?php if($hwrap == "false") : ?>
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="left" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<jdoc:include type="modules" name="left" style="xhtml" />
						</div>
					</div>
					<?php endif; ?>
					<!-- End Left Column -->
					<!-- Begin Main Column -->
					<div id="maincol">
						<div class="main-height">
							<?php if ($show_breadcrumbs == "true") : ?>
							<div id="pathway">
								<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php if ($this->countModules('showcase2')) : ?>
							<div class="showcase-module2">
								<jdoc:include type="modules" name="showcase2" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php $mClasses = modulesClasses('case1'); if ($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user3')) : ?>
							<div id="mainmodules" class="spacer<?php echo $mainmod_width; ?>">
								<?php if ($this->countModules('user1')) : ?>
								<div class="block <?php echo $mClasses['user1'][0]; ?>" style="width: <?php echo $mClasses['user1'][1]; ?>px">
									<jdoc:include type="modules" name="user1" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user2')) : ?>
								<div class="block <?php echo $mClasses['user2'][0]; ?>" style="width: <?php echo $mClasses['user2'][1]; ?>px">
									<jdoc:include type="modules" name="user2" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user3')) : ?>
								<div class="block <?php echo $mClasses['user3'][0]; ?>" style="width: <?php echo $mClasses['user3'][1]; ?>px">
									<jdoc:include type="modules" name="user3" style="rounded" />
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($this->countModules('banner')) : ?>
							<div class="banner-module">
								<jdoc:include type="modules" name="banner" style="xhtml" />
							</div>
							<?php endif; ?>
								<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="mid-top" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
								<div id="moduleslider-size">
	    							<?php displayTabs($this); ?>
	    						</div>
	    						<?php endif; ?>
							<div class="maincontent-surround"><div class="padding">
								<?php if ($this->countModules('inset2')) : ?>
								<div id="inset-block-right"><div class="right-padding">
									<jdoc:include type="modules" name="inset2" style="xhtml" />
								</div></div>
								<?php endif; ?>
								<?php if ($this->countModules('inset')) : ?>
								<div id="inset-block-left"><div class="left-padding">
									<jdoc:include type="modules" name="inset" style="xhtml" />
								</div></div>
								<?php endif; ?>
								<div id="maincontent-block">
									<jdoc:include type="message" />
									<jdoc:include type="component" />
								</div>
							</div></div>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="mid-bottom" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size" class="alt">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<?php if ($this->countModules('banner4')) : ?>
							<div class="banner-module2">
								<jdoc:include type="modules" name="banner4" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php $mClasses = modulesClasses('case2'); if ($this->countModules('user4') or $this->countModules('user5') or $this->countModules('user6')) : ?>
							<div id="mainmodules2" class="spacer<?php echo $mainmod2_width; ?>">
								<?php if ($this->countModules('user4')) : ?>
								<div class="block <?php echo $mClasses['user4'][0]; ?>" style="width: <?php echo $mClasses['user4'][1]; ?>px">
									<jdoc:include type="modules" name="user4" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user5')) : ?>
								<div class="block <?php echo $mClasses['user5'][0]; ?>" style="width: <?php echo $mClasses['user5'][1]; ?>px">
									<jdoc:include type="modules" name="user5" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user6')) : ?>
								<div class="block <?php echo $mClasses['user6'][0]; ?>" style="width: <?php echo $mClasses['user6'][1]; ?>px">
									<jdoc:include type="modules" name="user6" style="rounded" />
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
						</div>
					</div>
					<!-- End Main Column -->
					<div class="clr"></div>
				</div>
		<!-- End Main Page -->
		<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="bottom" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
		<div id="moduleslider-size" class="alt-bottom">
			<?php displayTabs($this); ?>
		</div>
		<?php endif; ?>
		<?php if ($this->countModules('advert1') or $this->countModules('advert2') or $this->countModules('advert3')) : ?>
		<div id="mainmodules3" class="spacer<?php echo $mainmod3_width; ?>">
			<?php if ($this->countModules('advert1')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert1" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert2')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert2" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert3')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert3" style="rounded" />
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>
		<?php if ($this->countModules('advert4') or $this->countModules('advert5') or $this->countModules('advert6')) : ?>
		<div id="mainmodules4" class="spacer<?php echo $mainmod4_width; ?>">
			<?php if ($this->countModules('advert4')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert4" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert5')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert5" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert6')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert6" style="rounded" />
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>
		</div>
		<?php if ($this->countModules('user7')=="0" and $this->countModules('user8')=="0" and $this->countModules('user9')=="0" and $this->countModules('user10')=="0" and $this->countModules('footer')=="0" and $this->countModules('bottom')=="0" and $this->countModules('debug')=="0" and $show_bottomlogo == "true") : ?>
			
		<?php endif; ?>
		</div>
		<!-- Begin Bottom Section -->
		<?php if($fwrap == "true") : ?>
		<div class="wrapper">
		<?php endif; ?>
		<?php if ($this->countModules('bottom')) : ?>
		<div id="bottom-menu"><div class="wrapper">
			<jdoc:include type="modules" name="bottom" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<?php if ($this->countModules('user7') or $this->countModules('user8') or $this->countModules('user9') or $this->countModules('user10') or $this->countModules('footer') or $this->countModules('debug')) : ?>
		<div id="bottom">
			<?php if($fwrap == "false") : ?>
			<div class="wrapper">
			<?php endif; ?>
				<div id="bottommodules" class="spacer<?php echo $bottommod_width; ?>">
					<?php if ($this->countModules('user7')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user7" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user8')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user8" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user9')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user9" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user10')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user10" style="rounded" />
					</div>
					<?php endif; ?>
				</div>
				<?php if ($this->countModules('footer')) : ?>
				<div class="footer-module">
					<jdoc:include type="modules" name="footer" style="xhtml" />
				</div>
				<?php endif; ?>
				<?php if ($this->countModules('debug')) : ?>
					<jdoc:include type="modules" name="debug" style="none" />
				<?php endif; ?>
				<?php if($show_bottomlogo == "true") : ?>
				<div class="rocket-block">
					<a href="http://www.rockettheme.com/" title="RocketTheme Joomla Template Club" class="nounder"><img src="<?php echo $template_path; ?>/images/blank.gif" alt="RocketTheme Joomla Templates" id="rocket" /></a>
				</div>
				<?php endif; ?>
			<?php if($fwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php if($fwrap == "true") : ?>
		</div>
		<?php endif; ?>
		<?php endif; ?>
		<!-- End Bottom Section -->
	</body>
</html>

Groeten Marcel
 
Laatst bewerkt door een moderator:
Het betekent dat de variabele $mainframe geen object is (of zelfs niet bestaat) en daarom de object-functie "getCfg()" niet kan worden aangeroepen.

Op regel 9 zou je dit kunnen plaatsen om te achterhalen of hij bestaat en zo ja wat de inhoud is:
PHP:
var_dump( $mainframe );

Verder is het lastig te achterhalen hoe je het op kunt lossen, als het een kant-en-klaar script/plugin voor Joomla is geweest dan zou de maker een oplossing moeten hebben.
 
Kun je rt_styleswitcher.php ook posten?

Er zijn een paar mogelijk fouten:
1: MainFrame object niet aangemaakt
Op lijn 10 zeg je dat je de methode getCFG van het object mainframe aanroept, in deze file heb je nergens een object mainframe aangemaakt...
(misschien word dat automatisch gedaan in rt_styleswitcher.php)
2: Je gebruikt $this terwijl je niet in een class zit
Het keyword this kan alleen in klassen gebruikt worden.

Maar nogmaals, zolang alle files die je required niet gepost zijn kan ik niet veel zeggen waar de error aan ligt en ook zeer waarschijnlijk niet de oplossing geven.
 
Hierbij de rt_styleswitcher.php:
PHP:
<?php
defined( '_JEXEC' ) or die( 'Restricted index access' );

$cookie_prefix = "versatility4j15-";
$cookie_time = time()+31536000;
$template_properties = array('fontstyle','fontfamily','tstyle','mstyle','mtype','h3style','hwrap','fwrap');

foreach ($template_properties as $tprop) {
    $my_session = &JFactory::getSession();
	
	if (isset($_REQUEST[$tprop])) {
	    $$tprop = JRequest::getString($tprop, null, 'get');
	
		// support the font size toggler
		if ($$tprop=="f-smaller" || $$tprop =="f-larger") {
			$fsize = "f-default";
	
		 	if ($my_session->get($cookie_prefix. $tprop)) {
				 $fsize = $my_session->get($cookie_prefix. $tprop);
			 } elseif (isset($_COOKIE[$cookie_prefix. $tprop])) {
				 $fsize = JRequest::getVar($cookie_prefix. $tprop, '', 'COOKIE', 'STRING');
			 }
			if ($$tprop=="f-smaller" && $fsize=="f-default") $$tprop = "f-small";
			elseif ($$tprop=="f-smaller" && $fsize=="f-small") $$tprop = "f-small";
			elseif ($$tprop=="f-smaller" && $fsize=="f-large") $$tprop = "f-default";
			elseif ($$tprop=="f-larger" && $fsize=="f-large") $$tprop = "f-large";
			elseif ($$tprop=="f-larger" && $fsize=="f-default") $$tprop = "f-large";
			elseif ($$tprop=="f-larger" && $fsize=="f-small") $$tprop = "f-default";
		}	
	
    	$my_session->set($cookie_prefix.$tprop, $$tprop);
    	setcookie ($cookie_prefix. $tprop, $$tprop, $cookie_time, '/', false);   
    	global $$tprop; 
    }
}

?>

Groeten Marcel
 
Laatst bewerkt:
@Tha devil:
Ik heb het regeltje toegevoegd op regel 9 maar de foutmelding blijft hetzelfde.
Ik zal het ongetwijfeld niet goed begrijpen.
PHP:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
global $template_real_width, $leftcolumn_width, $rightcolumn_width, $leftbanner_width, $rightbanner_width, $tstyle;

var_dump( $mainframe );
$live_site        		= $mainframe->getCfg('live_site');
$template_path 			= $this->baseurl . '/templates/' .  $this->template;
$default_style 			= $this->params->get("defaultStyle", "style2");
$menu_style				= $this->params->get("menuStyle", "menustyle3");
$header_wrapped			= ($this->params->get("headerWrapped", 0)  == 0)?"false":"true";
$footer_wrapped			= ($this->params->get("footerWrapped", 0)  == 0)?"false":"true";
$enable_ie6warn         = ($this->params->get("enableIe6warn", 0)  == 0)?"false":"true";
$font_family            = $this->params->get("fontFamily", "default");
$enable_fontspans       = ($this->params->get("enableFontspans", 1)  == 0)?"false":"true";
$template_width 		= $this->params->get("templateWidth", "958");
$leftcolumn_width		= $this->params->get("leftcolumnWidth", "220");
$rightcolumn_width		= $this->params->get("rightcolumnWidth", "220");
$leftinset_width		= $this->params->get("leftinsetWidth", "275");
$rightinset_width		= $this->params->get("rightinsetWidth", "185");
$splitmenu_col			= $this->params->get("splitmenuCol", "rightcol");
$menu_name 				= $this->params->get("menuName", "mainmenu");
$menu_type 				= $this->params->get("menuType", "splitmenu");
$default_font 			= $this->params->get("defaultFont", "default");
$show_moduleslider 		= ($this->params->get("showModuleslider", 1)  == 0)?"false":"true";
$moduleslider_location	= $this->params->get("modulesliderLocation", "mid-bottom");
$moduleslider_height	= $this->params->get("modulesliderHeight", "220");
$leftbanner_width		= $this->params->get("leftbannerWidth", "170");
$rightbanner_width		= $this->params->get("rightbannerWidth", "170");
$h3_style 				= $this->params->get("h3Style", "icon1");
$show_breadcrumbs 		= ($this->params->get("showBreadcrumbs", 0)  == 0)?"false":"true";
$show_logo		 		= ($this->params->get("showLogo", 1)  == 0)?"false":"true";
$show_textsizer		 	= ($this->params->get("showTextsizer", 1)  == 0)?"false":"true";
$show_bottomlogo 		= ($this->params->get("showbottomLogo", 1)  == 0)?"false":"true";
$js_compatibility	 	= ($this->params->get("jsCompatibility", 0)  == 0)?"false":"true";

// moomenu options
$moo_bgiframe     		= ($this->params->get("moo_bgiframe'","0") == 0)?"false":"true";
$moo_delay       		= $this->params->get("moo_delay", "500");
$moo_duration    		= $this->params->get("moo_duration", "600");
$moo_fps          		= $this->params->get("moo_fps", "200");
$moo_transition   		= $this->params->get("moo_transition", "Sine.easeOut");

$moo_bg_enabled			= ($this->params->get("moo_bg_enabled","0") == 0)?"false":"true";
$moo_bg_over_duration		= $this->params->get("moo_bg_over_duration", "100");
$moo_bg_over_transition		= $this->params->get("moo_bg_over_transition", "Expo.easeOut");
$moo_bg_out_duration		= $this->params->get("moo_bg_out_duration", "800");
$moo_bg_out_transition		= $this->params->get("moo_bg_out_transition", "Sine.easeOut");

$moo_sub_enabled		= ($this->params->get("moo_sub_enabled","0") == 0)?"false":"true";
$moo_sub_over_duration		= $this->params->get("moo_sub_over_duration", "50");
$moo_sub_over_transition	= $this->params->get("moo_sub_over_transition", "Expo.easeOut");
$moo_sub_out_duration		= $this->params->get("moo_sub_out_duration", "600");
$moo_sub_out_transition		= $this->params->get("moo_sub_out_transition", "Sine.easeIn");
$moo_sub_offsets_top		= $this->params->get("moo_sub_offsets_top", "5");
$moo_sub_offsets_right		= $this->params->get("moo_sub_offsets_right", "15");
$moo_sub_offsets_bottom		= $this->params->get("moo_sub_offsets_bottom", "5");
$moo_sub_offsets_left		= $this->params->get("moo_sub_offsets_left", "5");
	
	// module slider configuration
	
$max_mods_per_row			= $this->params->get("maxModsPerRow", 5);
$ms_title1					= $this->params->get("msTitle1", "Tab One");	
$ms_title2					= $this->params->get("msTitle2", "Tab Two");	
$ms_title3					= $this->params->get("msTitle3", "Tab Three");	
$ms_title4					= $this->params->get("msTitle4", "Tab Four");	
$ms_title5					= $this->params->get("msTitle5", "Tab Five");
$ms_title6					= $this->params->get("msTitle6", "Tab Six");
$ms_title7					= $this->params->get("msTitle7", "Tab Seven");
$ms_title8					= $this->params->get("msTitle8", "Tab Eight");
$ms_title9					= $this->params->get("msTitle9", "Tab Nine");
$ms_title10					= $this->params->get("msTitle10", "Tab Ten");	
$ms_module1					= $this->params->get("msModule1", "user11");		
$ms_module2					= $this->params->get("msModule2", "user12");			
$ms_module3					= $this->params->get("msModule3", "user13");			
$ms_module4					= $this->params->get("msModule4", "user14");			
$ms_module5					= $this->params->get("msModule5", "user15");
$ms_module6					= $this->params->get("msModule6", "user16");
$ms_module7					= $this->params->get("msModule7", "user17");
$ms_module8					= $this->params->get("msModule8", "user18");
$ms_module9					= $this->params->get("msModule9", "user19");
$ms_module10				= $this->params->get("msModule10", "user20");
								
	require(YOURBASEPATH . "/rt_styleloader.php");
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
	<head>
		<jdoc:include type="head" />
		<?php
		require(YOURBASEPATH . DS . "rt_tabmodules.php");
		require(YOURBASEPATH . DS . "rt_utils.php");
		require(YOURBASEPATH . DS . "rt_head_includes.php");

	?>
	</head>
	<body id="ff-<?php echo $fontfamily; ?>" class="<?php echo $fontstyle; ?> <?php echo $tstyle; ?> <?php echo $mstyle; ?> <?php echo $h3style; ?> iehandle">
		<?php if($this->countModules('banner1')) : ?>
		<div id="topbanner"><div class="wrapper">
			<jdoc:include type="modules" name="banner1" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<!-- Begin Header -->
		<?php if($hwrap == "true") : ?>
		<div class="wrapper">
		<?php endif; ?>
		<div id="header-bar">
			<?php if($hwrap == "false") : ?>
			<div class="wrapper">
				<?php endif; ?>
				<?php if($show_logo == "true") : ?>
				<a href="<?php echo $this->baseurl; ?>" class="nounder"><img src="<?php echo $template_path; ?>/images/blank.gif" border="0" alt="" id="logo" /></a>
				<?php elseif($show_logo =="false" and $this->countModules('icon')) : ?>
				<div class="logo-module">
					<jdoc:include type="modules" name="icon" style="xhtml" />
				</div>
				<?php endif; ?>
				<div id="headerblock-right"><div class="padding">
					<?php if ($show_textsizer=="true") : ?>
					<div id="accessibility"><div id="buttons">
						<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-larger"); ?>" title="Increase size" class="large"><span class="button">&nbsp;</span></a>
						<a href="<?php echo JROUTE::_($thisurl . "fontstyle=f-smaller"); ?>" title="Decrease size" class="small"><span class="button">&nbsp;</span></a>
					</div></div>
					<?php endif; ?>
					<?php if ($this->countModules('top')) : ?>
					<div id="top-menu">
						<jdoc:include type="modules" name="top" style="xhtml" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('search')) : ?>
					<div id="searchmod">
						<jdoc:include type="modules" name="search" style="xhtml" />
					</div>
					<?php endif; ?>
					<div class="clr"></div>
				</div></div>
			<?php if($hwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php if($hwrap == "true") : ?>
		</div>
		<div class="wrapper">
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		<div id="submenu-container">
		<?php endif; ?>
		<?php if($mtype != "none") : ?>
		<div id="horiz-menu" class="<?php echo $mtype; ?>">
			<?php if($hwrap == "false") : ?>
			<div class="wrapper">
			<?php endif; ?>
			<?php if($mtype != "module") : ?>
				<?php echo $topnav; ?>
			<?php else: ?>
				<jdoc:include type="modules" name="toolbar" style="none" />
			<?php endif; ?>
			<?php if($hwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php else: ?>
		<div id="header-divider"></div>
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		<div id="sub-menu">
		<?php if($hwrap == "false") : ?>
			<div class="wrapper">
		<?php endif; ?>
			<?php echo $subnav; ?>
		<?php if($hwrap == "false") : ?>
		</div>
		<?php endif; ?>
		</div>
		<?php endif; ?>
		<?php if($mtype == "splitmenu" and $subnav != "0") : ?>
		</div>
		<?php endif; ?>
		<?php if($hwrap == "true") : ?>
		</div>
		<?php endif; ?>
		<?php if($mtype != "none") : ?>
		<div class="div-spacer"></div>
		<?php endif; ?>
		<!-- End Header -->
		<div class="wrapper">
		<?php if($this->countModules('banner3')) : ?>
		<div id="rightbanner"><div class="padding">
			<jdoc:include type="modules" name="banner3" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<?php if($this->countModules('banner2')) : ?>
		<div id="leftbanner"><div class="padding">
			<jdoc:include type="modules" name="banner2" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<!-- Begin Main Page -->
			<div id="mainblock">
				<?php if ($this->countModules('showcase')) : ?>
				<div class="showcase-module"><jdoc:include type="modules" name="showcase" style="xhtml" /></div>
				<?php endif; ?>
				<div id="main-body">
					<!-- Begin Right Column -->
					<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="right" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')) or ($this->countModules('right') or ($sidenav and $splitmenu_col=="rightcol")))) : ?>
					<div id="rightcol">
						<div class="main-height">
							<?php if ($sidenav and $splitmenu_col=="rightcol") : ?>
							<div class="sidenav-block">
								<?php if($hwrap == "false") : ?>
								<div class="sidenav-block-right">
								<?php endif; ?>
									<div class="sidenav-block-left">
									<?php echo $sidenav; ?>
									</div>
								<?php if($hwrap == "false") : ?>
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="right" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<jdoc:include type="modules" name="right" style="xhtml" />
						</div>
					</div>
					<?php endif; ?>
					<!-- End Right Column -->
					<!-- Begin Left Column -->
					<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="left" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')) or ($this->countModules('left') or ($sidenav and $splitmenu_col=="leftcol")))) : ?>
					<div id="leftcol">
						<div class="main-height">
							<?php if ($sidenav and $splitmenu_col=="leftcol") : ?>
							<div class="sidenav-block">
								<?php if($hwrap == "false") : ?>
								<div class="sidenav-block-right">
								<?php endif; ?>
									<div class="sidenav-block-left">
									<?php echo $sidenav; ?>
									</div>
								<?php if($hwrap == "false") : ?>
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="left" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<jdoc:include type="modules" name="left" style="xhtml" />
						</div>
					</div>
					<?php endif; ?>
					<!-- End Left Column -->
					<!-- Begin Main Column -->
					<div id="maincol">
						<div class="main-height">
							<?php if ($show_breadcrumbs == "true") : ?>
							<div id="pathway">
								<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php if ($this->countModules('showcase2')) : ?>
							<div class="showcase-module2">
								<jdoc:include type="modules" name="showcase2" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php $mClasses = modulesClasses('case1'); if ($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user3')) : ?>
							<div id="mainmodules" class="spacer<?php echo $mainmod_width; ?>">
								<?php if ($this->countModules('user1')) : ?>
								<div class="block <?php echo $mClasses['user1'][0]; ?>" style="width: <?php echo $mClasses['user1'][1]; ?>px">
									<jdoc:include type="modules" name="user1" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user2')) : ?>
								<div class="block <?php echo $mClasses['user2'][0]; ?>" style="width: <?php echo $mClasses['user2'][1]; ?>px">
									<jdoc:include type="modules" name="user2" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user3')) : ?>
								<div class="block <?php echo $mClasses['user3'][0]; ?>" style="width: <?php echo $mClasses['user3'][1]; ?>px">
									<jdoc:include type="modules" name="user3" style="rounded" />
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
							<?php if ($this->countModules('banner')) : ?>
							<div class="banner-module">
								<jdoc:include type="modules" name="banner" style="xhtml" />
							</div>
							<?php endif; ?>
								<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="mid-top" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
								<div id="moduleslider-size">
	    							<?php displayTabs($this); ?>
	    						</div>
	    						<?php endif; ?>
							<div class="maincontent-surround"><div class="padding">
								<?php if ($this->countModules('inset2')) : ?>
								<div id="inset-block-right"><div class="right-padding">
									<jdoc:include type="modules" name="inset2" style="xhtml" />
								</div></div>
								<?php endif; ?>
								<?php if ($this->countModules('inset')) : ?>
								<div id="inset-block-left"><div class="left-padding">
									<jdoc:include type="modules" name="inset" style="xhtml" />
								</div></div>
								<?php endif; ?>
								<div id="maincontent-block">
									<jdoc:include type="message" />
									<jdoc:include type="component" />
								</div>
							</div></div>
							<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="mid-bottom" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
							<div id="moduleslider-size" class="alt">
    							<?php displayTabs($this); ?>
    						</div>
    						<?php endif; ?>
							<?php if ($this->countModules('banner4')) : ?>
							<div class="banner-module2">
								<jdoc:include type="modules" name="banner4" style="xhtml" />
							</div>
							<?php endif; ?>
							<?php $mClasses = modulesClasses('case2'); if ($this->countModules('user4') or $this->countModules('user5') or $this->countModules('user6')) : ?>
							<div id="mainmodules2" class="spacer<?php echo $mainmod2_width; ?>">
								<?php if ($this->countModules('user4')) : ?>
								<div class="block <?php echo $mClasses['user4'][0]; ?>" style="width: <?php echo $mClasses['user4'][1]; ?>px">
									<jdoc:include type="modules" name="user4" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user5')) : ?>
								<div class="block <?php echo $mClasses['user5'][0]; ?>" style="width: <?php echo $mClasses['user5'][1]; ?>px">
									<jdoc:include type="modules" name="user5" style="rounded" />
								</div>
								<?php endif; ?>
								<?php if ($this->countModules('user6')) : ?>
								<div class="block <?php echo $mClasses['user6'][0]; ?>" style="width: <?php echo $mClasses['user6'][1]; ?>px">
									<jdoc:include type="modules" name="user6" style="rounded" />
								</div>
								<?php endif; ?>
							</div>
							<?php endif; ?>
						</div>
					</div>
					<!-- End Main Column -->
					<div class="clr"></div>
				</div>
		<!-- End Main Page -->
		<?php if ($show_moduleslider=="true" and $js_compatibility=="false" and ($moduleslider_location=="bottom" and ($this->countModules('user11') or $this->countModules('user12') or $this->countModules('user13') or $this->countModules('user14') or $this->countModules('user15') or $this->countModules('user16') or $this->countModules('user17') or $this->countModules('user18') or $this->countModules('user19') or $this->countModules('user20')))) : ?>
		<div id="moduleslider-size" class="alt-bottom">
			<?php displayTabs($this); ?>
		</div>
		<?php endif; ?>
		<?php if ($this->countModules('advert1') or $this->countModules('advert2') or $this->countModules('advert3')) : ?>
		<div id="mainmodules3" class="spacer<?php echo $mainmod3_width; ?>">
			<?php if ($this->countModules('advert1')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert1" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert2')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert2" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert3')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert3" style="rounded" />
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>
		<?php if ($this->countModules('advert4') or $this->countModules('advert5') or $this->countModules('advert6')) : ?>
		<div id="mainmodules4" class="spacer<?php echo $mainmod4_width; ?>">
			<?php if ($this->countModules('advert4')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert4" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert5')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert5" style="rounded" />
			</div>
			<?php endif; ?>
			<?php if ($this->countModules('advert6')) : ?>
			<div class="block">
				<jdoc:include type="modules" name="advert6" style="rounded" />
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>
		</div>
		<?php if ($this->countModules('user7')=="0" and $this->countModules('user8')=="0" and $this->countModules('user9')=="0" and $this->countModules('user10')=="0" and $this->countModules('footer')=="0" and $this->countModules('bottom')=="0" and $this->countModules('debug')=="0" and $show_bottomlogo == "true") : ?>
			
		<?php endif; ?>
		</div>
		<!-- Begin Bottom Section -->
		<?php if($fwrap == "true") : ?>
		<div class="wrapper">
		<?php endif; ?>
		<?php if ($this->countModules('bottom')) : ?>
		<div id="bottom-menu"><div class="wrapper">
			<jdoc:include type="modules" name="bottom" style="xhtml" />
		</div></div>
		<?php endif; ?>
		<?php if ($this->countModules('user7') or $this->countModules('user8') or $this->countModules('user9') or $this->countModules('user10') or $this->countModules('footer') or $this->countModules('debug')) : ?>
		<div id="bottom">
			<?php if($fwrap == "false") : ?>
			<div class="wrapper">
			<?php endif; ?>
				<div id="bottommodules" class="spacer<?php echo $bottommod_width; ?>">
					<?php if ($this->countModules('user7')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user7" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user8')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user8" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user9')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user9" style="rounded" />
					</div>
					<?php endif; ?>
					<?php if ($this->countModules('user10')) : ?>
					<div class="block">
						<jdoc:include type="modules" name="user10" style="rounded" />
					</div>
					<?php endif; ?>
				</div>
				<?php if ($this->countModules('footer')) : ?>
				<div class="footer-module">
					<jdoc:include type="modules" name="footer" style="xhtml" />
				</div>
				<?php endif; ?>
				<?php if ($this->countModules('debug')) : ?>
					<jdoc:include type="modules" name="debug" style="none" />
				<?php endif; ?>
				<?php if($show_bottomlogo == "true") : ?>
				<div class="rocket-block">
					<a href="http://www.rockettheme.com/" title="RocketTheme Joomla Template Club" class="nounder"><img src="<?php echo $template_path; ?>/images/blank.gif" alt="RocketTheme Joomla Templates" id="rocket" /></a>
				</div>
				<?php endif; ?>
			<?php if($fwrap == "false") : ?>
			</div>
			<?php endif; ?>
		</div>
		<?php if($fwrap == "true") : ?>
		</div>
		<?php endif; ?>
		<?php endif; ?>
		<!-- End Bottom Section -->
	</body>
</html>

Groeten Marcel
 
Je krijgt nu geen extra informatie? Wellicht in de bron van de pagina?
 
Daar staat:
Code:
<b>Parse error</b>:  syntax error, unexpected T_VARIABLE in <b>/home/users/b/l/blaayn/www/jupgrade/templates/rt_versatility4_j25/index.php</b> on line <b>10</b><br />

groeten Marcel
 
Maak er eens dit van:
PHP:
var_dump( $mainframe );exit;
Dan wordt de code er na in ieder geval niet uitgevoerd.
 
Nu staat er NULL als ik de website probeer te openen.

Groeten Marcel
 
Dat bevestigt dus dit vermoeden:
Het betekent dat de variabele $mainframe geen object is (of zelfs niet bestaat)

De variabele bestaat niet :confused:

Als dit onderdeel van een plugin is zul je toch echt contact op moeten nemen met de maker want om zoiets te repareren is het noodzakelijk de volledige gedachte achter het programmeerwerk te weten.
 
Kan ik niet een regel weglaten in de PHP file waardoor ie wel verder gaat.
Zo ja, welke regel ?

Groeten Marcel
 
Je kunt regel 10 weglaten met "$live_site =", ik zie geen verdere verwijzing in dit script.
Echter kan het best zijn dat in een ander bestand dat dit script "include()" of "require()" de variabele wel gebruikt wordt.

Daarnaast is de opmerking van stefanwizzard wel terecht:
(misschien word dat automatisch gedaan in rt_styleswitcher.php)
2: Je gebruikt $this terwijl je niet in een class zit
Het keyword this kan alleen in klassen gebruikt worden.
Waarschijnlijk krijg je dan daar een melding over.
 
Na het verwijderen van de regel "$live_site =" doet de website al weer iets meer.
Geen foutmeldingen meer in elk geval.
Alleen zijn mijn menubalken verdwenen van mijn website maar dat zal ik misschien in Joomla aan moeten passen omdat dit om een Joomla 1.5 sjabloon gaat wat ik om probeer te zetten naar een 2.5 sjabloon.

De opmerking van stefanwizzard is voor mij abacadabra.

Bedankt zover in ieder geval.

Groeten Marcel
 
Laatst bewerkt:
Ik heb het opgegeven en ben terug gegaan naar Joomla 1.5.26.
Deze werkt wel.
Evengoed bedankt allemaal :)

Groeten Marcel
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan