XF 2.3 Layout completely broken. Any help?

Hareon

Active member
Today for some reason my forum simply crashed.
When I tried to rebuild the general cache I got the following error message:

Error: Call to a member function getCommentTitle() on null in src/addons/ThemeHouse/Donate/Entity/Comment.php at line 294
  1. ThemeHouse\Donate\Entity\Comment->getCommentTitle() in src/addons/ThemeHouse/Donate/Search/Data/Comment.php at line 33
  2. ThemeHouse\Donate\Search\Data\Comment->getIndexData() in src/XF/Search/Search.php at line 63
  3. XF\Search\Search->index() in src/XF/Search/Search.php at line 89
  4. XF\Search\Search->indexEntities() in src/XF/Search/Search.php at line 126
  5. XF\Search\Search->indexRange() in src/XF/Job/SearchRebuild.php at line 69
  6. XF\Job\SearchRebuild->run() in src/XF/Job/Manager.php at line 275
  7. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  8. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 121
  9. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/ToolsController.php at line 146
  10. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  12. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  13. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  14. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2813
  15. XF\App->run() in src/XF.php at line 802
  16. XF::runApp() in admin.php at line 15
1732230117717.webp
Even the admin panel layout is broken. I can't access the options to disable the addon that appeared in the error.

The server error log is also broken.

Does anyone have any suggestions on how to resolve this?

1732230231380.webp
 
Today for some reason my forum simply crashed.
When I tried to rebuild the general cache I got the following error message:

Error: Call to a member function getCommentTitle() on null in src/addons/ThemeHouse/Donate/Entity/Comment.php at line 294
  1. ThemeHouse\Donate\Entity\Comment->getCommentTitle() in src/addons/ThemeHouse/Donate/Search/Data/Comment.php at line 33
  2. ThemeHouse\Donate\Search\Data\Comment->getIndexData() in src/XF/Search/Search.php at line 63
  3. XF\Search\Search->index() in src/XF/Search/Search.php at line 89
  4. XF\Search\Search->indexEntities() in src/XF/Search/Search.php at line 126
  5. XF\Search\Search->indexRange() in src/XF/Job/SearchRebuild.php at line 69
  6. XF\Job\SearchRebuild->run() in src/XF/Job/Manager.php at line 275
  7. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  8. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 121
  9. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/ToolsController.php at line 146
  10. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  11. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  12. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  13. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  14. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2813
  15. XF\App->run() in src/XF.php at line 802
  16. XF::runApp() in admin.php at line 15
View attachment 314333
Even the admin panel layout is broken. I can't access the options to disable the addon that appeared in the error.

The server error log is also broken.

Does anyone have any suggestions on how to resolve this?

View attachment 314335
Try disabling all add-ons, particularly the ThemeHouse Donate add-on, as it seems to be causing the error.
 
But how strange!

When I recreated the cache and the layout broke again, I thought the addon had been activated automatically. I went back to the options and saw that it was deactivated.

So I thought about reactivating it and then deactivating it again to see if the problem would be solved, but when I reactivated it, the forum went back to normal.

EDIT: No. It had returned to normal because it had cached images. In reality, the layout was broken. I disabled the Addon and will wait for an update.
 
Disable listeners via config.php

I had this issue when I upgraded my Xenforo to a newer version and had outdated templates. It looked just like this. I would bet money if you used the default theme it would work.
 
I use the default theme. I don't use custom themes. But I did slightly increase the width layout of the forum and just a few colors. I don't know if this would cause any problems like that, since the rest is Xenforo's default.

Oh, even with the addon disabled, the layout is now really broken again. I'll look into your suggestion about listeners.

EDIT: I didn't find any listener options in /src/config.php

The addon is disabled and my layout is still broken.
 
Last edited:
I use the default theme. I don't use custom themes. But I did slightly increase the width layout of the forum and just a few colors. I don't know if this would cause any problems like that, since the rest is Xenforo's default.

Oh, even with the addon disabled, the layout is now really broken again. I'll look into your suggestion about listeners.

EDIT: I didn't find any listener options in /src/config.php

The addon is disabled and my layout is still
Use a free theme to test theory.
 
I really don't know what this is. Everything was fine earlier today. Then suddenly the site went down for a few moments and came back with a layout problem.

So I went to recreate the cache, and an error appeared in the TH Donate Addon. I disabled the addon, but the layout problem persisted and I don't know what to do.

I even asked the hosting support and they informed me that there was no plugin update or anything like that on the hosting. I really don't know how to solve this problem.
 
Thanks for the tip, Jeremy. I've passed the information on to the host and now I'll have to wait until tomorrow for them to check. Thanks a lot. If the problem is resolved I'll update here with the information.
 
On second thought, this might be a compression/encoding problem. The response headers indicate brotli compression but the CSS appears to be gzipped. This is still likely a web server configuration issue, but you might try disabling response compression in XenForo to see if it helps in the meantime:

PHP:
$config['enableGzip'] = false;
 
Thanks for the answers and tips.
The problem has been resolved and was related to an update related to the Litespeed cache plugin on the server by Cpanel.

Something in the update must have triggered this problem. The support staff made adjustments and the forum is back to normal this morning. My thanks to everyone.
 
Back
Top Bottom