by synolia

Field Mask will be your greatest ally in formatting your SugarCRM data. This module improves the reliability of your data and saves time for your whole team by allowing you to use input templates to your information fields (zip code, phone number, etc.).

Free Trial

By clicking you consent to share your profile with the developer

#4768 - Issue validating license for installed SynoFieldMask addon on SugarCRM 12.0.3

Open Installation created by Paul Ahn 10 months ago

Hi,

We're in the process of upgrading our on-prem SugarCRM instance from 11.0.3 to 12.0.3 and recently purchase the SynoFieldMask addon subscription for SugarCRM 7.x to 13. We've successfully installed SynoFieldMask for SugarCRM through the Module Loader, after SugarCRM was upgraded to 12.0.3, but we're unable to successfully validate the license. We had experienced this issue during the trial version and continue to have issues after purchasing the yearly subscription.

Steps to reproduce: 1. Navigate to Admin (Administration) using a SugarCRM Admin account. 2. Navigate to the SYNOLIA subpanel > License Keys 3. Enter the Field Mask License Key (copied and pasted from SugarOutfitters > Account > Purchases) and click Save 4a. Popup prompt states: Error: License validation valid* 4b. License Status value is: License is Not Valid

  • There is a 500 status error when attempting to access https://domain/rest/v11_16/SYNO_Settings/config

Please let me know if you have any questions or need more details. Thank you.

  1. vladtanasoiu member avatar

    Vlad

    10 months ago

    Hello Paul,

    Thank you for contacting us in regards with your issue with our module.

    The "500 status error" is directly linked to a php error and there should be a log in your php error log file.

    Can you please provide us with the log generated when you try to validate the licence key?

    This should help us identify the cause of the issue.

    Kind regards, Vlad T. Synolia

  2. PaulAhn308122 member avatar

    Paul Ahn

    10 months ago

    Hi Vlad,

    Thank you for your response. Here's the PHP error captured in the PHP error log file:

    [30-Jun-2023 13:03:56 America/New_York] PHP Fatal error:  Uncaught TypeError: Sugarcrm\Sugarcrm\custom\Synolia\SynoLicensing\Helpers\LicensingHelper::setLastValidationData(): Argument #3 ($isValid) must be of type bool, null given, called in C:\HTTPROOT\domain.com\custom\Synolia\SynoLicensing\Helpers\LicensingHelper.php on line 136 and defined in C:\HTTPROOT\domain.com\custom\Synolia\SynoLicensing\Helpers\LicensingHelper.php:159
    Stack trace:
    #0 C:\HTTPROOT\domain.com\custom\Synolia\SynoLicensing\Helpers\LicensingHelper.php(136): Sugarcrm\Sugarcrm\custom\Synolia\SynoLicensing\Helpers\LicensingHelper->setLastValidationData()
    #1 C:\HTTPROOT\domain.com\custom\Synolia\SynoLicensing\LogicHooks\ValidLicenses.php(58): Sugarcrm\Sugarcrm\custom\Synolia\SynoLicensing\Helpers\LicensingHelper->validate()
    #2 C:\HTTPROOT\domain.com\include\utils\LogicHook.php(281): Sugarcrm\Sugarcrm\custom\Synolia\SynoLicensing\LogicHooks\ValidLicenses->run()
    #3 C:\HTTPROOT\domain.com\include\utils\LogicHook.php(167): LogicHook->process_hooks()
    #4 C:\HTTPROOT\domain.com\data\SugarBean.php(7340): LogicHook->call_custom_logic()
    #5 C:\HTTPROOT\domain.com\modules\SYNO_Settings\clients\base\api\SYNO_SettingsConfigApi.php(115): SugarBean->call_custom_logic()
    #6 C:\HTTPROOT\domain.com\include\api\RestService.php(310): SYNO_SettingsConfigApi->setSynoSettingsConfig()
    #7 C:\HTTPROOT\domain.com\api\rest.php(23): RestService->execute()
    #8 {main}
      thrown in C:\HTTPROOT\domain.com\custom\Synolia\SynoLicensing\Helpers\LicensingHelper.php on line 159
    

    Please let me know if you have any questions or need more info.

    Thanks, Paul

    • vladtanasoiu member avatar

      Vlad

      10 months ago

      Hi Paul,

      Thank you for providing the error log. It is quite clear what the issue is and we will adress it as quickly as possible.

      There will most probably be a new version that fixes this issue next week.

      Kind regards, Vlad T. Synolia

    • PaulAhn308122 member avatar

      Paul Ahn

      10 months ago

      Hi Vlad,

      Thank you for the update and for looking into this. Please let us know when the new version is available to download.

      Thanks, Paul

  3. vladtanasoiu member avatar

    Vlad

    10 months ago

    Hi Paul,

    We have checked the code and have found that the fix is already in place on the most recent version of the package (202303052158) compatible with your version of Sugar (12.0.X).

    Can you please uninstall the current package and thendownload and install the package "SUGAR_SYNOFIELDMASK_12-to-13.0_202303052158.zip" and see it you get the same error message?

    Kind regards, Vlad T Synolia

  4. PaulAhn308122 member avatar

    Paul Ahn

    9 months ago

    Hi Vlad,

    Thank you for checking the code and letting me know that this issue was already fix in the most recent version (package 202303052158). I've followed the instructions you provided and here are my updates:

    1. I successfully uninstalled and deleted the current installed package (202207051438) using the Admin Module Loader

    2. I then successfully uploaded and installed the latest package (202303052158) using the Admin Module Loader

    3. In the Synolia Add-Ons License Keys page, I can now save the Field Mask License Key without the receiving the error exception from before -- I now receive a prompt that states: Settings Settings: Settings configuration settings have been saved. -- However, when I navigate back to the Synolia Add-Ons License Keys page, I see that the License Status is still "License is Not Valid"

    4. Furthermore, when I go to the SynoFieldMask manage page and attempt to save changes to set a mask on a field to a selected module, I receive the follow error message:

    Cross Site Request Forgery (XSRF) Attack Detected
    Form authentication failure (Administration -> synofieldmask_manage). Contact your administrator.
    

    -- Our config_override.php file contains the following configuration:

    $sugar_config['http_referer']['list'][] = 'domain.com';
    

    -- Our SugarCRM logs captured the following FATAL and DEBUG errors:

    [FATAL] CSRF: attack vector detected, missing form token field
    [FATAL] CSRF: auth failure for Administration -> synofieldmask_manage
    [DEBUG] Hook called: ::server_round_trip
    [DEBUG] Creating new instance of hook class 'SugarMetric_HookManager' without parameters
    [DEBUG] Unregistered Transaction name for URI: /index.php?module=Administration&action=synofieldmask_manage
    

    -- There were no error exceptions captured in our PHP logs

    Please let me know if this provides you with the information you need or if you have any questions.

    Thanks, Paul

  5. dnaimark member avatar

    dnaimark Verified Purchase

    9 months ago

    Hi Vlad,

    Please let us know if you have any updates on this case since the problem is still an issue for us.

    Note that I am Paul Ahn's manager and am adding this comment on his behalf because Paul is not currently designated as a verified purchaser. Is there a way for Paul to be added as a verified purchaser so that he can add comments to cases? Thanks very much.

    David Naimark

    • vladtanasoiu member avatar

      Vlad

      9 months ago

      Hello David,

      I apologize for the delay in replying you. I do not know how to add Paul to the verified purchaser, you will probably have to contact Sugar directly (via the contact us form) to find an answer. In any case, I would have answered Paul without the verified purchaser badge.

      I have tried to replicate your issue but didn't encounter any problems. Here is a video of a standard demo instance in Sugar Entreprise 12.0.3 where I install, configure and use the module : https://www.screencast.com/t/dcZF4PBFVx

      Sugar KB provides some guidelines on how to deal with this issue, but it seems dependent on the server configuration: https://support.sugarcrm.com/Knowledge_Base/Troubleshooting/Troubleshooting_Cross-Site_Forgery_Messages/

      https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/2679/cross-site-request-forgery-xsrf-attack-detected

      Unfortuantelly I cannot assist on the issue of "Cross Site Request Forgery (XSRF) Attack Detected".

      Please let me know if you manage to make the module work or if you have any other quetions.

      Kind regards, Vlad T Synolia

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