Jump to content

3.0.46 Declaration Error


PWaddict
 Share

Recommended Posts

I've just upgrade from 3.0.45 to 3.0.46 and I'm getting the following error on both front-end and back-end: Warning: Declaration of ProcessWire\User::editUrl() should be compatible with ProcessWire\Page::editUrl($options = Array) in C:\xampp\htdocs\mysite.com\wire\core\User.php on line 479.

Link to comment
Share on other sites

Just for reference: https://github.com/processwire/processwire-issues/issues/130

If you want a quick fix until @ryan gets this sorted, just add the $options argument  to the User version of the method, eg.

public function editUrl($options = array()) {

on this line: https://github.com/processwire/processwire/blob/e8b9f1294311a9e57d05b5cb5b7395b7685e951b/wire/core/User.php#L448

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...