Page 1 of 1

Install problems

Posted: Thu Apr 16, 2009 8:38 pm
by Paul_Martinsen
Hi,

I'm having trouble getting Swift Mailer working. When I require_once 'swift_required.php', I end up with an error in cache_deps.php:
[17-Apr-2009 13:27:18] PHP Parse error: syntax error, unexpected $end in C:\Users\...\Webroot\lib\php\dependency_maps\cache_deps.php on line 17

Putting a ?> at the end of this file fixes this error, but reveals another:
[17-Apr-2009 13:14:20] PHP Parse error: syntax error, unexpected T_UNSET in C:\Users\...\Webroot\lib\php\dependency_maps\mime_deps.php on line 76

Adding ?> to that file doesn't help.

Since these errors seem pretty fundamental, perhaps I've done something wrong? I'm very new to php.
I am using php 5.2.6 & Swift Mailer 4.0.3.

Any help appreciated.
Thanks,
Paul.

Re: Install problems

Posted: Sun Apr 19, 2009 11:02 pm
by Chris Corbyn
Wow, something is really screwed up with the library there. Did you upload it over FTP? Maybe try deleting it and re-uploading it again? Sounds like something is corrupted.

Re: Install problems

Posted: Mon Apr 20, 2009 3:33 am
by Paul_Martinsen
Thanks Chris. Found the problem. Was between screen and keyboard :oops:

I've been using the html preprocessor ppWizard to build my website and though I realized it had mangled your Swift library I missed fixing the files in the dependency_maps folder. Problem revealed when comparing the archive version with the file system version.

I got my site working using Swift v3 over the weekend. I found it was very easy understand and use so I'm looking forward to upgrading to v4. Thanks for putting together a great library.

Thanks for pointing me in the right direction.

Paul :D