Login   Register  
PHP Classes
elePHPant
Icontem

Fatal error - 11 Oct

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP JUI templating system  >  All threads  >  Fatal error - 11 Oct  >  (Un) Subscribe thread alerts  
Subject:Fatal error - 11 Oct
Summary:fatal error in both examples
Messages:3
Author:Gary England
Date:2012-10-11 19:42:34
Update:2012-10-12 08:34:17
 

  1. Fatal error - 11 Oct   Reply   Report abuse  
Picture of Gary England
Gary England
2012-10-11 19:42:34
Using ./View/index.yaml yields the message:
Fatal error: Class '\JUI\Components\Page' not found in C:\public_html\jui\JUI\Engine\Parser.php on line 55

Using ./View/index.json yields the message:
Fatal error: Uncaught exception 'Exception' with message '(Parser) Given array has not defined component (array key `com` is not set)!' in C:\public_html\jui\JUI\Engine\Parser.php:47 Stack trace: #0 C:\public_html\jui\JUI\Engine\Parser.php(37): JUI\Engine\Parser->parseComponent(Array) #1 C:\public_html\jui\index.php(6): JUI\Engine\Parser->parse('{??"com" : "Pag...') #2 {main} thrown in C:\public_html\jui\JUI\Engine\Parser.php on line 47

  2. Re: Fatal error - 11 Oct - Newer code   Reply   Report abuse  
Picture of Gary England
Gary England
2012-10-11 23:04:29 - In reply to message 1 from Gary England
With JSON:
Fatal error: Uncaught exception 'Exception' with message '(Parser) Given array has not defined component (array key `com` is not set)!' in C:\public_html\jui\JUI\Engine\Parser.php:47 Stack trace: #0 C:\public_html\jui\JUI\Engine\Parser.php(37): JUI\Engine\Parser->parseComponent(Array) #1 C:\public_html\jui\index.php(6): JUI\Engine\Parser->parse('{??"com" : "Pag...') #2 {main} thrown in C:\public_html\jui\JUI\Engine\Parser.php on line 47

with YAML:
Fatal error: Class '\JUI\Components\Page' not found in C:\public_html\jui\JUI\Engine\Parser.php on line 55

  3. Re: Fatal error - 11 Oct   Reply   Report abuse  
Picture of Jakub Kuritka
Jakub Kuritka
2012-10-12 08:34:17 - In reply to message 2 from Gary England
If you want to use json pages instead of yaml, you have to change serializer in JUI\Jui.php from JUI\Engine\Serializers\Yaml to JUI\Engine\Serializers\Json. I dont know why it can not find JUI\Components\Page. Maybe it is problem with autoloader. Try delete file JUI\Autoloader\classMap.txt. Or use another autoloader.