• 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 - 1 through 15 (of 33 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try add this to your theme’s functions.php

    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
      if ( defined(LSCWP_V)) {
      do_action( 'litespeed_purge_all' );
      }
    }

    see if it helps

    Thread Starter olek69

    (@olek69)

    117 / 5 000Wyniki t?umaczeniaT?umaczenie

    Unfortunately it didn’t work. I will add that I am using a child theme and I placed this code in the functions.php file in the parent theme.

    Plugin Support qtwrk

    (@qtwrk)

    please put it to child functions.php , whatever theme that is active

    Thread Starter olek69

    (@olek69)

    After adding the functions.php file in the child theme folder with only the above-mentioned code, the website encountered a fatal error that prevents you from logging in to the admin panel.

    Plugin Support qtwrk

    (@qtwrk)

    my bad

    if ( defined('LSCWP_V')) {

    please change that if line

    Thread Starter olek69

    (@olek69)

    Unfortunately, the website still encountered a fatal error

    Plugin Support qtwrk

    (@qtwrk)

    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
      if ( defined('LSCWP_V')) {
      do_action( 'litespeed_purge_all' );
      }
    }

    are you sure you updated correctly the if line ?

    I tested this and it works

    if you still get error, please check php error log , see what was it about

    Thread Starter olek69

    (@olek69)

    I placed the funcions.php file in the child theme directory with the exact same code as below, I removed this code from the funcions.php file in the parent theme folder (I guess that was the reason for the duplicate error). Now I can log in to the administration panel. Now I’m waiting to see if they work ??

    <?php
    
    add_action( 'upgrader_process_complete', 'my_upgrade_function',10, 2);
    function my_upgrade_function( $upgrader_object, $options ) {
    if ( defined('LSCWP_V')) {
    do_action( 'litespeed_purge_all' );
    }
    }
    Thread Starter olek69

    (@olek69)

    I waited two days, but the automatic plugin update did not start. Reports from another website health monitoring plugin come in.

    Plugin Support qtwrk

    (@qtwrk)

    please try add a line like error_log or file_content_put , see if this function is actually being executed or not.

    error_log('test', 3, '/path/to/your/wp/test.log');

    add it before the do_action('litespeed.....'

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

    (@olek69)

    This test.log file can be saved anywhere or any?specific place? Should I enter an absolute or relative path address?

    Plugin Support qtwrk

    (@qtwrk)

    please use absolute path , any where the PHP has permission to write is good , usually I just put it at same dir as wp for simplicity

    Thread Starter olek69

    (@olek69)

    Does the test.log file exist or will it be created automatically? I don’t know if it matters, but one of the security-related plugins displays the following message:

    Another Plugin or Theme is using ‘LiteSpeed\Core::send_headers_force’ to handle output buffers.
    This prevents actively outputting the buffer on-the-fly and could severely degrade the performance of this (and many other) Plugins.
    Consider disabling caching and compression plugins (at least during the scanning process).

    Thread Starter olek69

    (@olek69)

    Ok, the test.log file was created automatically and was filled with the repeated word test.

    Thread Starter olek69

    (@olek69)

    Sorry, I made a mistake, I added it before the first line instead of do_action( ‘litespeed.. I’ve already corrected it.

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