• neotechnomad

    (@neotechnomad)


    I cannot generate an API Key. I continually get this error:

    =======

    [02-Apr-2023 20:14:06 UTC] PHP Fatal error: Uncaught Error: Undefined constant “SUCURISCAN_API_URL” in /home/******/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php:232
    Stack trace:

    0 /home/******/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php(342): SucuriScanAPI::apiCallWordpress()

    1 /home/******/public_html/wp-content/plugins/sucuri-scanner/src/settings-general.php(104): SucuriScanAPI::registerSite()

    2 /home//public_html/wp-content/plugins/sucuri-scanner/src/pagehandler.php(133): sucuriscan_settings_general_apikey()

    3 /home/******/public_html/wp-includes/class-wp-hook.php(308): sucuriscan_settings_page()

    4 /home/******/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

    5 /home/******/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

    6 /home/******/public_html/wp-admin/admin.php(259): do_action()

    7 {main}

    thrown in /home/******/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php on line 232

    ============

    Please assist.

    • This topic was modified 1 year ago by neotechnomad. Reason: spelling
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter neotechnomad

    (@neotechnomad)

    Is there going to be a resolution to this error?

    Thread Starter neotechnomad

    (@neotechnomad)

    On my other website which has had the plugin activated for some time, the Audit Logs do not load in the dashboard.

    [09-Apr-2023 22:04:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant “SUCURISCAN_API_URL” in /home/*****/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php:232
    Stack trace:

    0 /home/*****/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php(397): SucuriScanAPI::apiCallWordpress()

    1 /home/*****/public_html/wp-content/plugins/sucuri-scanner/src/auditlogs.lib.php(105): SucuriScanAPI::getAuditLogs()

    2 /home/*****/public_html/wp-content/plugins/sucuri-scanner/src/pagehandler.php(199): SucuriScanAuditLogs::ajaxAuditLogs()

    3 /home/*****/public_html/wp-includes/class-wp-hook.php(308): sucuriscan_ajax()

    4 /home/*****/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

    5 /home/*****/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

    6 /home/*****/public_html/wp-admin/admin-ajax.php(188): do_action()

    7 {main}

    thrown in /home/*****/public_html/wp-content/plugins/sucuri-scanner/src/api.lib.php on line 232

    Also this in Settings > API Service Communication:

    “SUCURI: The status of the API service could not be enabled because the required SUCURISCAN_API_URL configuration was not found.”

    “API Service Communication — Disabled — Service API URL not set. To enable the API service, add your API service URL as the SUCURISCAN_API_URL constant value to the main configuration file (wp-config.php).”

    What is the “API service URL as the SUCURISCAN_API_URL constant value to the main configuration file” that I have to add??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot Generate API Key’ is closed to new replies.