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

Warning: Attempt to read property "autostart" on null on GuidedTours.php on line 166 #43072

Closed
xillibit opened this issue Mar 17, 2024 · 6 comments

Comments

@xillibit
Copy link
Contributor

xillibit commented Mar 17, 2024

Steps to reproduce the issue

Open the backend and you will get the error. I have xdebug activated so i can see it directly :

image

I have just done an update on my repo and like said here : #43040 i have checked the table #__guidedtours it has already the column autostart.
Under System -> Database, i have nothing to apply.

Expected result

No warning

Actual result

PHP Warning: Attempt to read property "autostart" on null in \joomla-cms-5.1-dev\plugins\system\guidedtours\src\Extension\GuidedTours.php on line 166
PHP Stack trace:
PHP 1. {main}() \joomla-cms-5.1-dev\administrator\index.php:0
PHP 2. require_once() \joomla-cms-5.1-dev\administrator\index.php:32
[17-Mar-2024 14:43:35 UTC] PHP 3. Joomla\CMS\Application\CMSApplication->execute() \joomla-cms-5.1-dev\administrator\includes\app.php:58
PHP 4. Joomla\CMS\Application\AdministratorApplication->render() \joomla-cms-5.1-dev\libraries\src\Application\CMSApplication.php:311
PHP 5. Joomla\CMS\Application\CMSApplication->render() \joomla-cms-5.1-dev\libraries\src\Application\AdministratorApplication.php:434
PHP 6. Joomla\CMS\Document\HtmlDocument->render($caching = FALSE, $params = ['template' => 'atum', 'file' => 'cpanel.php', 'params' => class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; protected $separator = '.' }, 'csp_nonceC:\Users\flo\git\joomla-cms-5.1-dev\libraries\src\Application\CMSApplication.php:1073
PHP 7. Joomla\CMS\Document\HtmlDocument->_renderTemplate() \joomla-cms-5.1-dev\libraries\src\Document\HtmlDocument.php:647
PHP 8. Joomla\CMS\Document\HtmlDocument->getBuffer($type = 'metas', $name = NULL, $attribs = []) \joomla-cms-5.1-dev\libraries\src\Document\HtmlDocument.php:894
PHP 9. Joomla\CMS\Document\Renderer\Html\MetasRenderer->render($head = NULL, $params = [], $content = NULL) \joomla-cms-5.1-dev\libraries\src\Document\HtmlDocument.php:575
PHP 10. Joomla\Event\Dispatcher->dispatch($name = 'onBeforeCompileHead', $event = class Joomla\CMS\Event\Application\BeforeCompileHeadEvent { protected $name = 'onBeforeCompileHead'; protected $arguments = ['subject' => class Joomla\CMS\Application\AdministratorApplication { ... }, 'document' => class Joomla\CMS\Document\HtmlDocument { ... }]; protected $stopped = FALSE; private ${Joomla\CMS\Event\AbstractImmutableEvent}constructed = TRUE }) \joomla-cms-5.1-dev\libraries\src\Document\Renderer\Html\MetasRenderer.php:62
PHP 11. Joomla\Plugin\System\GuidedTours\Extension\GuidedTours->onBeforeCompileHead(class Joomla\CMS\Event\Application\BeforeCompileHeadEvent { protected $name = 'onBeforeCompileHead'; protected $arguments = ['subject' => class Joomla\CMS\Application\AdministratorApplication { ... }, 'document' => class Joomla\CMS\Document\HtmlDocument { ... }]; protected $stopped = FALSE; private ${Joomla\CMS\Event\AbstractImmutableEvent}constructed = TRUE }) \joomla-cms-5.1-dev\libraries\vendor\joomla\event\src\Dispatcher.php:454

System information (as much as possible)

Joomla: 5.1-beta2-dev
Php : 8.2.17
MariaDB : 10.4.13

Additional comments

@Quy
Copy link
Contributor

Quy commented Mar 17, 2024

Fixed per #43031. Thanks.

@Quy Quy closed this as completed Mar 17, 2024
@xillibit
Copy link
Contributor Author

The issue is still here, i have updated my local git repo of 5.1-dev from today

image

@Quy Quy reopened this Mar 23, 2024
@Quy
Copy link
Contributor

Quy commented Mar 23, 2024

@obuisard

@obuisard
Copy link
Contributor

obuisard commented Mar 23, 2024

Hello Florian @xillibit, I tried a fresh 5.1 beta2 install and I cannot reproduce the issue.
I have also tried the udpate.
In which page did you encounter the error?

@xillibit
Copy link
Contributor Author

I have deleted my local repo and downloaded from github and the error has disappeared now

@Quy
Copy link
Contributor

Quy commented Mar 24, 2024

PR #43139

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

No branches or pull requests

4 participants