by NS-Team

The File Field type allows you to add unlimited file upload fields to any module. Need to required certain files such as a quote? Add files to any module with the File field available in Studio

Free 30 day trial
Try it Now

#4372 - Getting fatal php error in log since installing this plugin

Open Bug? created by dgailwhitt Verified Purchase 7 months ago

This plugin added files in the custom/Campaigns modules specifically WebToPersonCapture.php and this file has the line "use SuiteCRM\Utility\SuiteValidator;" in the file. Our version of SuiteCRM 7.8.31 does not have this Class and we are getting this error in our log. php_errors.log:[20-Jun-2022 06:29:10 America/Chicago] PHP Fatal error: Class 'SuiteCRM\Utility\SuiteValidator' not found in /var/www/html/suitecrm/custom/modules/Campaigns/WebToPersonCapture.php on line 66 I don't see this Class in version 7.12.6 on Github so I have no way of adding it to my version. If we remove the customized file, what problems might we have? Thanks, Dianna

  1. bluquet member avatar

    NS-Team Provider Affiliate

    7 months ago

    Sorry about that. There are so many changes in SuiteCRM structure that it's hard to make everything work with any version.

    If you don't use Web to Person forms, you can remove that file. If you do, I will need to get back to you as there are other files to remove and one to modify.

    • dgailwhitt member avatar

      dgailwhitt Verified Purchase

      7 months ago

      Thanks for the quick reply. We use WebToLeadCapture which did not appear to be changed. I have removed the file from the custom/Campaigns directory and saved it in a subdirectory below that in case we find that we need it.

  2. bluquet member avatar

    NS-Team Provider Affiliate

    7 months ago

    You also need to modify custom/Extension/application/Ext/EntryPointRegistry/FileField.php and remove re-definition of WebToPersonCapture entry point then Repair / Quick Repair. You can also remove GenerateWebToLeadForm.php and WebToLeadFormBuilder.php from custom/modules/Campaigns

    If you need file fields in your web forms, we will look at the possibility to support version 7.8.

    • dgailwhitt member avatar

      dgailwhitt Verified Purchase

      7 months ago

      Thanks I will make those changes. We are considering going to SuiteCRM 8. I see that your Supported Versions only goes to 7.12.2. Do you plan to support 8 soon?

  3. bluquet member avatar

    NS-Team Provider Affiliate

    7 months ago

    I can't answer that question. There is currently no developer documentation on SuiteCRM customization framework and front-end/back-end customizations. However, legacy support is supposed to manage customizations developed for SuiteCRM 7.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...