cancel
Showing results for 
Search instead for 
Did you mean: 

CCSFG - Cannot Modify Header Information - Warning After Submission

Occasional Participant

CCSFG - Cannot Modify Header Information - Warning After Submission

I just installed CCSFG (the AddUpdate version) to the root of my site. The form works correctly when I do not have the Success and Failure URLs specified. However, when I place links into those fields so that I can direct subscribers to a specific page, I get the following message after submission:

 

Warning: strpos() expects parameter 1 to be string, array given in /home/llpdn/public_html/CCSFG_0.0.6_addUpdate/cc_class.php on line 437

Warning: Cannot modify header information - headers already sent by (output started at /home/llpdn/public_html/CCSFG_0.0.6_addUpdate/cc_class.php:437) in/home/llpdn/public_html/CCSFG_0.0.6_addUpdate/signup/index.php on line 68

 

Line 68 in the index.php file refers to things having to do with the success and failure messages. I'm not a developer, so I'm not very knowledgeable about these things. What could be causing this? The URLs I'm attempting to use are Wordpress pages. 

 

 

5 REPLIES 5
CTCT Employee

Re: CCSFG - Cannot Modify Header Information - Warning After Submission

Hi LampLighter,

 

In your root directory, there should be a file called, config.php.  In there you should see this:

 

var $success_url = "";
var $failure_url = "";

 

Insert the success and failure URLs between the quotes like so:

var $success_url = "http://www.mydomain.com?request=success";
var $failure_url = "http://www.mydomain.com?request=failed";

 

Please let us know if this resolves your issues.

 

Thanks,

 

Andrew Weber
Associate Product Manager for EventSpot
Occasional Participant

Re: CCSFG - Cannot Modify Header Information - Warning After Submission

The config.php is there, and I can edit it, but I cannot upload it because of a permissions issue. However, it won't allow me to update the permissions. It just reverts every time I try. 

CTCT Employee

Re: CCSFG - Cannot Modify Header Information - Warning After Submission

Hi LamplighterP,

 

I'm sorry, I am not sure how we can be of assistance if you are unable to make the changes to the files on your server due to permissions.  You may want to contact your web hosting service for additional assistance on setting file/folder permissions.  

 

Please let us know if this works after you have proper permissions to edit the files.

 

Thanks,

Andrew Weber
Associate Product Manager for EventSpot
Occasional Participant

Re: CCSFG - Cannot Modify Header Information - Warning After Submission

i was able to login as root and adjust my permissions settings for this file. It still doesn't work correctly. I tried putting in the URLs exactly like you gave them to me, as well as with the domain replaced by my domain. I get the same message each time. 

CTCT Employee

Re: CCSFG - Cannot Modify Header Information - Warning After Submission

Hi,

 

This can be caused by uploading the files in ASCII instead of binary.  Could you try to upload the files to your server again, being sure to upload them in binary mode?

 

Best Regards,

Shannon W.

API Support Specialist