- Issue created by @hristos
- 🇺🇸United States bluegeek9
Hi hristos,
That you for reporting the bug. This is the line that has the error:
public function fetchView(string $type, int $id): StatisticsViewsResult|false {
The vertical pipe, |, in `StatisticsViewsResult|false` is the cause the error. This syntax is not supported in PHP 7. We will remove the `|false` in 8.x-2.17
Upgrading to PHP 8.1 or higher should also resolve the error.
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
10:34 9:37 Queued - @bluegeek9 opened merge request.
- Status changed to Needs review
over 1 year ago 9:57am 25 August 2023 - Assigned to bluegeek9
- Status changed to Active
over 1 year ago 3:29pm 25 August 2023 - last update
over 1 year ago 61 pass - last update
over 1 year ago 61 pass -
bluegeek9 →
committed 2648ecc2 on 8.x-2.x
Issue #3383142 by bluegeek9: ParseError: syntax error, unexpected
-
bluegeek9 →
committed 2648ecc2 on 8.x-2.x
- 🇺🇸United States bluegeek9
Two of the tests are stilling failing under php 7.4 / mysql 5.7
https://www.drupal.org/pift-ci-job/2748210 →I added PHP 7.4 testing to reduce the chances of bugs like this happening in the future.
- last update
over 1 year ago 61 pass - @bluegeek9 opened merge request.
- last update
over 1 year ago 61 pass - last update
over 1 year ago 61 pass - last update
over 1 year ago 61 pass -
bluegeek9 →
committed 7839ebd1 on 8.x-2.x
Issue #3383142 by bluegeek9: ParseError: syntax error, unexpected
-
bluegeek9 →
committed 7839ebd1 on 8.x-2.x
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - @bluegeek9 opened merge request.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass -
bluegeek9 →
committed 80c2969e on 8.x-2.x
Issue #3383142 by bluegeek9: ParseError: syntax error, unexpected
-
bluegeek9 →
committed 80c2969e on 8.x-2.x
- Issue was unassigned.
- Status changed to Fixed
about 1 year ago 7:00pm 13 December 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
7 months ago 3:47pm 22 May 2024 - 🇺🇸United States bluegeek9
This issue was resolved. A new release, 8.x-2.17, will be made soon, May 31st.
This is an excellent opportunity to beta test the dev branch, and report any issues.
Contributors (5)
bluegeek9 → , roshni27 → , abhishek_gupta1 → , sarwan_verma → , SandeepSingh199 →
Changelog
Issues: 32 issues resolved.
Changes since 8.x-2.16 → :
Bug
- #3432630 → : Remove Not rendering HTML
- #3395217 → by bluegeek9 → : On a fresh install of a Drupal site with this module included, we get dependency errors
- #3400985 → by bluegeek9 → : Site break when placed visitors module
- #3413155 → by abhishek_gupta1 → , bluegeek9 → : Give Default value to all $agent keys
- #3383142 → by bluegeek9 → : ParseError: syntax error, unexpected
- #3380760 → : Warning: Undefined array key
Feature
- #3376256 → : Page Performance Metrics
- #3378568 → : Ajax Replace Report
- #3376234 → : Route reports
- #3378580 → : Browser Report(s)
- #1087268 → by bluegeek9 → : Exclude robots from the statistics
- #3376233 → by bluegeek9 → : View filter date range
- #3369318 → : Log OS and device infomation - BrowserCap replacement
- #3376235 → by bluegeek9 → : Drush command: Download MaxMind database
- #3250285 → by bluegeek9 → : Performance: Add db indexes
Task
- #3389685 → : Three different errors displayed
- #3376397 → by bluegeek9 → , roshni27 → : Remove block settings from visitors.config
- #3376392 → : Move Visitors Report menu
- #3444385 → : Module path
- #3443031 → by bluegeek9 → : Issues reported by PHPCS
- #3392006 → by bluegeek9 → , sarwan_verma → : watchdog_exception() deprecated
- #3423013 → : Deprecated function user_role_names()
- #3423001 → by bluegeek9 → : composer.json missing "repositories"
- #3397326 → by bluegeek9 → , SandeepSingh199 → : Issues reported by PHPStan
- #3401384 → : Remove Drupal 9 from GitLab CI
- #3393046 → by bluegeek9 → : Code Coverage
- #3377961 → : Replace visitors/hosts reports with views
- #3377962 → : Replace visitors/hits with Views
- #3377964 → : Replace /visitors/pages with Views
- #3377960 → by bluegeek9 → : Log visitor local time
- #3376241 → : Drush Command: Rebuild Geo Location
- #3377958 → : Tracking cookies