1. AussieTimmeh
  2. Commercial Templates
  3. Friday, 25 July 2014
  4.  Subscribe via email
Hi guys,

I just tried to move my website that uses the Presence template from being an add-on domain to its own account. I backed up the MySQL databases and FTP down all my files from the old host. I restored the MySQL databases and FTPed all the files up on the new host and updated configuration.php to the new website.

When I try to access the site, it says "Parse error: syntax error, unexpected 'defined' (T_STRING) in /home/riflebirdsimcom/public_html/home/templates/j51_presence/index.php on line 1".

When I change the site template to the defaults, it works fine. It even works ok on the Oxygen free template from you that I had installed prior to the move, before I bought Presence. It only has this error for the Presence template.

This is a problem because I love your templates and have used the on my sites that I want to move to a new web hoster. This is the first one I am trying to move.

I have attached the file in question. Does anyone have any ideas?
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Could I ask you to check the contents of your templates index.php (templates/j51_presence/index.php). It seems that all the HTML may have been parsed to one line in the transfer somehow?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

Yes, there is a difference when I open index.php in Notepad from the Presence template to all the others. When I FTP it directly from the working site to my desktop and open it in Notepad, it is exactly the same, all line feeds are gone.

It is weird that it worked on the old site and now it is not?

When I open it in Notepad++, it displays correctly, but when I save it off as a different name, it has lost all its line feeds again.

It is worth noting that when I extract the files directly from your installer package that you emailed to me recently, it similarly has no line feeds.

Is there anyway to restore these line feeds?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
I just tried installing the latest Presence template you sent me on a fresh Joomla install and it works fine, even though the file appears to have no line feeds in Notepad.

I tried copying that file straight into the Presence template I am using and still get the error.

This is very puzzling. I have customized the template so much that I really don't want to be starting from scratch again, but I might have to. This is worrying for the other websites I need to move to my new hosting - it could take hours or days to recreate all the templates. :ohmy:
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Ok, a quick update:

I tried re-installing the template on my live site without removing the customized one (thinking it would make a copy, but it didn't), and somehow it fixed the error without removing any of the changes that I had made to customize it to my site.

All is well that ends well, thanks for looking into this for me.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hard to say for sure what may have caused this issue. I know such issues can arise depending on the transfers type you are using with FTP. For best results I would suggest transferring your files using ASCII rather than binary. One possible cause at least! :huh:

Anyways... as you say.. all's well that ends well! :)

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks, I checked and the file transfer was definitely ASCII.

I'm not sure either but we'll see how the transfer of the other sites go.

Thanks again.
  1. more than a month ago
  2. Commercial Templates
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok