dqb14659 2016-09-21 13:24
浏览 52

无法修改标题信息 - Wordpress IDX

I have located the line that is the culprit from the Header Error line:

Warning: Cannot modify header information - headers already sent by (output started at /home/prissy/public_html/wp-content/themes/tortuga/header.php:11) in /home/prissy/public_html/wp-content/plugins/dsidxpress/client.php on line 483

The 11 line is the "language attributes" php line.

<?php
/**
* The header for our theme
* @package Tortuga
*/
; ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>

This error does not show except on the listing pages that are rendered from the IDX plugin. I can't see what I need to change here. I checked the white space at the bottom of functions.php and wp-config.php and it looks fine.

Any help would be greatly appreciated. Thank you.

  • 写回答

1条回答 默认 最新

  • douju2012 2016-09-21 13:28
    关注

    The file: /home/prissy/public_html/wp-content/plugins/dsidxpress/client.php on line 483 wants to send data after the theme has been set up and the header is already spitting out it's HTML. So my guess would be that the hook on which the plugin is trying to change headers is being called too late. The hook init or plugins_loaded might be a better hook.

    All this is of course only helpful if you want to edit the plugin. Otherwise find a different plugin which is a bit better developed...

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题