multiple php errors

Greetings,

I just did a fresh install of SuiteCRM on my host. The program does now seem to work, but I did receive and am still receiving multiple php errors. Any suggestions on getting this fixed would be appreciated.

When creating a new installation, on the page after I entered database details, I encountered this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/myhostname/public_html/crm/install/performSetup.php:148) in /home/myhostname/public_html/crm/modules/Users/Save.php on line 490

Then, after creating an employee and viewing his page, I encountered these errors:

Warning: include(custom/modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php): failed to open stream: No such file or directory in /home/myhostname/public_html/crm/include/social/hooks.php on line 47

Warning: include(custom/modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php): failed to open stream: No such file or directory in /home/myhostname/public_html/crm/include/social/hooks.php on line 47

Warning: include(): Failed opening 'custom/modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php' for inclusion (include_path='/home/myhostname/public_html/crm:/home/myhostname/public_html/crm/include/HTMLPurifier/standalone:/home/myhostname/public_html/crm/include/..:.:/usr/lib/php:/usr/local/lib/php') in /home/myhostname/public_html/crm/include/social/hooks.php on line 47

Warning: Illegal string offset 'beans' in /home/myhostname/public_html/crm/include/social/hooks.php on line 48

Warning: array_key_exists() expects parameter 2 to be array, string given in /home/myhostname/public_html/crm/include/social/hooks.php on line 48

Warning: include(custom/modules/Connectors/connectors/sources/ext/rest/twitter/mapping.php): failed to open stream: No such file or directory in /home/myhostname/public_html/crm/include/social/hooks.php on line 55

Warning: include(custom/modules/Connectors/connectors/sources/ext/rest/twitter/mapping.php): failed to open stream: No such file or directory in /home/myhostname/public_html/crm/include/social/hooks.php on line 55

Warning: include(): Failed opening 'custom/modules/Connectors/connectors/sources/ext/rest/twitter/mapping.php' for inclusion (include_path='/home/myhostname/public_html/crm:/home/myhostname/public_html/crm/include/HTMLPurifier/standalone:/home/myhostname/public_html/crm/include/..:.:/usr/lib/php:/usr/local/lib/php') in /home/myhostname/public_html/crm/include/social/hooks.php on line 55

Warning: Illegal string offset 'beans' in /home/myhostname/public_html/crm/include/social/hooks.php on line 56

Warning: array_key_exists() expects parameter 2 to be array, string given in /home/myhostname/public_html/crm/include/social/hooks.php on line 56

Hi,
this is a know bug. Search in forum.

Solution is : search in file where error occur and then remove the “custom” in include path.
see here why : https://suitecrm.com/community/roadmap
Regards

Thanks for the reply.

Do you think it’s safe to do a “search and replace” on all the code which has “custom” in the include path, and just replace “custom” with my directory name?

I thought this might be more thorough than just fixing the issues as I randomly find them.

Thanks for any suggestions.

Hi,
All files (not all) in custom module are moved to core.
Then I think it’s more complicate than do a global search/replace because… all core file do something like this :
if file exist in custom ,… then include the file !! => upgrade safe modification do by custom developper :slight_smile:

For u sample error :

Warning: include(custom/modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php): failed to open stream: No such file or directory in /home/myhostname/public_html/crm/include/social/hooks.php on line 47

Juste change in /home/myhostname/public_html/crm/include/social/hooks.php on line 47 and remove “custom/”
this file custom/modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php
is now modules/Connectors/connectors/sources/ext/rest/facebook/mapping.php

Regards

Thank you very much. Makes perfect sense.