Jump to content

Broken Site because Comments Removed?


Recommended Posts

Yesterday I removed Comments from my main blog-post template as I was getting way too many spam comments and just figured that I didn't need comment functionality that badly.  Turns out that seems to have broken the site?

I am getting all sorts of errors now when I attempt to view the site, and I am baffled about how removing the comments from the template seems to have caused this.

Fatal Error: Uncaught Error: Call to a member function count() on null in site/templates/_uikit.php:830

#0 site/templates/blog-post.php (60): ukBlogPost(Object(Page), Array)
#1 wire/core/TemplateFile.php (328): require('/home/roadwolf/...')
#2 wire/core/Wire.php (413): TemplateFile->___render()
#3 wire/core/WireHooks.php (952): Wire->_callMethod('___render', Array)
#4 wire/core/Wire.php (484): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
#5 wire/modules/PageRender.module (575): Wire->__call('render', Array)
#6 wire/core/Wire.php (416): PageRender->___renderPage(Object(HookEvent))
#7 /home/r (line 830 of site/templates/_uikit.php)



Returning comments to the template repaired the issue, but this seems odd.  Has anyone else encountered this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...