Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Using $this when not in object context
#13

[eluser]beatryder[/eluser]
[quote author="flumps" date="1187139710"]thats seems to have done the trick...

although ive got a problem with my flash header now :-s again its not liking the word this with a fatal error of....

Fatal error: Using $this when not in object context in... on line 16 of header.php

here is the entire content of my header.php file :-s

Quote:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
&lt;title&gt;TITLE&lt;/title&gt;
&lt;link href="&lt;?=$base_view;?&gt;style.css" rel="stylesheet" type="text/css"&gt;
&lt;/head&gt;
&lt;body&gt;
<table border="0" cellpadding="0" cellspacing="0" width="766" align="center">
&lt;!--flash--&gt;
<tr>
<td style="width:766px; height:325px;">
&lt;object classid="clsidBig Grin27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="766" height="325"&gt;
<param name="movie" value="&lt;?=$this->config->item('base_view');?&gt;flash/header_final.swf?button=1">
<param name="quality" value="high">
<param name="menu" value="false">
&lt;!--[if !IE]> <--&gt;
&lt;object data="&lt;?=$this-&gt;config->item('base_view');?&gt;flash/header_final.swf?button=1"
width="766" height="325" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
&lt;/object&gt;
&lt;!--&gt; <![endif]--&gt;
&lt;/object&gt;</td>
</tr>
[/quote]

Replace
Code:
&lt;object data="&lt;?=$this-&gt;config->item('base_view');?&gt;flash/header_final.swf?button=1"
           width="766" height="325" type="application/x-shockwave-flash">

with

Code:
&lt;object data="&lt;?=$base_view?&gt;flash/header_final.swf?button=1"
           width="766" height="325" type="application/x-shockwave-flash">

like you did with your style declaration.

edit: also if you use the [ code ] tags the forums will keep the formating of your code when you post it, and will also highlight it like ours is.


Messages In This Thread
Fatal error: Using $this when not in object context - by El Forum - 08-12-2007, 03:38 PM
Fatal error: Using $this when not in object context - by El Forum - 08-12-2007, 04:15 PM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 04:04 AM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 10:04 AM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 04:15 PM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 04:49 PM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 04:51 PM
Fatal error: Using $this when not in object context - by El Forum - 08-13-2007, 04:52 PM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 01:39 AM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 03:45 AM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 09:36 AM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 02:01 PM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 02:04 PM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 02:08 PM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 02:22 PM
Fatal error: Using $this when not in object context - by El Forum - 08-14-2007, 03:20 PM
Fatal error: Using $this when not in object context - by El Forum - 08-15-2007, 03:30 PM
Fatal error: Using $this when not in object context - by El Forum - 08-15-2007, 04:12 PM
Fatal error: Using $this when not in object context - by El Forum - 08-16-2007, 02:30 AM
Fatal error: Using $this when not in object context - by El Forum - 08-26-2007, 05:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB