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

Unsure if this should be filed as a bug?

Just installed Vanilla Forum 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:       );
943:       $parts1 = array_replace($defaults, $parts1);
944:       $parts2 = array_replace($defaults, $parts2);
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?


Sign In or Register to comment.