1. Brecht Coene
  2. Bugs
  3. Wednesday, 01 November 2017
  4.  Subscribe via email
Hello,
We are facing the folowing error:
Call to a member function get() on null

In the log file:
Uncaught exception 'Error' with message 'Call to a member function get() on null' in (server_path)/components/com_comment/views/comments/view.html.php:21

Please tell us if there is something that we could do.
Thank you in advance
Responses (5)
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Did you make a custom template or a template override?

line 21 is this:

$commentTemplate = $this->config->get('template.template', 'default');


calling get on null actually should mean that this config is not defined, which it should be. What component is that? Do you have a configuration for this component in ccomment settings?

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 1
Brecht Coene
CComment supporter
Accepted Answer Pending Moderation
Hello again,
The request is:
component/com_comment/contentid,1147/josctask,rss/no_html,1/plugin,com_componentname/
I could also reproduce the issue with a request like:
index.php?option=com_comment

Does something needed in custom component's configuration?

Regards
  1. more than a month ago
  2. Bugs
  3. # 2
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Which version of the comment system are you using? I scanned our database for josctask, but there is no such thing anymore. Maybe you guys have a custom template with a hardcoded link to the RSS function?

Regards,
Daniel
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 3
Brecht Coene
CComment supporter
Accepted Answer Pending Moderation
Hello again,
On a fresh installation once we call this url:
index.php?option=com_comment

We get the same error, is it normal?

Regards
  1. more than a month ago
  2. Bugs
  3. # 4
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
It isn't nice, but it is normal. You don't have any functionality directly under option=com_comment -> you need other parameters in the request. What's happening exactly? We are not generating an url like this normally.
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Errror on Google Captcha V3 in Matukio
Hi, I am experiencing spam-problems on contact-forms protected by google reCa...
0 Replies
Posted on Wednesday, 20 March 2024
  • New
  • Google map styles migrating......
    Google are updating their map styles. Is there anything we need to do to migrate...
    0 Replies
    Posted on Monday, 18 March 2024
    • #google maps
    • #map styles
    Latest Hotspots Makes Website Hang
    When using the Latest Hotspot module, the webpage slows down and does not load....
    3 Replies
    Posted on Monday, 15 January 2024
    Text ändern
    Hallo in der Übersicht der Veranstaltungen kann man ja auf "Mehr Informati...
    0 Replies
    Posted on Thursday, 14 March 2024
    When is CComment compatible with Joomla 5?
    When is CComment compatible with Joomla 5?...
    3 Replies
    Posted on Tuesday, 05 December 2023
    • #CComment
    • #Joomla 5