Install problems

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
Paul_Martinsen
Forum Newbie
Posts: 2
Joined: Thu Apr 16, 2009 8:33 pm

Install problems

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Install problems

Post 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.
Paul_Martinsen
Forum Newbie
Posts: 2
Joined: Thu Apr 16, 2009 8:33 pm

Re: Install problems

Post 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
Post Reply