Resource icon

XenFacil Moderate threads - Move/Delete Threads 1.0.0b

No permission to download

lms

Well-known member
lms submitted a new resource:

XenFacil Moderate threads - Move/Delete Threads (version 1.0.0) - Move threads to recycle byn/both hard soft Delete Threads CRON entry

This plugin is used to remove threads, both physically removed from public view, as to move items to the trash (which is chosen forum is) with a length indicated.

When a forum begins to fill with items that remain unanswered and have long "standing", this cron job makes those issues with a length that is chosen to move to the trash, are removed from public view or delete definitively.

FEATURES:

  1. Cron job that, at the scheduled time, delete or move the...

Read more about this resource...
 
lms updated XenFacil Moderate threads - Move/Delete Threads with a new update entry:

XenFacil Moderate Threads english install add-on. Cron jobs for Move/Delete threads

I put the add-On so you can use the AddOn Installer (xx-xxx-AIC.zip).

This release can be upgraded using the Add-On Installer by Chris Deeming
autoinstall.png
Please consider donating if you find this add-on useful.

Salud2

Read the rest of this update entry...
 
Can you explain what the second date field is for?

There's one at the top, which looks like it sets how long a thread is inactive before it's moved to the trash folder. Then there's a second date field below to delete the thread. Is this an additional 30 days after the thread was moved? Or is this to delete the thread instead of moving it? How do you disable it? Set it to zero days, or to null?
 
Can you explain what the second date field is for?

There's one at the top, which looks like it sets how long a thread is inactive before it's moved to the trash folder. Then there's a second date field below to delete the thread. Is this an additional 30 days after the thread was moved?
No. Move OR delete (from public view -soft delete- or permanently -hard delete-), not both.
67.webp
Or is this to delete the thread instead of moving it?
Yes.
How do you disable it? Set it to zero days, or to null?
ACP -> Tools -> Cron Scheduled Tasks -> Move/Delete threads (Eliminar temas) -> Put the mouse over the menu on the right and select Disable
OR
ACP -> Tools -> Cron Scheduled Tasks -> Move/Delete threads -> Click in the name of scheduled task -> Uncheck "Allow cron entry to run automatically when scheduled" and Save Changes.

Salud2
 
I got this error:
Code:
Server Error Log

Error Info
ErrorException: Cannot modify header information - headers already sent by (output started at /.../public_html/forum/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:21
Generated By: Unknown Account,today at 08:03

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/.../p...', 21, Array)
#1 /.../public_html/forum/deferred.php(21): header('Content-Type: a...')
#2 {main}

Request State
array(3) {
  ["url"] => string(45) "http://mysite.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(58) "/forumi/postname.187/?order=title&direction=desc"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

What means that?
 
I got this error:
Rich (BB code):
Server Error Log

Error Info
ErrorException: Cannot modify header information - headers already sent by (output started at /.../public_html/forum/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:21
Generated By: Unknown Account,today at 08:03

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/.../p...', 21, Array)
#1 /.../public_html/forum/deferred.php(21): header('Content-Type: a...')
#2 {main}

Request State
array(3) {
  ["url"] => string(45) "http://mysite.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(58) "/forumi/postname.187/?order=title&direction=desc"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

What means that?

I do not know deferred.php file. This file must correspond to another add-on that i not know. It is not a XenForo's file.
My add-on not sent headers (I know)

Salud2
 
Hm, that file is in my forum root folder. But why it shows error to your add-on?

Well, that is inside that file:
PHP:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

@set_time_limit(120);
ignore_user_abort(true);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

$dependencies = new XenForo_Dependencies_Public();
$dependencies->preLoadData();

$remaining = XenForo_Model::create('XenForo_Model_Deferred')->run(false);
$output = array('moreDeferred' => ($remaining ? true : false));

header('Content-Type: application/json; charset=UTF-8');
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
echo json_encode($output);
 
This file is a XenForo index.php file modification and sent headers on bad site, declare Deferred Model and run it by json.

I do not know this add-on. Sorry.

This add-on runs a cron job entry inside xenforo.

Salud2
 
I paste a code from deferred.php file. Well, It points to your add-on. I'll wait for another cron job to take (to delete threads) and see if the error s shows up again. If it does, I will have to uninstall that add-on.
 
Again a server error (right after I set the cron to run your mod!):
Code:
Server Error Log
Error Info
ErrorException: Cannot modify header information - headers already sent by (output started at /home/.../public_html/forum/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:21
Generated By: Unknown Account, today at 08:03

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/home/.../p...', 21, Array)
#1 /home/mladiuc/public_html/forum/deferred.php(21): header('Content-Type: a...')
#2 {main}

Request State
array(3) {
  ["url"] => string(41) "http://mysite/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(66) "/post.434/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

If you don't know what it could be, then I'll uninstall your add-on.
 
Again a server error (right after I set the cron to run your mod!):
Rich (BB code):
Server Error Log
Error Info
ErrorException: Cannot modify header information - headers already sent by 
(output started at /home/.../public_html/forum/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:21
Generated By: Unknown Account, today at 08:03

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/home/.../p...', 21, Array)
#1 /home/mladiuc/public_html/forum/deferred.php(21): header('Content-Type: a...')
#2 {main}

Request State
array(3) {
  ["url"] => string(41) "http://mysite/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(66) "/post.434/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

If you don't know what it could be, then I'll uninstall your add-on.
The line 1 of cron entry class is:
Code:
<?php
My add-on not sent headers. Look into others add-ons for solve error.

Salud2
 
We seem to be running this error

Code:
Error Info
ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/triumphtalk.com/httpdocs/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:26
Generated By: Unknown Account, Today at 8:01 AM
Stack Trace

#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/var/www/vhosts...', 26, Array)
#1 /var/www/vhosts/triumphtalk.com/httpdocs/deferred.php(26): header('Content-Type: a...')
#2 {main}

Request State

array(3) {
  ["url"] => string(39) "http://www.triumphtalk.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(7) "/media/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
@lms can you possibly give some help on this please

We seem to be running this error

Code:
Error Info
ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/triumphtalk.com/httpdocs/library/XenFacil/ModerarTemas/CronEntry/EliminarMoverTemasPapelera.php:1) - deferred.php:26
Generated By: Unknown Account, Today at 8:01 AM
Stack Trace

#0 [internal function]: XenForo_Application::handlePhpError(2, 'Cannot modify h...', '/var/www/vhosts...', 26, Array)
#1 /var/www/vhosts/triumphtalk.com/httpdocs/deferred.php(26): header('Content-Type: a...')
#2 {main}

Request State

array(3) {
  ["url"] => string(39) "http://www.triumphtalk.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["_xfRequestUri"] => string(7) "/media/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
This is a Xenforo bug, I think. This add-on is a cron entry and runs when he is scheduled to do. Gives an error with different requests. It makes no sense.

Salud2
 
Top Bottom