Fatal Error in array_replace(): Argument #2 is not an array

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?

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!

  • Yes, this should be filed as a bug, since the UrlCompare function was a recent addition.

Sign In or Register to comment.