• Resolved gmrzkz

    (@gmrzkz)


    Hi, when trying to add keys following error appears – Fatal error: Uncaught TypeError: Key expected for argument 2. String given instead. in /var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/vendor/defuse/php-encryption/src/Crypto.php:29 Stack trace: #0 /var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/includes/Utils/CryptoHelper.php(154): Defuse\Crypto\Crypto::encrypt('TESTKEY', '') #1 /var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/includes/Utils/CryptoHelper.php(203): IdeoLogix\DigitalLicenseManager\Utils\CryptoHelper->encryptValue('TESTKEY') #2 /var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/includes/Core/Services/LicensesService.php(189): IdeoLogix\DigitalLicenseManager\Utils\CryptoHelper::encrypt('TESTKEY') #3 /var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/includes/Controllers/Licenses.php(214): IdeoLogix\DigitalLicenseManager\Core\Services\LicensesService->create(Array) #4 /var/www/u0755755/data/www/gamerz.kz/wp-i in?/var/www/u0755755/data/www/gamerz.kz/wp-content/plugins/digital-license-manager/vendor/defuse/php-encryption/src/Crypto.php?on line?29

    Please help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darko G.

    (@darkog)

    Hey @gmrzkz,

    Looks like you are missing the cryptographic secrets file in /wp-content/uploads/dlm-files/defuse.txt and /wp-content/uploads/dlm-files/secret.txt.

    In this case simple deactivation/activation should resolve the issues. In case your /wp-content/uploads/dlm-files/ directory is not writable this can fail, so please ensure it is writable.

    The other alternative is to add the cryptographic secrets in your wp-config.php file as follows (please ensure your keys are unique):

    define('DLM_PLUGIN_DEFUSE', 'def00000a7647d6206cad98ace79b227b7dad74a6e23f2e7b4c9bb321fa3718b1f6dcd936eeeb4100a68c6f8a424c87c66ee16416c23e382b74e18b7ac736e23a99e59f5');
    define('DLM_PLUGIN_SECRET', '4580100cb60edd0675966ad9448c22915d86e00447b029fba45846f537e33475');

    I hope this helps.

    Best Regards,
    Darko

    Thread Starter gmrzkz

    (@gmrzkz)

    There is no such folder in Uploads folder, i changed the rights to 775, reinstalled the plugin but it did not help. These files do not appear

    Plugin Author Darko G.

    (@darkog)

    Hey @gmrzkz, Do you see anything in the logs?

    Also, did you tried the other approach with the wp-config.php configuration as explained above? That should work right away.

    I am currently testing the issue you are having and will follow up with my findings (if any).

    Best,
    Darko

    Plugin Author Darko G.

    (@darkog)

    Closing this for inactivity.

    If the problem persist, please contact us on [email protected] and technical support will be with you, asap.

    Best,
    DG

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t add keys – FATAL ERROR’ is closed to new replies.