SilverCart Forum
We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?
You can help us helping you by providing detailed error messages, screenshots and logfile entries.
Page: 1 | ||
Topic got error | 3036 Views |
got error
13 March 2011 at 1:24amFatal error: Uncaught exception 'Exception' with message 'Klasse "Page" muss von "SilvercartPage" erben.' in /public_html/web/SilverCart/_config.php:80 Stack trace:
#0 public_html-web/manifest-main(9895): require_once()
#1 public_html/web/sapphire/core/ManifestBuilder.php(74): require_once('/tmp/silverstri...')
#2 public_html/web/sapphire/core/Core.php(232): ManifestBuilder::include_manifest()
#3 public_html/web/sapphire/main.php(61): require_once('/home/np28486/d...')
#4 {main} thrown in public_html/web/SilverCart/_config.php on line 80
what can be wrong
Re: got error
13 March 2011 at 9:57amHi webdoc,
the error message says, that the class Page must extend SilvercartPage. If You download SilverCart from our public repository this error message will be translated already.
Re: got error
13 March 2011 at 10:47amwhen i install the module it uses pages not dataobject and all the pages are unvisible what im doing wrong. got the error away after i removed some lines:
if (class_exists('Page')) {
$ext = new ReflectionClass('Page');
if ($ext->getParentClass()->getName() != 'SilvercartPage') {
throw new Exception('Klasse "Page" muss von "SilvercartPage" erben.');
}
}
if (class_exists('Page_Controller')) {
$ext = new ReflectionClass('Page_Controller');
if ($ext->getParentClass()->getName() != 'SilvercartPage_Controller') {
throw new Exception('Klasse "Page_Controller" muss von "SilvercartPage_Controller" erben.');
}
}
can u pls post somewhere the step by step instalation manual i can same time translate this module to estonian et_EE
Re: got error
13 March 2011 at 12:38pm Last edited: 13 March 2011 12:39pmHi webdoc,
did you manipulate Page.php to change the class hirarchie?
Class definitions must me as follows:
- Page extends SilvercartPage
- Page_Controller extends SilvercartPage_Controller.
If you do not have a class Page/Page_Controller create it.
Does that fix your problem?
Cheers
Ramon