JAMSoftLA
(Jam Soft La)
January 21, 2023, 7:07am
#1
WARNING [2023-01-21 06:58:33] 1778 /var/www/html/matomo-4.13.1/core/Console.php(135): Deprecated - Callables of the form [“Piwik\Console”, “Symfony\Component\Console\Application::doRun”] are deprecated - Matomo 4.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
Hi,
Already reported in:
opened 04:32PM - 18 Jan 23 UTC
Bug
Regression
From https://forum.matomo.org/t/core-archive-datacollection-php-123-deprecated/4… 8979/9
- [x] WARNING /home/analytics/www/core/CronArchive.php(251): Deprecated - Creation of dynamic property Piwik\CronArchive::$rawLogDao is deprecated - Matomo 4.13.1
- [x] WARNING /home/analytics/www/core/Console.php(135): Deprecated - Callables of the form ["Piwik\Console", "Symfony\Component\Console\Application::doRun"] are deprecated - Matomo 4.13.1 (see also https://github.com/matomo-org/matomo/issues/19343#issue-1268610515 )
From https://forum.matomo.org/t/php-8-2-depreciated-features-on-ver-4-13-1/49221
- [ ] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 52 (see also https://github.com/matomo-org/matomo/issues/19343#issuecomment-1296524552 )
- [ ] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/symfony/console/Symfony/Component/Console/Helper/QuestionHelper.php on line 120 (see also https://github.com/matomo-org/matomo/issues/19343#issuecomment-1296524552 )
- [ ] WARNING: /plugins/CoreVisualizations/Visualizations/HtmlTable.php(293): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable::$siteSummary is deprecated - Matomo 4.13.1
- [ ] WARNING: /plugins/CoreVisualizations/JqplotDataGenerator.php(125): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart::$dataTable is deprecated - Matomo 4.13.1
May be fixed in next release… Or you can apply manually the fix by yourself:
matomo-org:4.x-dev
← matomo-org:php82fixes
opened 02:22PM - 18 Jan 23 UTC
### Description:
Added some missing class attributes to avoid deprecation not… ices, applied some code formatting and simplifications.
refs #19343
### Review
* [ ] [Functional review done](https://developer.matomo.org/guides/pull-request-reviews#functional-review-done)
* [ ] [Potential edge cases thought about](https://developer.matomo.org/guides/pull-request-reviews#potential-edge-cases-thought-about) (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
* [ ] [Usability review done](https://developer.matomo.org/guides/pull-request-reviews#usability-review-done) (is anything maybe unclear or think about anything that would cause people to reach out to support)
* [ ] [Security review done](https://developer.matomo.org/guides/security-in-piwik#checklist)
* [ ] [Wording review done](https://developer.matomo.org/guides/pull-request-reviews#translations-wording-review-done)
* [ ] [Code review done](https://developer.matomo.org/guides/pull-request-reviews#code-review-done)
* [ ] [Tests were added if useful/possible](https://developer.matomo.org/guides/pull-request-reviews#tests-were-added-if-usefulpossible)
* [ ] [Reviewed for breaking changes](https://developer.matomo.org/guides/pull-request-reviews#reviewed-for-breaking-changes)
* [ ] [Developer changelog updated if needed](https://developer.matomo.org/guides/pull-request-reviews#developer-changelog-updated-if-needed)
* [ ] [Documentation added if needed](https://developer.matomo.org/guides/pull-request-reviews#documentation-added-if-needed)
* [ ] Existing documentation updated if needed
1 Like
Hello, I have upgraded my Matomo version to 4.13.1 and now to 4.13.2, but I keep getting some deprecation warnings.
I search the forum, but I can’t find any similar post.
WARNING: /plugins/VisitTime/Reports/GetByDayOfWeek.php (45): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Config::$disable_row_evolution is deprecated - Matomo 4.13.2 (Module: VisitTime, Action: getByDayOfWeek, In CLI mode: false)
I got other three warnings, but they are already reported on github
WARNING: /plugins/CoreVisualizations/JqplotDataGenerator.php(125): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart::$dataTable is deprecated - Matomo 4.13.2 - (Module: VisitTime, Action: getByDayOfWeek, In CLI mode: false)
WARNING: /plugins/CoreVisualizations/Visualizations/HtmlTable.php(293): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable::$siteSummary is deprecated - Matomo 4.13.2 - (Module: UserCountry, Action: getCountry, In CLI mode: false)
WARNING: /core/ArchiveProcessor/**PluginsArchiver**.php(67): Deprecated - Creation of dynamic property Piwik\ArchiveProcessor\PluginsArchiver::$archiveWriter is deprecated - Matomo 4.13.2 - (Module: API, Action: get, Method: VisitsSummary.get, In CLI mode: false)
Cosas Inútiles:
WARNING: /plugins/VisitTime/Reports/GetByDayOfWeek.php (45): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Config::$disable_row_evolution is deprecated - Matomo 4.13.2 (Module: VisitTime, Action: getByDayOfWeek, In CLI mode: false)
Added in ticket just now:
opened 04:32PM - 18 Jan 23 UTC
Bug
Regression
From https://forum.matomo.org/t/core-archive-datacollection-php-123-deprecated/4… 8979/9
- [x] WARNING /home/analytics/www/core/CronArchive.php(251): Deprecated - Creation of dynamic property Piwik\CronArchive::$rawLogDao is deprecated - Matomo 4.13.1
- [x] WARNING /home/analytics/www/core/Console.php(135): Deprecated - Callables of the form ["Piwik\Console", "Symfony\Component\Console\Application::doRun"] are deprecated - Matomo 4.13.1 (see also https://github.com/matomo-org/matomo/issues/19343#issue-1268610515 )
From https://forum.matomo.org/t/php-8-2-depreciated-features-on-ver-4-13-1/49221
- [ ] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 52 (see also https://github.com/matomo-org/matomo/issues/19343#issuecomment-1296524552 )
- [ ] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/symfony/console/Symfony/Component/Console/Helper/QuestionHelper.php on line 120 (see also https://github.com/matomo-org/matomo/issues/19343#issuecomment-1296524552 )
- [ ] WARNING: /plugins/CoreVisualizations/Visualizations/HtmlTable.php(293): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable::$siteSummary is deprecated - Matomo 4.13.1
- [ ] WARNING: /plugins/CoreVisualizations/JqplotDataGenerator.php(125): Deprecated - Creation of dynamic property Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart::$dataTable is deprecated - Matomo 4.13.1
1 Like
kith
January 26, 2023, 11:31am
#5
Hi, I’ve upgraded to 4.13.2 now but still get 30 warnings! Should I really copy & paste them all in here?
(Sorry, only installed Matomo yesterday, I am a total n00b)
Hi @kith
Do you use PHP 8.2?
Maybe you could downgrade PHP to 8.1?
kith
January 26, 2023, 1:43pm
#7
Ah, that may be it. I have downgraded to PHP 8.1.14 and now at least the orange wall is gone. Thank you!
1 Like