Home > Backend Development > PHP Tutorial > 升级到php5.3.27之后, *.tpl.php全部失效

升级到php5.3.27之后, *.tpl.php全部失效

WBOY
Release: 2016-06-23 13:57:16
Original
1141 people have browsed it

因一个网站功能,昨天升级了服务器的php到5.3.27,用的是wdlinux的lanmp,安装之后启动apache或者php -v会报错:
Cannot load Zend Extension Manager - it was built with configuration 1.2.0,
而且,所有的*.tpl.php都不正常,比如index.tpl.php页面里有如下脚本:

<frame src="<?=u('index','top')?>" noresize="noresize" frameborder="no" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />  <frameset cols="200,*"  id="frame">    <frame src="<?=u('index','left')?>" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="main" />    <frame src="<?=u($_GET['go_mod'],$_GET['go_act'])?>" name="main" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="_self" />  </frameset>
Copy after login

页面打开全是404,查看源码之后,发现地址是http://xx.xx.xx/xx/xx/ ,php脚本好像没运行

经过百度和谷歌,重新安装了ZendGuardLoader,并注释掉了老的zend:
;zend_extension_manager.optimizer=/www/wdlinux/Zend/lib/Optimizer-3.3.3;zend_extension_manager.optimizer_ts=/www/wdlinux/Zend/lib/Optimizer_TS-3.3.3;zend_optimizer.version=3.3.3;zend_extension=/www/wdlinux/Zend/lib/ZendExtensionManager.so;zend_extension_ts=/www/wdlinux/Zend/lib/ZendExtensionManager_TS.sozend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.sozend_loader.enable = 1
Copy after login

重启apache,还是无效,求助该怎么办


回复讨论(解决方案)

php.ini
short_open_tag = On

干脆升到 php5.4.21
无论 short_open_tag 怎么设置都支持  = ?>

php.ini
short_open_tag = On

干脆升到 php5.4.21
无论 short_open_tag 怎么设置都支持  = ?>


非常感谢,解决了,结贴给你
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template