We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8345
    • 147 Posts
    Not sure how to debug the forgot password plugin.

    I have lot of these errors in event log:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object
    Error type/ Nr.: Warning - 2
    File: /var/www/vhosts/eurodesk.ee/httpdocs/manager/includes/document.parser.class.inc.php
    Line: 1096
    Line 1096 source: if (array_key_exists($alias, $this->documentListing)) {

    But I don’t have any errors today although I’ve been playing with this plugin and login-in-log-out so many times today.
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      Yeah, that’s a pretty general error, unfortunately.

      To confirm that it’s the plugin that’s causing the problem, you can clear the log, re-enable the plugin, then head over to another browser and try to login. Try logging in a few times, see if you can get an error to show in the logs.

      It could just be that one of the plugin files is corrupt, or that the code pasted in the database is corrupt.
        • 8345
        • 147 Posts
        I enabled the forgot password plugin and logged in and out with different browsers - that doesn’t cause any events. But what is weird that it doesn’t show any more the forgot password option even when plugin is enabled.

        Anyway, I never used that feature anyway and I don’t miss that so much so I’m quite happy that it’s working now although plugin disabled.