Comments (3)
I cannot create a pull request because I can't find pdoTools 3.0.x-pl on GitHub. But I think this solution with the isset function is the better way:
/** @var bool $showLog */
if (isset($showLog) && $modx->user->isAuthenticated('mgr') && (bool)$showLog) {
$modx->setPlaceholder('pdoPageLog', print_r($paginator->pdoTools->getTime(), true));
}
from pdotools.
It's here as well:
[2024-04-04 09:23:01] (ERROR @ /www/core/cache/includes/elements/modx/revolution/modsnippet/7.include.cache.php : 210) PHP warning: Undefined variable $showLog
(ModX 3.04 - Modx cloud)
from pdotools.
Apparently this wasn't fixed in pdoTools 3.0.2 or MODx 3.0.5 or wherever it needs to be fixed.
Running with PHP 8.2.
If one of the fixes above works, where should it be changed? Changing it the cached file that is reported in the error logs doesn't work if the MODx cache is cleared.
I have also tried updating it in the file: core/components/pdotools/elements/snippets/snippet.pdopage.php
, but that doesn't fix the cached file either.
from pdotools.
Related Issues (20)
- (ERROR @ /home/s30946/www/core/components/pdotools/model/pdotools/pdotools.class.php : 999) Unexpected token 'match' in expression
- MODX Revolution 3.0.2 + pdoTools 3.0.1 / showLog doesn't work
- &outputSeparator + ajax technology don't work correctly
- Fatal error при включенной опции pdotools_fenom_cache
- issue with pdoPage snippet of pdoTools component
- [Fenom] Не корректно работает $.tpl.name HOT 7
- Return an array of raw data (it is necessary when using the Fenom template engine). HOT 1
- includeContent doesn't work when not logged in [pdoResources]
- pdoCrumbs issue
- pdoResources ломается, если нет поля для сортировки
- pdoMenu - active class not set correctly with weblinks
- Incorrect Friendly URLs with pagination when using pdoPage
- The showLog change has to be documented somewhere
- Bug PHP 8 pdoResources snippet with property 'toSeparatePlaceholders' in combination with pdoPage HOT 1
- Добавить параметр &limitOnPage для pdoPage
- pdoMenu не возвращает данные по параметрам
- Fatal error: Allowed memory
- >=php 8.3 - decrement on type null
- Static Plugins trigger pdoToolsOnFenomInit even if not defined as their Event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdotools.