Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Basic PHP Website (2018) Adding a Basic Form Using A Third-Party Library

Sean Flanagan
Sean Flanagan
33,235 Points

Error reading PHPMailer file

Hi.

I downloaded the PHPMailer folder to my computer then uploaded it to the workspace. Every time I try to do something with it, I get an error message. I can't rename it. I can't open the folders or files inside it. I can't delete it.

https://w.trhou.se/lw1sruifrp

Chris Shaw
Chris Shaw
26,676 Points

Hi Sean Flanagan,

Looking into your workspace, the vendor folder is empty which is the reason for the errors since the files don't exist.

1 Answer

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Chris Shaw.

I reopened my workspace and PHPMailer wasn't there. However I still had the PHPMailer folder on my local computer so I uploaded PHPMailer again. This time the upload seems to have been successful. I don't know why it didn't work the first time but there's no point in sweating the small stuff.

So in future, if I upload something and the workspace won't let me do anything I shall:

1 Close down my workspace 2 Reopen it 3 Upload again

Thanks Chris! :-)

Chris Shaw
Chris Shaw
26,676 Points

Glad to hear you got it working, Sean Flanagan 🙂.