Hi
I was trying to add google analytics to my website. Logged in and selected edit HTML. added code supplied by google after “/body tag” as instructed.
When trying to open my site via internet all i get is a blank page.
Logging on to the backend to try and remove code inserted I get the following error when trying to “edit HTML” of template
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/XXXXXXXXX/public_html/administrator/components/com_templates/admin.templates.php on line 301
When I check the above this is what I have
if ( $fp = fopen( $file, ‘r’ ) ) {
$content = fread( $fp, filesize( $file ) );
$content = htmlspecialchars( $content );
HTML_templates::editTemplateSource( $p_tname, $content, $option, $client );
} else {
mosRedirect( ‘index2.php?option=’. $option .’&client=’. $client, ‘Operation Failed: Could not open’. $file );
}
}
Please your help will be appreciated
Guy