Get errors when accessing admin panel

空扰寡人 提交于 2019-12-13 08:08:56

问题


I am trying to set up the admin panel for a mobile app template (with cms) that I bough and after linking the database and trying to access the admin panel I get the following errors, and I really have no idea what to do. Thanks so much to anyone who can help me!

A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/cafeducap/admin/system/core/Exceptions.php:185)

Filename: libraries/Session.php

Line Number: 672

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/cafeducap/admin/system/core/Exceptions.php:185)

Filename: helpers/url_helper.php

Line Number: 546


回答1:


According to your error,

in system/core/common.phpfile change

return $_config[0] =& $config; 

to

$_config[0] =& $config;
return $_config[0]; 

It will work fine.



来源:https://stackoverflow.com/questions/32997040/get-errors-when-accessing-admin-panel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!