extras-evolution / MaxiGallery

1 stars 5 forks source link

Maxi Gallery suddenly produces error on all sites #2

Closed leonie12 closed 7 years ago

leonie12 commented 7 years ago

Evo 1.3.6 PHP 7.1.2 MaxiGallery 0.6 phx deactivated core modifiers on or off same results

One of my websites with some MaxiGalleries delivers since today an error on ALL pages. Not only on pages with galleries but page is thereof completely broken. Worked fine since years. No changes from my side in the last days.

Trying to get property of non-object « MODX Parse Error » Error : Narrowing occurred during type inference. Please file a bug report on bugs.php.net Error information
ErrorType[num] WARNING[2] File /assets/snippets/maxigallery/maxigallery.php Line 239 Source include_once($mgclass); Current Snippet MaxiGallery

Backtrace DocumentParser->executeParser() index.php on line 129 DocumentParser->prepareResponse() manager/includes/document.parser.class.inc.php on line 2198 DocumentParser->parseDocumentSource(string $var1) manager/includes/document.parser.class.inc.php on line 2278 DocumentParser->evalSnippets(string $var1) manager/includes/document.parser.class.inc.php on line 2051 DocumentParser->_get_snip_result(string $var1) manager/includes/document.parser.class.inc.php on line 1444 DocumentParser->getParamsFromString(string $var1) manager/includes/document.parser.class.inc.php on line 1494 DocumentParser->evalSnippets(string $var1) manager/includes/document.parser.class.inc.php on line 1590 DocumentParser->_get_snip_result(string $var1) manager/includes/document.parser.class.inc.php on line 1444 DocumentParser->evalSnippet(string $var1, array $var2) manager/includes/document.parser.class.inc.php on line 1502 eval() manager/includes/document.parser.class.inc.php on line 1397 include(string $var1) manager/includes/document.parser.class.inc.php(1397) : eval()'d code on line 75 include_once() assets/snippets/maxigallery/maxigallery.php on line 239

leonie12 commented 7 years ago

Some further investigation shows that the problem seems to be PHP related. Changing php version to 7.0 solves the issue, 7.1 triggers it reproducibly. It rests the question why – how it seems – a problem of MaxiGallery with php 7.1 produces errors on all pages but not only gallery pages …?

leonie12 commented 7 years ago

Seemed to be caused by my configuration.