Zum Inhalt springen

New record - ERROR

Erstellt am 13. Oktober 2003 · Noch keine Antworten

Tags: Frage

jlkettwig ·

wenn ich vom root-verzeichnis (blank_DUMMY) auf NEW gehe (zum erstellen einer neuen seite) bekomme ich untenstehende fehlermeldung. welche seite wird denn da aufgerufen? vielleicht handelt es sich um einen fehler beim upload - wenn ich den dateinamen kenne, kann ich die datei neu aufspielen.

Fehlermeldung:

New record



Blank DUMMY

Page (inside)
Click here for wizard!

Backend user
Backend usergroup
Filemount
Website Language
Static templates

Create a new page

se a new database element to create. * * @author Kasper Skårhøj */ $BACK_PATH=""; require ("init.php"); require ("template.php"); include ("sysext/lang/locallang_misc.php"); // *************************** // Functions // *************************** require_once (PATH_t3lib."class.t3lib_page.php"); require_once (PATH_t3lib."class.t3lib_positionmap.php"); require_once (PATH_t3lib."class.t3lib_pagetree.php"); // *************************** // Script Classes // *************************** class localPageTree extends t3lib_pageTree { function wrapIcon($icon,$row) { return substr($icon,0,-1).' title="id='.htmlspecialchars($row["uid"]).'">'; } function expandNext($id) { return $id==$GLOBALS["SOBE"]->id ? 1 : 0; } } class SC_db_new { var $pageinfo; var $pidInfo; var $newPagesInto; var $newContentInto; var $newPagesAfter; var $web_list_modTSconfig; var $allowedNewTables; var $web_list_modTSconfig_pid; var $allowedNewTables_pid; var $code; var $R_URI; var $content; var $perms_clause; var $code; var $id; var $doc; // Constructor: function init() { global $SOBE,$AB,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA; $this->perms_clause = $BE_USER->getPagePermsClause(1); $this->id = intval(t3lib_div::GPvar("id")); $AB=1; // For the sake of the link to list-module $this->doc = t3lib_div::makeInstance("smallDoc"); $this->doc->backPath = $BACK_PATH; $this->doc->JScode=''; // *************************** // Creating content // *************************** $this->content=""; $this->content.=$this->doc->startPage($LANG->php3Lang["db_new.php"]["pagetitle"]); $this->content.=$this->doc->header($LANG->php3Lang["db_new.php"]["pagetitle"]); $this->content.=$this->doc->spacer(5); if ($this->id) { $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause); } if ($this->pageinfo["uid"]) { $this->pidInfo=t3lib_BEfunc::getRecord("pages",$this->pageinfo["pid"]); if ($BE_USER->doesUserHaveAccess($this->pageinfo,8-)) { $this->newPagesInto=1; } if ($BE_USER->doesUserHaveAccess($this->pageinfo,16)) { $this->newContentInto=1; } if (($BE_USER->isAdmin()||is_array($this->pidInfo)) && $BE_USER->doesUserHaveAccess($this->pidInfo,8-)) { $this->newPagesAfter=1; } } elseif ($BE_USER->isAdmin()) { $this->newPagesInto=1; $this->newContentInto=1; $this->newPagesAfter=0; } else { $this->newPagesInto=0; $this->newContentInto=0; $this->newPagesAfter=0; } } function main() { global $SOBE,$AB,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA; if ($this->pageinfo["uid"] || $BE_USER->user["admin"]) { $this->web_list_modTSconfig = t3lib_BEfunc::getModTSconfig($this->pageinfo["uid"],"mod.web_list"); $this->allowedNewTables = t3lib_div::trimExplode(",",$this->web_list_modTSconfig["properties"]["allowedNewTables"],1); $this->web_list_modTSconfig_pid = t3lib_BEfunc::getModTSconfig($this->pageinfo["pid"],"mod.web_list"); $this->allowedNewTables_pid = t3lib_div::trimExplode(",",$this->web_list_modTSconfig_pid["properties"]["allowedNewTables"],1); if (!$this->showNewRecLink("pages")) { $this->newPagesInto=0; } if (!$this->showNewRecLink("pages",$this->allowedNewTables_pid)) { $this->newPagesAfter=0; } $this->code=$this->doc->getHeader("pages",$this->pageinfo,$this->pageinfo["_thePath"])."
"; $this->R_URI=t3lib_div::GPvar("returnUrl"); if ($BE_USER->uc["edit_showFieldHelp"]) { $TCA_DESCR=t3lib_BEfunc::loadTablesDescriptions($LANG->lang!="default"?$LANG->lang:""); t3lib_BEfunc::loadSingleTableDescription("pages",$LANG->lang); } if (!t3lib_div::GPvar("pagesOnly")) { // Regular: $this->regularNew(); } elseif ($this->showNewRecLink("pages")) { // Pages only: $this->pagesOnly(); } if ($this->R_URI) { $this->code.='
'.$LANG->getLL("goBack").''; } $this->content.=$this->doc->section('',$this->code); } } function pagesOnly() { global $SOBE,$AB,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA; $posMap = t3lib_div::makeInstance("t3lib_positionMap"); $this->code.="
".$LANG->getLL("selectPosition").":

"; $this->code.= $posMap->positionTree($this->id,$this->pageinfo,$this->perms_clause,$this->R_URI); } function regularNew() { global $SOBE,$AB,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA; $this->code.='
'; // New pages INSIDE this pages if ($this->newPagesInto && $this->isTableAllowedForThisPage($this->pageinfo, "pages") && $BE_USER->check("tables_modify","pages")) { $t="pages"; $v=$TCA[$t]; $this->code.=$this->linkWrap(' '.$LANG->sL($v["ctrl"]["title"]).' ('.$LANG->php3Lang["db_new.php"]["inside"].')',$t,$this->id); if (isset($TCA_DESCR[$t]["columns"][""])) { $this->code.='doc->helpStyle().'>'; } $this->code.='
'; $this->code.='1)).'"> '.$LANG->getLL("clickForWizard").'
'; $this->code.='
'; } // New tables (but not pages) INSIDE this pages if ($this->newContentInto) { if (is_array($TCA)) { reset($TCA); while(list($t,$v)=each($TCA)) { if ($t!="pages" && $this->showNewRecLink($t) && $this->isTableAllowedForThisPage($this->pageinfo, $t) && $BE_USER->check("tables_modify",$t) && (($v["ctrl"]["rootLevel"] xor $this->id) || $v["ctrl"]["rootLevel"]==-1) ) { $this->code.=$this->linkWrap(' '.$LANG->sL($v["ctrl"]["title"]),$t,$this->id); if ($BE_USER->uc["edit_showFieldHelp"]) { t3lib_BEfunc::loadSingleT