發表回覆建立主題發起投票

> 3.05版程式修正
oldpa
發表於: 2017-02-08, 04:48 PM
引用文章


超級會員
*****

所屬群組: 管理群組
發表總數: 5459
會員編號: 1
註冊日期: --



因PHP版本不同,有後台上架商品或是使用有編輯器的功能程式,發生操作後出現空白頁或是出現類似之錯誤訊息
Warning: Cannot modify header information - headers already sent by (output started at /XXX/XXXXX/XXX/XXX/inc/twe_wysiwyg.inc.php:18) in /XXX/XXXXX/XXX/XXX/admin/includes/functions/general.php on line 154

方法一:
請開啟inc/twe_wysiwyg.inc.php
找出16,17,18行移除
CODE

<?
<script type="text/javascript" language="javascript" src="../ext/tinymce/tinymce.min.js"></script>
<?php


開啟admin/includes/includes.js.php
23行加入
CODE

<script type="text/javascript" language="javascript" src="../ext/tinymce/tinymce.min.js"></script>


開啟admin/content_manager.php,
admin/mail.php,
admin/banner_manager.php,
admin/module_newsletter.php,
admin/gv_mail.php

找出
CODE
<?php require('includes/includes.js.php'); ?>

挪移至相當於
CODE

<?php if (USE_SPAW=='true') {

<?php if (USE_SPAW=='true' && $_GET['action'].........

上一行

方法二
請開啟inc/twe_wysiwyg.inc.php
找出16,17,18行移除
CODE

<?
<script type="text/javascript" language="javascript" src="../ext/tinymce/tinymce.min.js"></script>
<?php

找出
CODE

if ($editorName != '') {
  $html .='<script type="text/javascript">
  tinymce.init({
   selector: "'.$editorName.'",
   theme: "modern",
height:"'.$default_editor_height.'",
document_base_url : "'.HTTP_SERVER.DIR_WS_CATALOG.'",
valid_elements : "*[*]",
language : "'.$lang.'",
   plugins: [
       "advlist autolink lists link image charmap print preview hr anchor pagebreak",
       "searchreplace wordcount visualblocks visualchars code fullscreen",
       "insertdatetime media nonbreaking save table contextmenu directionality",
       "emoticons template paste textcolor colorpicker textpattern filemanager"
   ],
   toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent",
   toolbar2: "print preview media | forecolor backcolor emoticons | link image filemanager code",
   image_advtab: true,
relative_urls: false,
  remove_script_host: false,
 });
</script>';
   }    

修改成
CODE

if ($editorName != '') {
  $html .='<script type="text/javascript" language="javascript" src="../ext/tinymce/tinymce.min.js"></script><script type="text/javascript">
   $(document).ready(function(){
  tinymce.init({
   selector: "'.$editorName.'",
   theme: "modern",
height:"'.$default_editor_height.'",
document_base_url : "'.HTTP_SERVER.DIR_WS_CATALOG.'",
valid_elements : "*[*]",
language : "'.$lang.'",
   plugins: [
       "advlist autolink lists link image charmap print preview hr anchor pagebreak",
       "searchreplace wordcount visualblocks visualchars code fullscreen",
       "insertdatetime media nonbreaking save table contextmenu directionality",
       "emoticons template paste textcolor colorpicker textpattern filemanager"
   ],
   toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent",
   toolbar2: "print preview media | forecolor backcolor emoticons | link image filemanager code",
   image_advtab: true,
relative_urls: false,
  remove_script_host: false
 });
});
</script>';
   }    


開啟admin/content_manager.php,
admin/mail.php,
admin/banner_manager.php,
admin/module_newsletter.php,
admin/gv_mail.php

找出
CODE
<?php require('includes/includes.js.php'); ?>

挪移至相當於
CODE

<?php if (USE_SPAW=='true') {

<?php if (USE_SPAW=='true' && $_GET['action'].........

上一行


--------------------
Twecommerce 崴騰科技有限公司
台中市西區五權五街264號 統一編號:86168702
電話:04-23781970 FAX:04-23781969 liang.ishiang@msa.hinet.net
傳送簡訊個人網站
Top
0 位使用者正在閱讀本主題 (0 位訪客及 0 位匿名使用者)
0 位會員:

主題選項 發表回覆建立主題發起投票