Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Fatal Error in array_replace(): Argument #2 is not an array
Mowgli76
New
Unsure if this should be filed as a bug?
Just installed Vanilla Forum 2.2.16.6 locally (mac with MAMP pro. apache, php, mysql)
I can see the dashboard, but I'm having some problems with the forum itself, so I turned on DEBUG in config
I open the front page of my site (the forum front looks fine)
When I click on the first automated post "BAM! You’ve got a sweet forum", I get this error:
Fatal Error in PHP.array_replace(); **array_replace(): Argument #2 is not an array** The error occurred on or near: /MYSITE/library/core/class.request.php 939: 'path' => '/', 940: 'query' => '' 941: ); 942: 943: $parts1 = array_replace($defaults, $parts1); 944: $parts2 = array_replace($defaults, $parts2); 945: 946: if ($parts1['host'] === $parts2['host'] 947: && ltrim($parts1['path'], '/') === ltrim($parts2['path'], '/') [url1] '//MYSITE/categories/general' [url2] 'discussions' [parts1] false [parts2] array ( 'path' => '/MYSITE/discussions', ) [defaults] array ( 'scheme' => 'http', 'host' => 'localhost:8888', 'path' => '/', 'query' => '', )
What to do?
0
Comments
Welcome to the community!
The proper response would be to debug the issue as you are running an alpha version of Vanilla. That is not recommended for anyone but developers looking to contribute to the project.
The 2.1 branch is the most recent stable branch.
Good luck!
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yes, this should be filed as a bug, since the UrlCompare function was a recent addition.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS