Resource icon

XenForo License Validation 2.0.0

No permission to download
Hi Liam

I got some errors like

Code:
ErrorException: Undefined property: stdClass::$customer_token - library/LiamW/XFLicenseCheck/ControllerPublic/Account.php:64
Generiert durch: ACCOUNT, Vor 32 Minuten

#0 /var/www/XXX/html/library/LiamW/XFLicenseCheck/ControllerPublic/Account.php(64): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/var/www/XXX/...', 64, Array)
#1 /var/www/XXX/html/library/XenForo/FrontController.php(347): LiamW_XFLicenseCheck_ControllerPublic_Account->actionXfLicenseSave()
#2 /var/www/XXX/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/XXX/html/index.php(13): XenForo_FrontController->run()
#4 {main}

array(3) {
["url"] => string(44) "http://www.xendach.de/account/xflicense/save"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["api_key"] => string(32) "STRING"
["domain"] => string(27) "DOMAIN"
["save"] => string(9) "Save"
["_xfRequestUri"] => string(53) "/resources/deutsches-sprachpaket-fuer-search-log.132/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}

Are you able to help, please?

Thanks for supporting me
 
Hi Liam

I got some errors like

Code:
ErrorException: Undefined property: stdClass::$customer_token - library/LiamW/XFLicenseCheck/ControllerPublic/Account.php:64
Generiert durch: ACCOUNT, Vor 32 Minuten

#0 /var/www/XXX/html/library/LiamW/XFLicenseCheck/ControllerPublic/Account.php(64): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/var/www/XXX/...', 64, Array)
#1 /var/www/XXX/html/library/XenForo/FrontController.php(347): LiamW_XFLicenseCheck_ControllerPublic_Account->actionXfLicenseSave()
#2 /var/www/XXX/html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/XXX/html/index.php(13): XenForo_FrontController->run()
#4 {main}

array(3) {
["url"] => string(44) "http://www.xendach.de/account/xflicense/save"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["api_key"] => string(32) "STRING"
["domain"] => string(27) "DOMAIN"
["save"] => string(9) "Save"
["_xfRequestUri"] => string(53) "/resources/deutsches-sprachpaket-fuer-search-log.132/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}

Are you able to help, please?

Thanks for supporting me

I had the same errors for one user. It's strange as is it shouldn't happen. It's saying the customer token doesn't exist in the json...

Liam
 
Is it possible to create an error message for this without creating the errors in the acp? ;)

I guess, although since it shouldn't happen a server error is technically correct :P

I don't understand why it is happening... The customer token should be there if it's a valid license...

Probably a bug in the API...

Liam
 
Hi Liam,

There any chance of integrating verification of the license before or during user registration and if this is not valid show error like that is not valid (Like when an email is not correct) or deny user registration.

Thanks, Luis.
 
Hi Liam,

There any chance of integrating verification of the license before or during user registration and if this is not valid show error like that is not valid (Like when an email is not correct) or deny user registration.

Thanks, Luis.

I was thinking of adding something like that :)

I'll get back to you.

Liam
 
Thanks Liam for adding this feature. At this moment I can not test, as soon as I can do it I'll let my comment.

Thanks again, Luis.
 
Just a note to everyone, I suggest you currently don't enable the registration checking.

It runs for every registration, and has caused me to exceed my IP limit...

I'll release an update later today.

Liam

CC: @Luis @Mike
 
Fatal error: Cannot redeclare class XFCP_LiamW_XFLicenseCheck_Extend_ControllerPublic_Register in/xxxxx/public_html/library/LiamW/XFLicenseCheck/Extend/ControllerPublic/Register.php on line 191
 
Del this in /library/LiamW/XFLicenseCheck/Extend/ControllerPublic/Register.php everything is ok.
PHP:
class XFCP_LiamW_XFLicenseCheck_Extend_ControllerPublic_Register extends XenForo_ControllerPublic_Register
{

}
 
Back
Top Bottom