1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenFacil Moderate threads - Move/Delete Threads 1.0.0b

Move threads to recycle byn/both hard soft Delete Threads CRON entry

  1. lms

    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

    Read more about this resource...
     
    CallieJo likes this.
  2. lms

    lms Well-Known Member

  3. shawn

    shawn Well-Known Member

    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?
     
  4. lms

    lms Well-Known Member

    No. Move OR delete (from public view -soft delete- or permanently -hard delete-), not both.
    67.png
    Yes.
    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
     
  5. BassMan

    BassMan Well-Known Member

    Compatible with xf 1.2.1?
     
  6. lms

    lms Well-Known Member

    I guess so. I have found no errors and no one has reported.

    Salud2
     
    BassMan likes this.
  7. BassMan

    BassMan Well-Known Member

    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?
     
  8. lms

    lms Well-Known Member

    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
     
  9. BassMan

    BassMan Well-Known Member

    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);
     
  10. lms

    lms Well-Known Member

    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
     
  11. BassMan

    BassMan Well-Known Member

    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.
     
  12. BassMan

    BassMan Well-Known Member

    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.
     
  13. lms

    lms Well-Known Member

    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
     
  14. Falkor

    Falkor Member

    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"
      }
    }
    
     
  15. Falkor

    Falkor Member

    @lms can you possibly give some help on this please

     
  16. lms

    lms Well-Known Member

    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
     
  17. Slind

    Slind Active Member

    Is this: Close & Move Thread if since X days no post and if has prefix X possible with this addon?
     
  18. lms

    lms Well-Known Member

    Not now. It's possible in the future.

    Salud2
     
  19. Slind

    Slind Active Member

    Aww, okay.
     

Share This Page