Jump to content

flow84

Members
  • Posts

    3
  • Joined

  • Last visited

flow84's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Yeah, thats right. But if I keep that in mind, there shouldn't be any problems, right? Thanks for the hint with the session class!
  2. Thanks for the quick reply! I think I've found the problem. It's a simple namespace conflict The system already has a class named "Session". So I've copied and renamed processwire's class "Session" to "PWSession". Now it works. Are there any objections?
  3. Hi everyone, I have a problem using the processwire api in my own system. I use it to configure some special pages (texts, images and so on). Everything is working fine so far. Except when I'm doing a POST-Request (a search for example). The request has nothing to do with processwire. As soon as I do a POST-Request I'm getting the following error-message: Fatal error: Call to undefined method Session::addHookAfter() in MY_PROCESSWIRE_PATH\wire\modules\Session\SessionLoginThrottle\SessionLoginThrottle.module on line 50 Error: Call to undefined method Session::addHookAfter() (line 50 of MY_PROCESSWIRE_PATH\wire\modules\Session\SessionLoginThrottle\SessionLoginThrottle.module) This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. Here is my desperate attempt to workaround the problem //dirty workaround ahead $postData = $_POST; //save post data $_POST = array(); //clear $_POST include("../../processwire/index.php"); //include doesn't throw error $_POST = $postData; //write it back So what's the reason for the problem? Thanks in advance!
×
×
  • Create New...