By Richard on Thursday, 24 January 2019
Posted in Technical Issues
Likes 0
Views 503
Votes 0
I downloaded the full package and the installation completed, but the Community Menu displays an error message CALL TO A MEMBER FUNCTION HTML() ON NULL (see below) when a guest/visitor clicks on the menu item (if i log in, access to the menu is fine).

The error only appears in the main Community Menu, access to the sub menus by guests/visitors is available.

I do have an old ../template/html/dashboard/guests/default.php file from ES2 that may (or may not) be part of the problem - when i rename this file access to the Community Menu is not available, perhaps this file needs to be updated?
You need to remove the following block of codes from your template override, /template/TEMPLATE_NAME/html/dashboard/guests/default.php

[gist]
<div>
<?php echo $this->html('html.login', $return); ?>
</div>
[/gist]
·
Friday, 25 January 2019 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

Yes, you need to update ../template/html/dashboard/guests/default.php because we have changed the codes structure in this file in ES3. Please give it a try.
·
Thursday, 24 January 2019 10:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Nik, I took a look at the new code structure as well as how ES3 works and removed my override file as all i need in ES3 is for guests/visitors to be able to see the initial stream in the Community Menu with a 'login to see more' message.

I adjusted the admin settings for initial stream to 10 items and allow guests to view stream to yes, but the stream does not appear, possibly because the Community Menu uses the Dashboard option that is for registered users - is there a way to allow visitors/guests to see the initial stream in ES3 in the Community Menu without adjusting any code?

If an override is still required, what do i need to do?
·
Thursday, 24 January 2019 21:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

I have checked your site and I can see the stream as a guest: http://take.ms/uToZL . Am I missing anything here?
·
Friday, 25 January 2019 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, dozy me Nik, i only saw the large login box area at the top and did not scroll down to see the stream, how/where do i remove the box to leave just the stream and login message at the end?
·
Friday, 25 January 2019 18:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, i couldn't remember what i removed in the old file, all fine now!
·
Friday, 25 January 2019 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Richard,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Friday, 25 January 2019 20:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post