Login Required

Error with undefinied modules. - Login Required

Error with undefinied modules.

by Miri4ever » Sat Jan 16, 2016 3:40 pm

I 'm getting this error:

Code: Select all

Fatal error: Call to a member function getName() on null in /..../includes/functions.php on line 5092


This happen if a link is not definied inside acp settings. For example calendar and others. Instead of showing me the login page to login I only getting this error.

If a module is excluded inside acp settings it works as normal.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Miri4ever
Registered User
Posts: 630
Joined: Sat Mar 07, 2015 11:18 am

Re: Error with undefinied modules.

by kasimi » Sat Jan 16, 2016 4:12 pm

Miri4ever wrote:For example calendar and others.

I can't reproduce this. Are you talking about this abandoned calendar extension? Which others don't work?
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: Error with undefinied modules.

by Miri4ever » Sat Jan 16, 2016 7:41 pm

No it does not having anything to do with this calendar and I using a different one. No matter what kind of link or PHP File I'm calling I got this error. It does not show me a login page.

All files definied inside the exclude list does work fine. Everything not inside this list does produce this error. Even if you call memberlist , ranks, faq or whatever while yours not logged in. After login it just works fine. But all links a guest is calling don't work.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Miri4ever
Registered User
Posts: 630
Joined: Sat Mar 07, 2015 11:18 am

Re: Error with undefinied modules.

by kasimi » Sat Jan 16, 2016 7:52 pm

Which timezone in ACP, Board settings have you set for guests? Set it to a different one and see if that works.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: Error with undefinied modules.

by Miri4ever » Sun Jan 17, 2016 2:23 am

Not checked with guests yet, but I found something out:

If I disable this 4 extensions it work, but I don't know what other extension affected and why there is a strange error message that didn't help out where to search:

phpBB 3.1 Birthday Control Version 1.0.2
phpBB 3.1 Friendlist Enhance Version 1.0.2
Prime Ban to Group 1.0.2
User Online Time Version 1.1.1


All those extension worked fine before but somehow there must be an conflict between those and yours. But I can not say if those 4 having coding errors or what else causing this kind of thing.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Miri4ever
Registered User
Posts: 630
Joined: Sat Mar 07, 2015 11:18 am

Re: Error with undefinied modules.

by kasimi » Sun Jan 17, 2016 5:44 pm

Birthday Control and Friendlist Enhance don't cause this problem on my board, but Prime Ban to Group and User Online Time do. They load language files in their constructors, preventing the $user object to be properly initialized.

Please apply this fix and test again.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany

Re: Error with undefinied modules.

by Miri4ever » Mon Jan 18, 2016 8:33 pm

Nice one thank you. Latest Github Version did solve the problem finally.
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Miri4ever
Registered User
Posts: 630
Joined: Sat Mar 07, 2015 11:18 am

Re: Error with undefinied modules.

by kasimi » Mon Jan 18, 2016 9:43 pm

Thanks for confirming, v1.0.3 as tagged at GitHub submitted for validation.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany