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

Fatal error: Uncaught TypeError: array_merge() #211

Closed
lottaar opened this issue Mar 16, 2024 · 2 comments
Closed

Fatal error: Uncaught TypeError: array_merge() #211

lottaar opened this issue Mar 16, 2024 · 2 comments

Comments

@lottaar
Copy link

lottaar commented Mar 16, 2024

Summary

Suddenly got fatal error in both front-end and Manager when working on the site. Solved by manually emptying core/cache.

Step to reproduce

Occurred when editing a chunk or a Fred element

Observed behavior

Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, int given in /Users/lotta/Sites/wib3-master/core/src/Revolution/modLexicon.php:242 Stack trace: #0 /Users/lotta/Sites/wib3-master/core/src/Revolution/modLexicon.php(242): array_merge(Array, 1) #1 /Users/lotta/Sites/wib3-master/core/components/clientconfig/model/clientconfig/clientconfig.class.php(66): MODX\Revolution\modLexicon->load('clientconfig:de...') #2 /Users/lotta/Sites/wib3-master/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php(1260): ClientConfig->__construct(Object(MODX\Revolution\modX), Array) #3 /Users/lotta/Sites/wib3-master/core/cache/includes/elements/modx/revolution/modplugin/9.include.cache.php(51): xPDO\xPDO->getService('clientconfig', 'ClientConfig', '/Users/lotta/Si...') #4 /Users/lotta/Sites/wib3-master/core/src/Revolution/modScript.php(88): include('/Users/lotta/Si...') #5 /Users/lotta/Sites/wib3-master/core/src/Revolution/modX.php(1706): MODX\Revolution\modScript->process(NULL) #6 /Users/lotta/Sites/wib3-master/core/src/Revolution/modX.php(581): MODX\Revolution\modX->invokeEvent('OnMODXInit', Array) #7 /Users/lotta/Sites/wib3-master/manager/index.php(54): MODX\Revolution\modX->initialize('mgr') #8 {main} thrown in /Users/lotta/Sites/wib3-master/core/src/Revolution/modLexicon.php on line 242

Environment

ClientConfig 2.4.0
Fred 2.1.6
Collections 4.1.0
MODX 3.0.4
MAMP
PHP 8.2

@Mark-H
Copy link
Member

Mark-H commented Mar 16, 2024

That looks like the lexicon cache file may have gotten corrupted. Unless that's a common/reproducible error, I don't think that's something in our control.

@muzzwood
Copy link
Contributor

muzzwood commented Feb 1, 2025

Should be fixed in #213

@muzzwood muzzwood closed this as completed Feb 1, 2025
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

3 participants