Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Error : Methods with the same name as their class will not be constructors in a future version of PHP; PHxParser has a deprecated constructor #25

Open
Romkond opened this issue Jul 30, 2017 · 1 comment

Comments

@Romkond
Copy link

Romkond commented Jul 30, 2017

Hi there,
I guess, it's not a big deal but I see this MODX Parse Error after updating from 1.2 d9.0.3 to 1.3.3 (core) and migrating from PHP 5.6 to PHP 7.0.
File: .../public_html/assets/snippets/evogallery/classes/phx.parser.class.inc.php

Backtrace
DocumentParser->executeParser()index.php on line 131
DocumentParser->prepareResponse()wp-admin/includes/document.parser.class.inc.php on line 2219
DocumentParser->parseDocumentSource(string $var1)wp-admin/includes/document.parser.class.inc.php on line 2304
DocumentParser->evalSnippets(string $var1)wp-admin/includes/document.parser.class.inc.php on line 2064
DocumentParser->_get_snip_result(string $var1)wp-admin/includes/document.parser.class.inc.php on line 1456
DocumentParser->evalSnippet(string $var1, array $var2)wp-admin/includes/document.parser.class.inc.php on line 1514

*manager=wp-admin

@Netzfeld
Copy link
Contributor

Just changed the functionnames inside the classes --- in assets/snippets/evogallery/classes/
gallery.class.inc.php and phx.parser.class.inc.php to __construct(Parameters here inside)

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

No branches or pull requests

2 participants