Hi Guys,
What I did was roll back as per your notion support for $this has not been dropped and this is the original error received:
Fatal error: Cannot re-assign $this in /usr/share/calltracker/includes/functions.php on line 964
Here is the code snippet for the function having a problem.
946 //--------------------------------------------------------+
947 // Admin table heading output |
948 //--------------------------------------------------------+
949
950 function admin_table_heading( $title="" ) {
951
952 global $template, $CONF;
953
954 //--------------------------------
955 // If this has not yet been loaded,
956 // load it and cache it.
957
958 if(!isset($GLOBALS['table_header_html']))
959 #{
960 #$lines = implode( file("../includes/admin_skins/".$CONF['admin_template']."/table-heading.inc"), "");
961 #$GLOBALS['table_header_html'] = $lines;
962 #}
963
964 $this = str_replace("{TITLE}", $title, $GLOBALS['table_header_html']);
965
966 output( $this );
967
968 unset($this);
969
970 output( "<table width=100% cellpadding=0 cellspacing=0 style=\"border-bottom: 1px solid #1B95CE\">
971 <tr><td width=20><img src=../images/general/table-topleft.jpg></td>
972 <td background=../images/general/table-toptile.jpg height=21><table width=100%
973 cellpadding=0 cellspacing=0><tr><td><font color=white><b> " . $title . "</b></font></td></tr></table></td><td width=20><img src=../im ages/general/table-topright.jpg></td>
974 </tr>");
975
976 }
The original error I posted was produced following these changes -
Updating $this to $result as per this php page indicating that the $this variable was an undocumented feature that was never to be supported and officially dropped in version 5:
http://bugs.php.net/bug.php?id=27659&edit=1Setting these functions to array functions, which are now required based on the way php5 parses the information.
585c585
< mysql_close($this->connection);
---
> @mysql_close($result->connection);
591c591
< return mysql_insert_id();
---
> return @mysql_insert_id();
602c602
< return mysql_error();
---
> return @mysql_error();
So now I'm at the original start point with no applied changes and I'm hoping you could help.
Thanks
--
Jerry