Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP Plugin fails in latest PHP 8.x versions #8

Open
3 tasks done
imachequa opened this issue Aug 4, 2023 · 0 comments
Open
3 tasks done

WP Plugin fails in latest PHP 8.x versions #8

imachequa opened this issue Aug 4, 2023 · 0 comments

Comments

@imachequa
Copy link

imachequa commented Aug 4, 2023

Before you open an issue:

OWA Version WP plugin: 2.1.5

PHP Version: 8.3.0 / 8.0.29 FPM

Webserver: Apache

Browser: Safari 16.5.2 / Firefox 116.0

Description

Upon login in into the admin, errors are reported (see latest part with the trace error logs)
it is still possible to continue into the web admin area by just going to any valid link of the portal.
No more errors are visible.

Possible Solution

Workaround is to disable Track WP Admin Pages and Track WP Admin Actions

Additional context

8.3.0 >> WP OWA
Fatal error: Uncaught ValueError: setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/State.php:373 Stack trace:
0 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/State.php(373): setcookie('owa_v', 'cdh=>0|||vid=>', 2006506657, '/; SameSite=lax', '')
1 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/State.php(201): OwaSdk\Tracker\State->createCookie('owa_v', 'cdh=>0|||vid=>', 2006506657, '/; SameSite=lax', NULL)
2 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/State.php(167): OwaSdk\Tracker\State->persistState('v')
3 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/TrackerClient.php(201): OwaSdk\Tracker\State->set('v', 'vid', false, 'cookie', true)
4 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/TrackerClient.php(183): OwaSdk\Tracker\TrackerClient->setVisitorId(Object(OwaSdk\Tracker\TrackingEvent))
5 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/TrackerClient.php(389): OwaSdk\Tracker\TrackerClient->manageState(Object(OwaSdk\Tracker\TrackingEvent))
6 /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/TrackerClient.php(475): OwaSdk\Tracker\TrackerClient->trackEvent(Object(OwaSdk\Tracker\TrackingEvent))
7 /installed-path/wp-content/plugins/open-web-analytics/owa-plugin.php(819): OwaSdk\Tracker\TrackerClient->trackAction('User Login', 'WordPress', 'admin-user')
8 /installed-path/wp-includes/class-wp-hook.php(310): owaWp_plugin->trackUserLoginAction('admin-user')
9 /installed-path/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
10 /installed-path/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
11 /installed-path/wp-includes/user.php(121): do_action('wp_login', 'admin-user', Object(WP_User))
12 /installed-path/wp-login.php(1241): wp_signon(Array, true)
13 {main} thrown in /installed-path/wp-content/plugins/open-web-analytics/vendor/open-web-analytics/owa-php-sdk/src/Tracker/State.php on line 373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant