• Resolved olek69

    (@olek69)


    English: My website is not updated with “Easy Updates Manager” after configuring the Litespeed plugin. Before installing the LiteSpeed Cache plugin the update was done now WordPress and other plugins do not update automatically. How can this be fixed?

    Polski: Moja witryna nie jest aktualizowana za pomoc? “Easy Updates Manager” po skonfigurowaniu wtyczki Litespeed. Przed instalacj? wtyczki LiteSpeed Cache aktualizacja by?a wykonywana teraz WordPress i inne wtyczki nie aktualizuj? si? automatycznie. Jak to mo?na naprawi??

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter olek69

    (@olek69)

    No improvement, auto update does not work, test.php file is empty 0B.

    Plugin Support qtwrk

    (@qtwrk)

    please share the full code you added, just to double check it was correct

    Thread Starter olek69

    (@olek69)

    <?php
    
    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
    if ( defined('LSCWP_V')) {
    error_log('test', 3, '/path/to/my/wp/test.log');
    do_action( 'litespeed_purge_all' );
    }
    }

    The code that is located in the functions.php file

    • This reply was modified 7 months, 1 week ago by olek69.
    Thread Starter olek69

    (@olek69)

    The entry “testtest” appeared in the test.log file

    Thread Starter olek69

    (@olek69)

    <?php
    
    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
    if ( defined('LSCWP_V')) {
    error_log('test', 3, '/path/to/my/wp/test.log');
    do_action( 'litespeed_purge_all' );
    }
    }

    There was some incorrect formatting, lines skipped when pasting.

    Plugin Support qtwrk

    (@qtwrk)

    do_action( 'litespeed_purge_all' );

    please try replace it to header('x-litespeed-purge:*');

    • This reply was modified 7 months, 1 week ago by qtwrk.
    Thread Starter olek69

    (@olek69)

    Unfortunately, this next change did not result in any improvement. It still doesn’t update automatically.

    Plugin Support qtwrk

    (@qtwrk)

    now I wonder , if the whole request was going through site domain ?

    like if your site has multiple different domains , one is used for remote control/upgrade, one is for user visit ?

    Thread Starter olek69

    (@olek69)

    I have an add-on that rejects traffic from outside Poland and redirects it to another domain. But this update worked with this add-on. The change occurred only after installing the Litespeed plug-in.

    Plugin Support qtwrk

    (@qtwrk)

    please try log out

    $_SERVER['SERVER_NAME']
    $_SERVER['REQUEST_URI']

    on above code , I’d like to know what was host name and uri that upgrade takes place.

    Thread Starter olek69

    (@olek69)

    $_SERVER['REQUEST_URI'] 
    Whether 
    $_SERVER['REQUEST_URL']

    Where should I add or use this?

    Plugin Support qtwrk

    (@qtwrk)

    error_log( $_SERVER['REQUEST_URI']  . '/' $_SERVER['REQUEST_URL'] , 3, '/path/to/my/wp/test.log');

    please try this, and update the path.

    Thread Starter olek69

    (@olek69)

    After changing this line in the functions.php code, an error occurred again when logging in to WP. “The site has encountered a critical error.” “An E_PARSE error was caused on line 6 of /home/…./functions.php. Error message: syntax error, unexpected variable “$_SERVER”, expecting “)”

    Plugin Support qtwrk

    (@qtwrk)

    my bad , missed a dot

    please try

    error_log( $_SERVER['REQUEST_URI']  . '/' . $_SERVER['REQUEST_URL'] , 3, '/path/to/my/wp/test.log');
    Thread Starter olek69

    (@olek69)

    now ok

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘My website not update after configure Litespeed plugin’ is closed to new replies.