Bug server error on registration

Discussion in '[bd] Widget Framework' started by Dadparvar, Oct 19, 2016.

  1. Dadparvar

    Dadparvar New Member

    Hi,

    Today I got this error 8 times in 1 minutes:
    Code:
    Server Error Log
    Error Info
    ErrorException: Fatal Error: Cannot redeclare class XFCP_WidgetFramework_XenForo_Model_Permission - library/XenForo/Application.php(528) : eval()'d code:1
    Generated By: Unknown Account, 25 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
      ["url"] => string(229) "http://site.com.ir/api.php?hash=x7e8fca2dc0f896fd7cb4cb0031ba249&action=register&gender=female&email=someemail@gmail.com&username=%DA%A9%DB%8C%D9%87%D8%A7%D9%86+%D8%B2%D9%86%D8%AF&password=13701393&timezone=Asia/Tehran"
      ["_GET"] => array(7) {
        ["hash"] => string(32) "x7e8fca2dc0f896fd7cb4cb0031ba249"
        ["action"] => string(8) "register"
        ["gender"] => string(6) "female"
        ["email"] => string(23) "someemail@gmail.com"
        ["username"] => string(17) "کیهان زند"
        ["password"] => string(8) "13701393"
        ["timezone"] => string(11) "Asia/Tehran"
      }
      ["_POST"] => array(0) {
      }
    }
    any opinion will be appreciated.
     
  2. Dadparvar

    Dadparvar New Member

    Still getting it.
     
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Looks like some conflict with other add-on. Which add-on is api.php?
     
  4. Dadparvar

    Dadparvar New Member

    api.php is from this:
    http://xenapi.net/

    I have a custom android app + a custom site for my forum and I used that api + some of my own files to integrate custom site with my xf and have a single android app (to have i single registration for anyone.).
    and its working fine for a long time. no problem at all. Just this time I get that error log in acp.
     
  5. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Which version of [bd] Widget Framework are you using? Just tested with latest version of both add-ons and they seemed to work fine together.
     
    1. Dadparvar

      Dadparvar New Member

      Dadparvar @xfrocks 2.6.3-BETA16

      Since that time I just got this error 3 times again (from more than 100 user registration => it seems it just happens when users try to register from our application. But what is the relation between xf and that api and your add-on, I don't know :confused:)
       
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Both add-ons (the api one and [bd] Widget Framework) integrate themselves into XenForo so they are always running together. And for some reason, there is a conflict when user try to register via the api.

    Do you have the registration flow of the Android app?
     
Loading...