PHP error
Notice: Trying to access array offset on value of type null
in .../cache/compiled/s_ee1aa7ce93830fd0f10704224f142ca965a8c430.php:82
78 ?><h4><?php echo is_bool($value) ? "" : $value;
79 ?></h4><?php endif;
80 ?>
81
82 <?php $parent_hash = $this->current['_self_hash'];
83$this->parent =& $parent_hash ? $this->_vars[$parent_hash] : null;
84$statement = $db->prepare('SELECT w.*, strftime(\'%s\', w.date_creation) AS date_creation, strftime(\'%s\', w.date_modification) AS date_modification, r.contenu AS texte FROM wiki_pages AS w LEFT JOIN wiki_revisions AS r ON (w.id = r.id_page AND w.revision = r.revision) WHERE w.droit_lecture = -1 AND (SELECT COUNT(id) FROM wiki_pages WHERE parent = w.id AND droit_lecture = -1) > 0 AND parent = ? ORDER BY titre LIMIT 0,100');
85$value = '0';
86$statement->bindValue(1, $value, $db->getArgType($value));
in .../include/lib/Garradin/Squelette.php:784
→ require (1 arg.)
| 0 | string(65) ".../cache/compiled/s_ee1aa7ce93830fd0f10704224f142ca965a8c430.php" |
|---|
780
781
782 if (!$no_display)
783 {
784 require self::compile_get_path($tpl_id);
785 }
786 else
787 {
788 eval($tpl_id);
in .../cache/compiled/s_228297b5068f1ede97e3571308e402076160c395.php:2
→ Garradin\Squelette->fetch (2 arg.)
| $template | string(11) "entete.html" |
|---|
| $no_display | bool(false) |
|---|
1<?php /* squelettes-dist/sommaire.html */ namespace Garradin; $db = DB::getInstance(); if ($this->parent) $parent_hash = $this->parent['_self_hash']; else $parent_hash = false;
2 ?><?php $this->fetch("entete.html", false);
3 ?>
4
5<?php $parent_hash = $this->current['_self_hash'];
6$this->parent =& $parent_hash ? $this->_vars[$parent_hash] : null;
7$statement = $db->prepare('SELECT w.*, strftime(\'%s\', w.date_creation) AS date_creation, strftime(\'%s\', w.date_modification) AS date_modification, r.contenu AS texte FROM wiki_pages AS w LEFT JOIN wiki_revisions AS r ON (w.id = r.id_page AND w.revision = r.revision) WHERE w.droit_lecture = -1 AND (SELECT COUNT(id) FROM wiki_pages WHERE parent = w.id AND droit_lecture = -1) = 0 ORDER BY date_creation DESC LIMIT 0,1');
8$result_41ad9e17300da7ecef00290075a84bdebe42d5b8 = $statement->execute();
9$nb_rows = $db->countRows($result_41ad9e17300da7ecef00290075a84bdebe42d5b8);
in .../include/lib/Garradin/Squelette.php:784
→ require (1 arg.)
| 0 | string(65) ".../cache/compiled/s_228297b5068f1ede97e3571308e402076160c395.php" |
|---|
780
781
782 if (!$no_display)
783 {
784 require self::compile_get_path($tpl_id);
785 }
786 else
787 {
788 eval($tpl_id);
in .../include/lib/KD2/MiniSkel.php:847
→ Garradin\Squelette->fetch (1 arg.)
| $template | string(13) "sommaire.html" |
|---|
843 * Displays the parsed template file $template
844 */
845 public function display($template)
846 {
847 echo $this->fetch($template);
848 }
849}
850
851?>
in .../include/lib/Garradin/Squelette.php:848
→ KD2\MiniSkel->display (1 arg.)
| $template | string(13) "sommaire.html" |
|---|
844 $skel = 'article.html';
845 }
846 }
847
848 $this->display($skel);
849 }
850
851 static private function compile_get_path($path)
852 {
in .../www/index.php:13
→ Garradin\Squelette->dispatchURI (0 arg.)
9 Utils::redirect(ADMIN_URL);
10}
11
12$squelette = new Squelette;
13$squelette->dispatchURI();
14