#4746 - License validation fails
Installation itself in the Module Loader works, however upon attempting to validate the license key as provided on the order page, validation fails and a dialog box comes up saying "Error: null". The loaded module for Sweet Hierarchy then disappears from Module Loader as if it were never installed.
Sugar application logs provide an empty stack trace and an "emergency module uninstall" , however Apache error logs provide the following:
**PHP Fatal error: Uncaught Error: Class 'GuzzleHttp\\Psr7\\Utils' not found in /var/www/html/vendor/guzzlehttp/psr7/src/MessageTrait.php:121\nStack trace:\n#0 /var/www/html/src/Security/HttpClient/ExternalResourceClient.php(310): GuzzleHttp\\Psr7\\Response->getBody()\n#1 /var/www/html/src/Security/HttpClient/ExternalResourceClient.php(272): Sugarcrm\\Sugarcrm\\Security\\HttpClient\\ExternalResourceClient->createResponse()\n#2 /var/www/html/src/Security/HttpClient/ExternalResourceClient.php(109): Sugarcrm\\Sugarcrm\\Security\\HttpClient\\ExternalResourceClient->request()\n#3 /var/www/html/modules/SweetHierarchy/license/SweetHierarchyOutfittersLicense.php(550): Sugarcrm\\Sugarcrm\\Security\\HttpClient\\ExternalResourceClient->get()\n#4 /var/www/html/modules/SweetHierarchy/license/SweetHierarchyOutfittersLicense.php(233): SugarOutfitters_API::call()\n#5 /var/www/html/modules/SweetHierarchy/license/SweetHierarchyOutfittersLicense.php(185): SweetHierarchyOutfittersLicense::doValidate()\n#6 /var/www/html/modules/SweetHierarchy/outfitterscontroller.php(16): in /var/www/html/vendor/guzzlehttp/psr7/src/MessageTrait.php on line 121, referer: https://{my-website}/index.php?module=SweetHierarchy&action=license&bwcFrame=1
**
I double-checked all Sugar directory file permissions and ownerships, as well as Quick Repair and Rebuild, cleared Sugar's cache folder, and cleared browser cache, but validation still fails. My SugarCRM version is 12.0.2.
2 years ago
Hi Ryan, can you please confirm if you've installed version 1.03 of Sweet Hierarchy?
2 years ago
Hi Miruna,
Yes I have version 1.03 of Sweet Hierarchy installed.
2 years ago
Could you share the URL please?
2 years ago
We have tested SweetHierarchy v1.0.3 in 2 different 12.0.2 instances and do not see the same issue as you are reporting, which leads us to suspect your install does not have the same libraries as our out-of-the-box composer. In v12.0.2 of Sugar, we rely on Guzzle PSR7 (1.8.2), https://github.com/guzzle/psr7/blob/1.8.2/src/Utils.php, could you please confirm if anyone from your team has changed that? Since this is an issue with your install and not SugarLabs addon, we kindly ask you to open a ticket with SugarCRM support (support@sugarcrm.com) so they can assist you further to get that instance back to its supported platform on 12.0.2.
2 years ago
Hi Miruna,
Just letting you know I fixed the issue. For some reason the entire Utils.php file for Guzzle had disappeared from the its proper path at /var/www/html/vendor/guzzlehttp/psr7/src . I made a new Utils.php file and copied the source code from the Github link you provided, and validation works now.
Thank you for your help! Ryan
2 years ago
Thanks for troubleshooting to resolve this!
Cheers, Miruna
2 years ago
Hi Miruna,
I will refer this case to our support team for the SugarCRM platform. Thank you.
2 years ago
We are unable to install SweetHierarchy because we have SugarSell Essentials, which does not allow us to install AddOns. Can you cancel this purchase so I am not charged in a few weeks?
2 years ago
Hi there,
I canceled the free trial for mcrandlemire. We hope you consider Sweet Hierarchy again if you upgrade your Sugar Sell edition.
I will also go ahead and close this case since I believe Ryan's issue has been resolved.