The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Php - I am assuming this is authentication failure

Occasional Participant

Php - I am assuming this is authentication failure

Just using the sample out of the box code and only modifying:

       var $login = 'recb2'; //Username for your account

        var $password = 'Rb2022'; //Password for your account

        var $apikey = 'some key characters...';

in cc_class.php

every choice selected from the header returns a 500 error.  What am I missing?

Buddy Peacock


Re: Php - I am assuming this is authentication failure

Those variables in cc_class.php should be the only files that need to be modified. If you were having an authentication issue though, it would be returning a 401 error and you would still be able to see the form elements on the page.


Can you copy/paste exactly the error message you are seeing on your screen?

Are there any other warnings or errors that are on this page other than the 500? 

Would you be able to give us the URL to the page that is having this error?

David J

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More