Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default PHP help with broken tpl_main_page.php

    Hi sorry - am a newbie
    My guy who does this is away hence the question
    I have an ecommerce site at heresysnowboarding.com/store

    Last night I put a php include (not a require) in tpl_main_page.php and this include called a php file which echo'd some javascript for Google Analytics.

    Last night it was fine.
    This morning, as you can see, it is broken
    I have removed the php javascript call but and re-uploaded the file but it's still broken.

    I'd love if anyone can give me some ideas...

    thanks
    tm

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: PHP help with broken tpl_main_page.php

    Grab a copy of your edited file and save it on your local drive. Then re-install the original from your backup... (You do have the backup...???)

    Then, compare the original with your edited version using winmerge to see where differences lie.

    PS. There is a module for Google Analytics - so no need to hack the code, surely?

  3. #3
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: PHP help with broken tpl_main_page.php

    do you have a backup of tpl_main_page.php to try?

    was your site fully functioning? with products etc...

    You may have removed a little too much and changed the structure of the php...
    ~Steve~

  4. #4
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: PHP help with broken tpl_main_page.php

    Hi guys,
    I absolutely had a backup - this has not helped though...
    I have someone looking at it now...I don't know what's gone wrong at all.
    Site is ecommerce and was fully functioning (even after the change, it just died overnight Australian time)
    Re: GAnalytics module, yes I'll have to install that.

  5. #5
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: PHP help with broken tpl_main_page.php

    I see your site is working... For the benefit of other forum users, do you know what the solution was?
    ~Steve~

 

 

Similar Threads

  1. Struggling with $flag_disable_left, right in tpl_main_page.php
    By tcarden in forum Customization from the Admin
    Replies: 4
    Last Post: 11 Dec 2012, 01:05 AM
  2. need html_header.php & tpl_main_page.php files
    By marvin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2011, 06:32 PM
  3. Disable Columns with tpl_main_page.php - help please
    By wasana in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Jul 2010, 04:49 AM
  4. tpl_main_page.php problem..help :)
    By florence in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 26 Jul 2006, 11:00 PM
  5. strange problem with css and modification of tpl_main_page.php
    By sartzsche in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 May 2006, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg