Wsparcie » Instalacja » Błąd aktualizacji do wersji 5.7

  • Rozwiązano leskurzydlo

    (@leskurzydlo)


    Dzień Dobry,
    Nie mogę zaktualizować WP do wersji 5.7. Włączyłem DEBUG i mam odpowiedź:

    Notice: Wywołana metoda konstruktora klasy WP_Widget w VMenuWidget jest przestarzała od wersji 4.3.0! Zamiast niej użyj
    __construct()
    . in /home/rochmn/domains/roch.krakow.pl/public_html/wp-includes/functions.php on line 3956
    Notice: Wywołana metoda konstruktora klasy WP_Widget w LoginWidget jest przestarzała od wersji 4.3.0! Zamiast niej użyj
    __construct()
    . in /home/rochmn/domains/roch.krakow.pl/public_html/wp-includes/functions.php on line 3956

    Przeglądnąłem functions.php i mam takie dane:

    if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( ! empty( $parent_class ) ) {
    				/* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
    				trigger_error( sprintf( __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
    					$class, $parent_class, $version, '<pre>__construct()</pre>' ) );
    			} else {
    				/* translators: 1: PHP class name, 2: version number, 3: __construct() method */
    				trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    					$class, $version, '<pre>__construct()</pre>' ) );
    			}
    		} else {
    			if ( ! empty( $parent_class ) ) {
    				trigger_error( sprintf( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
    					$class, $parent_class, $version, '<pre>__construct()</pre>' ) );
    			} else {
    				trigger_error( sprintf( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
    					$class, $version, '<pre>__construct()</pre>' ) );
    			}
    		}
    	}
    
    }

    Liczę na pomoc 🙂

    Strona przy której potrzebuję pomocy: [zaloguj się aby zobaczyć ten link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leskurzydlo

    (@leskurzydlo)

    Problem rozwiązany,

    Nie tylko instalacja wtyczek, ale aktualizacja całego worpressa do wersji 5.7 przebiegła pomyślnie.

    Brakowało define(’WP_TEMP_DIR’, ABSPATH . 'wp-content/’); w pliku wp-config.php.

    Dziękuję Panu Jaworowiczowi za pomoc z innego wpisu.

    Leszek

    Thread Starter leskurzydlo

    (@leskurzydlo)

    Problem rozwiązany,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Temat ‘Błąd aktualizacji do wersji 5.7’ jest zamknięty na nowe odpowiedzi.