Can't deals with "Report handler"

  • Thread starter Thread starter account8226
  • Start date Start date
A

account8226

Guest
Hello,

I'm having problems with my report handler. I was able to set up a like handler for one content without any problems, but I can't get my report handler work on an other content.

The problem is the following : my 'fields' column in 'xf_content_type' doesn't get filled up, it's stuck to 0 bytes even after I added a xf_content_field' row for this.

Any ideas ?

Kind regards.
 
Hello,

I'm having problems with my report handler. I was able to set up a like handler for one content without any problems, but I can't get my report handler work on an other content.

The problem is the following : my 'fields' column in 'xf_content_type' doesn't get filled up, it's stuck to 0 bytes even after I added a xf_content_field' row for this.

Any ideas ?

Kind regards.
Did you rebuild the content type cache?
run the following code, which will fill the xf_content_type fields
PHP:
$this->getModelFromCache('XenForo_Model_ContentType')->rebuildContentTypeCache();
 
Did you rebuild the content type cache?
run the following code, which will fill the xf_content_type fields
PHP:
$this->getModelFromCache('XenForo_Model_ContentType')->rebuildContentTypeCache();

Working like a charm, thanks you very much EL :) :D
 
If you need this often, i would suggest to create a own controller, to manage the fields^^
Another simple solution would be just to extend the misc controller and add a additional action
PHP:
class ElDevtools_Extend_ControllerPublic_Misc extends
XFCP_ElDevtools_Extend_ControllerPublic_Misc
{
public function actionRebuildContainerAndCache()
{
$this->getModelFromCache('XenForo_Model_ContentType')->rebuildContentTypeCache();
return $this->responseMessage('..');
}
}
 
If you need this often, i would suggest to create a own controller, to manage the fields^^
Another simple solution would be just to extend the misc controller and add a additional action
PHP:
class ElDevtools_Extend_ControllerPublic_Misc extends
XFCP_ElDevtools_Extend_ControllerPublic_Misc
{
public function actionRebuildContainerAndCache()
{
$this->getModelFromCache('XenForo_Model_ContentType')->rebuildContentTypeCache();
$container = new DIC_Container();
$container->deleteContainer();
return $this->responseMessage('..');
}
}

Or a custom cron entry, that you would run manually ?
 
1. You'll still wouldn't be able to test it immediately because you would have to wait for the cron to run
2. Overhead, because the data aren't changing often

But if it would work for you, why not?:D
 
There are loads of ways to do it ^^

But for the cron entry I was thinking about a manual run, you can run a cron task without waiting, under the cron tab.

Thanks for the help, I was stuck but it's reporting correctly now :)
 
Top Bottom