Git Product home page Git Product logo

Comments (8)

amoscatelli1 avatar amoscatelli1 commented on July 21, 2024

I have exactly the same issue. Can anyone help, please?

from auth.

colorando-de avatar colorando-de commented on July 21, 2024

I have the same issue. My temporary (but not enough tested) solution is to add
public function __toString() { return $this->target; }

in the Class Redirect in File boltauth/auth/src/AccessControl/Redirect.php

from auth.

Jogai avatar Jogai commented on July 21, 2024

@colorando-de thanks, but this doesnt help for me...

Does any of the 3.3.4 or higher versions fix this problem?

from auth.

xiaohutai avatar xiaohutai commented on July 21, 2024

Same issue for me on 3.4.2:

  • Installed Bolt 3.4.2
  • Installed BoltAuth/Auth extension
  • Update databases
  • Navigate to a non-existant page

Result:

ContextErrorException in Bag.php line 278:
Catchable Fatal Error: Object of class Bolt\Extension\BoltAuth\Auth\AccessControl\Redirect could not be converted to string

error

from auth.

SahAssar avatar SahAssar commented on July 21, 2024

Sorry everyone for my tardiness lately...

@colorando-de Does that fix also work for you on 3.4? If so can you PR it? @xiaohutai have you tried colorando-de's fix? does it work for you?

from auth.

xiaohutai avatar xiaohutai commented on July 21, 2024

@SahAssar This works for me:

    /**
     * @return string
     */
    public function __toString() {
        return $this->target ?: '';
    }

It seems that $this->target can be null.

from auth.

elipeters avatar elipeters commented on July 21, 2024

@SahAssar I confirm this works also
public function __toString() { return $this->target; }

...though my issue was related to incorrect database password.

extensions/vendor/boltauth/auth/src/accesscontrol/redirect.php

from auth.

artggd avatar artggd commented on July 21, 2024

Any update on this? I sporadically get the error too. What about merging #20?

from auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.