Zen Cart Logo
Forums / General Questions / PHP help with broken tpl_main_page.php

PHP help with broken tpl_main_page.php

Locked

Views: 1,297

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Sep 2008, 3:19 AM
#1
heresysnowboarding avatar

heresysnowboarding

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

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

17 Sep 2008, 10:53 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

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

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?

17 Sep 2008, 11:01 AM
#3
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

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...

17 Sep 2008, 11:06 PM
#4
heresysnowboarding avatar

heresysnowboarding

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

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.

18 Sep 2008, 6:48 PM
#5
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

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?