admin管理员组文章数量:1327488
This is an older custom theme. On the live server, I updated to the latest version of WP, updated all plug-ins including ACF. Downloaded all files, DB, and renamed to local URL. I've done this many many times with various builds and have never had an issue.
Running MAMP, the browser is outputting PHP code from the functions.php file. Not the header or any CSS, I see HTML is loading after this. Also can't get to /wp-admin, same result.
PHP running on live server 7.3.11, closest on MAMP is 7.39
Any suggestions on where to look? I was not the original theme developer. This is maddening, as I just need to do a simple homepage redesign and can't develop locally. Not to mention not billing for time troubleshooting. THANKS IN ADVANCE!
This is an older custom theme. On the live server, I updated to the latest version of WP, updated all plug-ins including ACF. Downloaded all files, DB, and renamed to local URL. I've done this many many times with various builds and have never had an issue.
Running MAMP, the browser is outputting PHP code from the functions.php file. Not the header or any CSS, I see HTML is loading after this. Also can't get to /wp-admin, same result.
PHP running on live server 7.3.11, closest on MAMP is 7.39
Any suggestions on where to look? I was not the original theme developer. This is maddening, as I just need to do a simple homepage redesign and can't develop locally. Not to mention not billing for time troubleshooting. THANKS IN ADVANCE!
Share Improve this question asked Aug 7, 2020 at 14:39 rkDevrkDev 11 bronze badge2 Answers
Reset to default 1If it's outputting some PHP from functions.php but not the whole file then likely you've just got mismatched PHP opening/closing tags - <?php
and ?>
somewhere, or potentially even mismatched string quotations.
You need to edit that file in a text editor and look carefully around the point it's starting to output PHP for mismatched entities. A good editor that does PHP syntax highlighting will make this much easier.
As it turns out, MAMP is ignoring php openers with just <?
not <?php
, but if I started changing them, parts of the site render. There are hundreds if not thousands of entries, a huge site with lots of parts. This is the latest syntax and not sure why MAMP won't process it. Googling isn't bringing back many results.
本文标签: theme developmentLive to Local on MAMPnot workingoutputting functionsphp code
版权声明:本文标题:theme development - Live to Local on MAMP, not working, outputting functions.php code 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742198240a2431478.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论