wappler 3.5.1
windows 10
PHP
I am not getting any output message for this error and have no idea how to report it.
It only returns 500 error errors.
How can I make a better bug report for such errors. ??
It was working before the last update.
wappler 3.5.1
windows 10
PHP
I am not getting any output message for this error and have no idea how to report it.
It only returns 500 error errors.
How can I make a better bug report for such errors. ??
Make sure debug in server connect is turned on and set display_errors = on
in you php.ini
.
now display_errors = on
returned issue is ;
Fatal error : Cannot redeclare lib\oauth\Oauth2::get() in /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php** on line 189
Thank you, here an update, unzip in dmxConnectLib/lib/oauth
.
Oauth2.zip (2.0 KB)
Thank you @patrick ! but giving different issue
{
code: 0,
file: "/var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php",
line: 20,
message: "Class 'lib\oauth\FileSystem' not found",
trace: "#0 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/modules/oauth.php(148): lib\oauth\Oauth2::get(Object(lib\App), 'oauth3') #1 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/App.php(199): modules\oauth->authorize(Object(stdClass), 'scope') #2 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/App.php(163): lib\App->execSteps(Object(stdClass)) #3 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->execSteps(Array) #4 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/App.php(116): lib\App->exec(Object(stdClass), false) #5 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnectLib/lib/App.php(94): lib\App->exec(Object(stdClass)) #6 /var/www/vhosts/xxxxx.com/httpdocs/dmxConnect/api/xxxxx/web/user_login_process/google_login_register_copy.php(8): lib\App->define(Object(stdClass)) #7 {main}"
}
ok, forgot to include that, here new update.
Oauth2.zip (2.0 KB)
still same issue
{
code: 0,
file: "/var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php",
line: 20,
message: "Class 'lib\oauth\FileSystem' not found",
trace: "#0 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/modules/oauth.php(148): lib\oauth\Oauth2::get(Object(lib\App), 'oauth3') #1 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/App.php(199): modules\oauth->authorize(Object(stdClass), 'scope') #2 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/App.php(163): lib\App->execSteps(Object(stdClass)) #3 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->execSteps(Array) #4 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/App.php(116): lib\App->exec(Object(stdClass), false) #5 /var/www/vhosts/xxxx.com/httpdocs/dmxConnectLib/lib/App.php(94): lib\App->exec(Object(stdClass)) #6 /var/www/vhosts/xxxx.com/httpdocs/dmxConnect/api/marriagepal/web/user_login_process/google_login_register_copy.php(8): lib\App->define(Object(stdClass)) #7 {main}"
}
Sorry end point issue
{
code: 0,
file: "/var/www/vhosts/marriagepal.com/httpdocs/dmxConnectLib/dmxConnect.php",
line: 128,
message: "Option "token_endpoint" is required!",
trace: "#0 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php(31): option_require(Object(stdClass), 'token_endpoint') #1 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php(24): lib\oauth\Oauth2->__construct(Object(lib\App), Object(stdClass), 'oauth3') #2 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/modules/oauth.php(148): lib\oauth\Oauth2::get(Object(lib\App), 'oauth3') #3 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(199): modules\oauth->authorize(Object(stdClass), 'scope') #4 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(163): lib\App->execSteps(Object(stdClass)) #5 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->execSteps(Array) #6 /var/www/vhosts/marriagepal.com/httpdocs/dmxConnectLib/lib/App.php(116): lib\App->exec(Object(stdClass), false) #7 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(94): lib\App->exec(Object(stdClass)) #8 /var/www/vhosts/xxxxxxx.com/httpdocs/dmxConnect/api/marriagepal/web/user_login_process/google_login_register_copy.php(8): lib\App->define(Object(stdClass)) #9 {main}"
}
Looks like it is not getting the configured endpoint of the google service. Do you have the Oauth as a step in the action or defined global?
The second step is provider1
and the third step you refer to oauth3
provider, I think you are mixing them up a bit.
You can remove the second step OAuth2 Provider
and refer to the global defined provider from the Authorize step.
Here an update that should fix the global provider.
Oauth2.zip (3.0 KB)
yes, I put the 2nd step to test it. I just forgot to delete.
message: "Attempt to assign property 'access_type' of non-object",
Does it also show the file and line number where the error occurs?
sure
{
code: 0,
file: "/var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php",
line: 74,
message: "Attempt to assign property 'access_type' of non-object",
trace: "#0 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php(74): exception_error_handler(2, 'Attempt to assi...', '/var/www/vhosts...', 74, Array) #1 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/oauth/Oauth2.php(24): lib\oauth\Oauth2->__construct(Object(lib\App), Object(stdClass), 'oauth3') #2 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/modules/oauth.php(148): lib\oauth\Oauth2::get(Object(lib\App), 'oauth3') #3 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(199): modules\oauth->authorize(Object(stdClass), 'scope') #4 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(163): lib\App->execSteps(Object(stdClass)) #5 /var/www/vhosts/marriagepal.com/httpdocs/dmxConnectLib/lib/App.php(133): lib\App->execSteps(Array) #6 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(116): lib\App->exec(Object(stdClass), false) #7 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnectLib/lib/App.php(94): lib\App->exec(Object(stdClass)) #8 /var/www/vhosts/xxxxxx.com/httpdocs/dmxConnect/api/xxxxxx/web/user_login_process/google_login_register_copy.php(8): lib\App->define(Object(stdClass)) #9 {main}"
}
Thank you, try again a new update.
Oauth2.zip (3.0 KB)
thank you so much @patrick … it works
Fixed in Wappler 3.5.2