Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Problem z wordpressem
Forum PHP.pl > Forum > PHP
senior.pol
W trybie DEBUG wordpress wyskakuje mi komunikat:

Notice: Only variables should be passed by reference in .../ot-loader.php on line 98

  1. $path = ltrim( end( @explode( get_template(), str_replace( '\\', '/', dirname( __FILE__ ) ) ) ), '/' );


Ktoś może mi pomóc w naprawieniu tego problemu?
untorched
Czytając manual o funkcji end - Set the internal pointer of an array to its last element; oraz treść błędu Only variables should be passed by reference można dojść do wniosku, iż nie możesz przekazać funkcji jako referencji.

  1. $arr = explode( get_template(), str_replace( '\\', '/', dirname( __FILE__ ) ) );
  2. $path = ltrim( end($arr), '/' );
senior.pol
Cytat(untorched @ 21.12.2016, 00:50:54 ) *
Czytając manual o funkcji end - Set the internal pointer of an array to its last element; oraz treść błędu Only variables should be passed by reference można dojść do wniosku, iż nie możesz przekazać funkcji jako referencji.

  1. $arr = explode( get_template(), str_replace( '\\', '/', dirname( __FILE__ ) ) );
  2. $path = ltrim( end($arr), '/' );

Dzięki wielki arrowheadsmiley.png
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.