Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • guywheels Friend
    #135198

    ——————————————————————————–

    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 );
    }
    }

    Your help will be appreciated Template Ja-Teline

    Guy

    guywheels Friend
    #278850

    You mean to tell me there is nobody out there that can help with this issue!

    bennitos Friend
    #278853

    I cant tell you why you are getting that error.

    But i will recommend you install this module for google Analytics so you dont have to edit any code:

    http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,3356/Itemid,35/

    Never had a problem with this.

    For more info you can also look at scotty’s topic here:
    http://www.joomlart.com/forums/topic/setting-up-google-analytics-on-your-website/

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  bennitos 16 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum