Hi there!
I switched my wamp 2.5 (php5.5) to xampp 8.0 (php8.0) ,
After that, my footer on the top page disappeared.
Could you tell me how to fix it?
wamp 2.5 (php5.5)
xampp 8.0 (php8.0)
My code:
<?php
include($ContentFile);
?>
<div class="c"></div>
<a style="display: none; " rel="nofollow" href="#top" id="go-to-top">▲</a>
</div>
<?php
if (!$IsAjax){
?>
<!-- main end -->
<div class="c"></div>
</div>
<?php include('footer.php'); ?>
<!-- content wrapper end -->
<?php
if ($Config['PageBottomContent']) {
echo $Config['PageBottomContent'];
}
?>
</body>
</html>
<?php
}
ob_end_flush();
?>
Gandalf
2
Are there any messages in the error log?
[Mon Dec 21 20:42:31.425096 2020] [php:error] [pid 6772:tid 1768] [client ::1:50434] PHP Fatal error: Uncaught Error: Undefined constant “guide2” in E:\projects\haigui\view\default\sider.php:162\nStack trace:\n#0 E:\projects\haigui\view\default\home.php(223): include()\n#1 E:\projects\haigui\view\default\layout.php(268): include(‘E:\\projects\\hai…’)\n#2 E:\projects\haigui\controller\home.php(67): include(‘E:\\projects\\hai…’)\n#3 E:\projects\haigui\index.php(153): require(‘E:\\projects\\hai…’)\n#4 {main}\n thrown in E:\projects\haigui\view\default\sider.php on line 162
They finally moved Undefined Constant to a E_FATAL instead of E_WARN.
Go find line 162 in sider.php. You’ve forgotten to put quotes around a string.
That’s telling you the error, what file (sider.php, in that file path), and what line (:162) it occured on.
2 Likes
Thank you! I think I can fix it!
system
Closed
8
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.