Skip to content

Unable to configure Website ID - "There has been a critical error on this website..." #4

@jrbranaa

Description

@jrbranaa

When first attempting to configure the WP plugin, I am not able to select the Website ID from the dropdown. I've provide all the other configuration information (API Key, Secret Auth, Endpoint URL). Hoping that I can then select the Website ID, I press Save and then the following error message is displayed in place of the dropdown:

"There has been a critical error on this website. Please check your site admin email inbox for instructions."

Once this happens, I am no longer able to save any changes due to lack of Save button. Deactivating and reinstalling the plug-in doesn't help.

OWA Plug-in Version: 2.1.1
OWA Server Version: 1.7.6
WordPress Version: 5.9.1

Both WordPress and OWA servers are running on Ubuntu (18.04 and 20.04 respectively).

If you'd like the values saved in WP for the owa_wp, please DM me and I will share.

The following email is sent to me by the site:

Error Details

An error of type E_ERROR was caused in line 270 of the file /var/www/html/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/OwaClient.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/OwaClient.php:270
Stack trace:
#0 /var/www/html/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/OwaClient.php(270): array_key_exists()
#1 /var/www/html/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Sites/SitesClient.php(39): OwaSdk\OwaClient->makeRequest()
#2 /var/www/html/wp-content/plugins/open-web-analytics/owa-plugin.php(1192): OwaSdk\Sites\SitesClient->listSites()
#3 /var/www/html/wp-includes/class-wp-hook.php(307): owaWp_plugin->getSitesFromOwa()
#4 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#5 /var/www/html/wp-content/plugins/open-web-analytics/src/settings/fields/select.php(19): apply_filters()
#6 /var/www/html/wp-admin/includes/template.php(1743): owaWp\settings\fields\select->render()
#7 /var/www/html/wp-content/plugins/open-web-analytics/src/settings/page.php(428): do_settings_fields()
#8 /var/www/html/wp-content/plugins/open-web-analytics/src/settings/page.php(289): owaWp\settings\page->doTabbedSettingsSections()
#9 /var/www/html/wp-includes/class-wp-hook.php(307): owaWp\settings\page->renderPage()
#10 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#11 /var/www/html/wp-includes/plugin.php(474): WP_Hook->do_action()
#12 /var/www/html/wp-admin/admin.php(259): do_action()
#13 {main}
thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions