Warning while trying to create


I have been trying to create a web-to-lead form in SuiteCRM version 7.6.4 and the only thing I found was :
marketing --> Campaign --> create person form.

I assume this is the same as web-to-lead form.

Here are my two questions and would appreciate any help from the community:

  1. I am getting the following warning during the process of creating the person form. I am getting it at the beginning and it never disappears:
    Warning: Creating default object from empty value in /homexxxx/public_html/suitecrm/modules/Campaigns/WebToLeadCreation.php on line 136

Can someone please tell me how to get rid of it?

  1. during the process of creating the person form, I have to select a campaign.It is a required field. I just installed the SuiteCRM and have no campaigns.

Can someone please explain the relationship between the campaign and the person form? Can I turn this required field off?

Thank you!

Turn off warnings in your PHP.ini file.

Hi Andy,

Thank you for your reply.

I am using a shared server of a webhosting company. I checked my CPanel and I the only php.ini I saw is a file in my root directory with lines starting with “;”. If I understand correctly, using “;” means comments.

Can you please give me more info where to start?

Sorry, I am new to this.

Thank you,

as you are uisng shared hosting you probably wont have control of your php.ini settings try adding this line to Suite’s index.php at the top right after the <?php


Hi Andy,

Thank you very much!

It worked like a charm :slight_smile: .

One question: will this have impact on other error messages for debugging purposes?
I mean, if I make some customization and there are some errors in my coding, will I get error messages?

Thanks again,

It will have an impact. If you need to debug I would remove the line temporarily.

1 Like

Ok, that’s what I thought and just wanted to be certain.

Again, thank you so much. It was very helpful.