Google Analytics code messed up index.php file

  • Meepp
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 10 months ago #37006 by Meepp
Hi HotJoomla Team,

I created a Google Analytics .php file containing the Analytics code and then placed this command <?php include_once("analyticstracking.php") ?> just under the <body> on template/clinic/index.php file.

However, it seems to have corrupted my index.php file as I cannot get the website to load and instead get this error "Parse error: syntax error, unexpected $end in /home3/marksong/public_html/templates/hot_clinic/index.php on line 342"

I not sure how to correct it. Do you have any suggestions. I will send you the FTP details via 'report to moderator' link.

Thanks, I appreciate any help you can give me as I somehow managed to corrupt my backup as well.

Please Log in to join the conversation.

More
10 years 10 months ago #37018 by ivan.milic
Post your index.php

Please Log in to join the conversation.

More
10 years 10 months ago #37019 by ivan.milic
Your ftp setting does not work. I tried fileZilla and total commander.

Response: 331 User xxxxxxxxxxxxxxxxxxxxxxxxxxxxx OK. Password required
Command: PASS ********
Response: 530 Login authentication failed
Error: Critical error
Error: Could not connect to server

Please Log in to join the conversation.

  • Meepp
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 10 months ago #37106 by Meepp
Hi Ivan,

I have attached my index file, as requested. I will send you a new ftp login via private mail.



Thanks for your help,

Please Log in to join the conversation.

More
10 years 10 months ago - 10 years 10 months ago #37117 by ivan.milic
To attach file you need to zip it first.

FTP again does not work, but FTP is relay not needed just post that file.
Last edit: 10 years 10 months ago by ivan.milic.

Please Log in to join the conversation.

  • Meepp
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 10 months ago #37169 by Meepp
Hi Ivan,

So sorry about the index file. I've re-attached it as a .zip file.

File Attachment:

File Name: index.zip
File Size:4 KB


Also, my apologies that you've been unable to get into the FTP account for that website. I've been able to open it using CuteFTP 8.3 but it initially tells me there is no such folder, yet it brings up the screen and when I use my up-arrow button (twice)it pulls up all the files, no problem. I've done heaps of FTP setups but clearly I've done something dumb with this one. Once again, my apologies.

Thank you for your help.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum