![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 24.08.2015 Ostrzeżenie: (0%) ![]() ![]() |
Witam serdecznie wszystkich na forum (IMG:style_emoticons/default/smile.gif)
Potrzebuje pomocy w zloklizowanu błędu. Używam PHP Storm, który zwraca mi następujący problem: Undefined variable 'object' less... (Ctrl+F1) The inspection can produce two types of warnings: The definition of the variable can not be found anywhere. ("Undefined variable") There are one or more pathes to rich the line with the variable usage without defining it. ("Variable might have not been defined") All variables from files that contain 'include' or 'require' are considered as defined if the option "Ignore 'include' and 'require' statements" is disabled. The inspection is enabled for global space by default. Z kolej przeglądarka zwraca mi problem Fatal error: Call to a member function isAccessible() on null in /public_html/Core/Base/Front.php on line 359 O to kod tego pliku :
W czym leży problem (IMG:style_emoticons/default/questionmark.gif) Proszę o pomoc Ten post edytował kriskrkpl 29.08.2015, 14:04:19 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
problem masz tutaj:
To zwraca Ci:
czyli do $object jest przypisywany wynik logiczny porównania tego:
A że w logicznym warunku nie masz zainicjowanej $object to wywala błąd. Powinno być tak:
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 24.08.2015 Ostrzeżenie: (0%) ![]() ![]() |
Dziękuje za odpowiedź , teraz mam taki błąd , więc w sumie dalej coś nie tak
Fatal error: Call to a member function isAccessible() on boolean in /public_html/Core/Base/Front.php on line 359 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
przesuń nawias z "instanceof Module)" tak: ") instanceof Module"
|
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 24.08.2015 Ostrzeżenie: (0%) ![]() ![]() |
Bardzo Tobie dziękuje Działa ! (IMG:style_emoticons/default/smile.gif)
Jeszcze mam tylko ostatnie pytanie (IMG:style_emoticons/default/smile.gif) Mam taki kod
Oraz taki błąd Fatal error: Uncaught exception 'Core\Exception' with message 'Missing file ''!' in /public_html/Core/Base/Init.php:753 Proszę o ostatnią pomoc |
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
W pliku gdzie wywołujesz _loadConfig() wywołanie tej metody musisz objąć w try{} catch{}
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 24.08.2015 Ostrzeżenie: (0%) ![]() ![]() |
Problem dalej występuje w tym pliku w którym podałem kod.
Skrypt zwraca mi taki błąd . Problem leży na pewno w pliku init.php Fatal error: Uncaught exception 'Core\Exception' with message 'Missing file ''!' in /public_html/Core/Base/Init.php:740 Stack trace: #0 /public_html/Core/Base/Init.php(192): Core\Base\Init->_loadConfig(NULL) #1 /public_html/Core/Base/Init.php(157): Core\Base\Init->setOptions(Array) #2 /public_html/Core/Base/Init.php(114): Core\Base\Init->__construct('production', '/home/klient.dh...', NULL, '/home/klient.dh...') #3 /public_html/index.php(21): Core\Base\Init::getInstance('production', '/home/klient.dh...', NULL, '/home/klient.dh...') #4 {main} thrown in /public_html/Core/Base/Init.php on line 740 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 17:57 |