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

PHP error when page content changes #22

Open
opusman opened this issue Jun 28, 2023 · 1 comment
Open

PHP error when page content changes #22

opusman opened this issue Jun 28, 2023 · 1 comment

Comments

@opusman
Copy link

opusman commented Jun 28, 2023

I get the following error after changing the content of a page, pressing F5 to refresh twice fixes it.

PHP Warning:  Undefined array key "metadata" in C:\inetpub\wwwroot\manual\lib\plugins\pagetitle\syntax\decorative.php on line 146
PHP Warning:  Undefined array key "xhtml" in C:\inetpub\wwwroot\manual\lib\plugins\pagetitle\syntax\decorative.php on line 146

Fixed by adding the following at the top of the render() function in decorative.php:

		$counter['metadata'] = 0;
		$counter['xhtml'] = 0;
@haslersn
Copy link

We were also affected by this warning, so we disabled the pagetitle plugin in our deployment.

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

2 participants