Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora

 AfterLogic Forum : AfterLogic Aurora
Subject Topic: There is an Fatal Error in API.php Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
birender
Newbie
Newbie
Avatar

Joined: 20 August 2019
Location: India
Online Status: Offline
Posts: 18
Posted: 27 February 2020 at 3:56am | IP Logged Quote birender

Hi,

There is an Fatal Error in PHP log for API.php

[27-Feb-2020 14:57:45 xxx/xxxx] PHP Fatal error: Uncaught Error: Call to undefined function Aurora\System\tolowercase() in /webmail/system/Api.php:1249
Stack trace:
#0 /webmail/modules/RecaptchaWebclientPlugin/Module.php(127): Aurora\System\Api::getCookiePath()
#1 /webmail/system/EventEmitter.php(166): Aurora\Modules\RecaptchaWebclientPlugin\Module->onAfterLogin(Array, false, NULL)
#2 /webmail/system/Module/Manager.php(757): Aurora\System\EventEmitter->emit('Core', 'Login::after', Array, false, Object(Closure))
#3 /webmail/system/Module/AbstractModule.php(446): Aurora\System\Module\Manager->broadcastEvent('Core', 'Login::after', Array, false)
#4 /webmail/system/Module/AbstractModule.php(852): Aurora\System\Module\AbstractModule->broadcastEvent('Login::after', Array, false)
#5 /webmail/system/Module/Decorator.php(55): Aurora\System\Module\AbstractModule->CallMethod('Login', Array)
#6 /webmail/modules/Dav/Module.php(570): Aurora\System\Module\Decorator->__call('Login', Array)
#7 [ in /webmail/system/Api.php on line 1249

Regards,

Birender
Back to Top View birender's Profile Search for other posts by birender
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 February 2020 at 3:58am | IP Logged Quote Igor

Hello,

Can you please confirm which version you're on?

Also, is my understanding correct that the issue occurs if you try to enable ReCaptcha functionality?

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 February 2020 at 4:16am | IP Logged Quote Igor

In fact, it looks like there's indeed an issue in the code. To correct it, modify line 1249 in system/Api.php file:

Code:
if (count($aPath) > 0 && ($sLastPathItem !== '' || tolowercase(substr($sLastPathItem, -1)) === '.php'))


as follows:

Code:
if (count($aPath) > 0 && ($sLastPathItem !== '' || strtolower(substr($sLastPathItem, -1)) === '.php'))


We hope this helps.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
birender
Newbie
Newbie
Avatar

Joined: 20 August 2019
Location: India
Online Status: Offline
Posts: 18
Posted: 02 March 2020 at 12:47am | IP Logged Quote birender

Igor wrote:
Hello,

8.3.17-build-a3

Can you please confirm which version you're on?

Also, is my understanding correct that the issue occurs if you try to enable ReCaptcha functionality?

--
Regards,
Igor, Afterlogic Support
Back to Top View birender's Profile Search for other posts by birender
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 02 March 2020 at 12:48am | IP Logged Quote Igor

Thanks. Did you try the suggested code modification, and did it help?

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide