Nerozumimim chybove hlasce Argument 1 passed to Tracy\Debugger::exceptionHandler() must be an instance of Ex

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
vosy
Člen | 525
+
0
-

ahoj, chtel bych se zeptat co mi ma napovedet tato chybova hlaska:

Fatal error: Uncaught TypeError: Argument 1 passed to Tracy\Debugger::exceptionHandler() must be an instance of Exception, instance of Error given in /Volumes/WORKS/CZECH M.A.T/_WEB&SYSTEM 2013/_zpracovani_nette_2_3_2_v1/web-project/vendor/tracy/tracy/src/Tracy/Debugger.php:217
Stack trace:
#0 [internal function]: Tracy\Debugger::exceptionHandler(Object(Error))
#1 {main}
  thrown in /Volumes/WORKS/CZECH M.A.T/_WEB&SYSTEM 2013/_zpracovani_nette_2_3_2_v1/web-project/vendor/tracy/tracy/src/Tracy/Debugger.php on line 217
ErrorException: Uncaught TypeError: Argument 1 passed to Tracy\Debugger::exceptionHandler() must be an instance of Exception, instance of Error given in /Volumes/WORKS/CZECH M.A.T/_WEB&SYSTEM 2013/_zpracovani_nette_2_3_2_v1/web-project/vendor/tracy/tracy/src/Tracy/Debugger.php:217
Stack trace:
#0 [internal function]: Tracy\Debugger::exceptionHandler(Object(Error))
#1 {main}
  thrown in /Volumes/WORKS/CZECH M.A.T/_WEB&SYSTEM 2013/_zpracovani_nette_2_3_2_v1/web-project/vendor/tracy/tracy/src/Tracy/Debugger.php:217
Stack trace:
#0 [internal function]: Tracy\Debugger::shutdownHandler()
#1 {main}
(stored in /Volumes/WORKS/CZECH M.A.T/_WEB&SYSTEM 2013/_zpracovani_nette_2_3_2_v1/web-project/app/../log/exception-2017-01-29-18-09-45-6daafcbecb7a3faa964f6bf9b0296013.html)
Phalanx
Člen | 310
+
0
-

Že bys měl předávat Exception a ne instanci Error.

A mrkni do souboru web-project/app/../log/exception-2017–01–29–18–09–45–6daafcbecb7a3faa964f6bf9b0296013.html
odkud to přesně voláš :)

David Matějka
Moderator | 6445
+
+1
-

aktualizuj si nette (nebo alespon tracy). mas verzi, ktera nepodporuje php7 throwable

vosy
Člen | 525
+
0
-

kdyz chci aktualizovat tracy:

Using version ^2.4 for tracy/tracy
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
 – nette/nette v2.3.1 requires tracy/tracy 2.3.1 → satisfiable by tracy/tracy[v2.3.1] but these conflict with your requirements or minimum-stability.
 – nette/nette v2.3.1 requires tracy/tracy 2.3.1 → satisfiable by tracy/tracy[v2.3.1] but these conflict with your requirements or minimum-stability.
 – nette/nette v2.3.1 requires tracy/tracy 2.3.1 → satisfiable by tracy/tracy[v2.3.1] but these conflict with your requirements or minimum-stability.
 – Installation request for nette/nette (locked at v2.3.1) → satisfiable by nette/nette[v2.3.1].

a aktualizovat nette asi nemohu protoze produkcni server bezi na php 5.4

CZechBoY
Člen | 3608
+
0
-

Tak pouzij tracy 2.3.
Je dobry v composer.json uvadet verzi php, na ktery bezi projekt. Nemuze se ti pak stat, ze se ti nainstaluje nekompatibilni verze (protoze composer poustis s php7, ale projekt jede na php 5.4).

vosy
Člen | 525
+
0
-

CZechBoY napsal(a):

Tak pouzij tracy 2.3.
Je dobry v composer.json uvadet verzi php, na ktery bezi projekt. Nemuze se ti pak stat, ze se ti nainstaluje nekompatibilni verze (protoze composer poustis s php7, ale projekt jede na php 5.4).

mam Tracy 2.3.1
ale ta mi hazi chybu viz prvni prispevek – a nevim co mi tim chce nette rici

David Matějka
Moderator | 6445
+
0
-

kdyz nebudes mit zavislost na nette/nette, ale na jednotlivych baliccich, tak muzes aktualizovat jen tracy na 2.4 a ostatni nechat na 2.3

vosy
Člen | 525
+
0
-

mam:

{
	"name": "nette/web-project",
	"description": "Nette: Standard Web Project",
	"type": "project",
	"license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
	"require": {
		"php": ">= 5.4.0",
		"nette/application": "~2.3.0",
		"nette/bootstrap": "~2.3.0",
		"nette/caching": "~2.3.0",
		"nette/database": "~2.3.0",
		"nette/di": "~2.3.0",
		"nette/finder": "~2.3.0",
		"nette/forms": "~2.3.0",
		"nette/http": "~2.3.0",
		"nette/mail": "~2.3.0",
		"nette/robot-loader": "~2.3.0",
		"nette/safe-stream": "~2.3.0",
		"nette/security": "~2.3.0",
		"nette/utils": "~2.3.0",
		"latte/latte": "~2.3.0",
		"tracy/tracy": "~2.3.0",
		"nasext/visual-paginator": "~2.2",
		"kdyby/forms-replicator": "@dev",
		"kdyby/translation": "~2.2",
		"phpmailer/phpmailer": "~5.2"
	},
	"require-dev": {
		"nette/tester": "~1.4"
	}
}
vosy
Člen | 525
+
0
-

vosy napsal(a):

mam:

{
	"name": "nette/web-project",
	"description": "Nette: Standard Web Project",
	"type": "project",
	"license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
	"require": {
		"php": ">= 5.4.0",
		"nette/application": "~2.3.0",
		"nette/bootstrap": "~2.3.0",
		"nette/caching": "~2.3.0",
		"nette/database": "~2.3.0",
		"nette/di": "~2.3.0",
		"nette/finder": "~2.3.0",
		"nette/forms": "~2.3.0",
		"nette/http": "~2.3.0",
		"nette/mail": "~2.3.0",
		"nette/robot-loader": "~2.3.0",
		"nette/safe-stream": "~2.3.0",
		"nette/security": "~2.3.0",
		"nette/utils": "~2.3.0",
		"latte/latte": "~2.3.0",
		"tracy/tracy": "~2.3.0",
		"nasext/visual-paginator": "~2.2",
		"kdyby/forms-replicator": "@dev",
		"kdyby/translation": "~2.2",
		"phpmailer/phpmailer": "~5.2"
	},
	"require-dev": {
		"nette/tester": "~1.4"
	}
}

sudo composer update

udělal se mi update tracy pouze na 2.3.12

– Removing tracy/tracy (v2.3.1)
 – Installing tracy/tracy (v2.3.12)
Downloading: 100%

johnnie
Člen | 54
+
+1
-

To preto lebo tam mas 2.3.0 aktualizuje ti to len posledne cislo za bodkou, skus to prepisat na 2.3

greeny
Člen | 405
+
0
-

Jinak trochu offtopic, ale composer bys neměl spouštět se sudo