歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 18, 2024, 01:42:05 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 安裝與設定 / 这种错误是怎么回事 於: 八月 06, 2005, 04:45:12 下午
引用自: ahxiao
引用自: markwu
引用自: ahxiao
但是刷新几次,等一会错误信息就没了,好奇怪
你的 plog/template 的權限是什麼?是 PHP 與 Apache 可以讀取的嗎?

Mark

权限肯定对的,我核实好几次了。

请问哪里可以设置smarty不显示错误吗?


ok,我自己把显示错误信息的代码注释掉了 不要告訴別人
2  支援 / 安裝與設定 / 这种错误是怎么回事 於: 八月 05, 2005, 10:16:01 下午
引用自: markwu
引用自: ahxiao
但是刷新几次,等一会错误信息就没了,好奇怪
你的 plog/template 的權限是什麼?是 PHP 與 Apache 可以讀取的嗎?

Mark

权限肯定对的,我核实好几次了。

请问哪里可以设置smarty不显示错误吗?
3  支援 / 安裝與設定 / 这种错误是怎么回事 於: 八月 02, 2005, 11:12:46 下午
但是刷新几次,等一会错误信息就没了,好奇怪
4  支援 / 安裝與設定 / 这种错误是怎么回事 於: 八月 02, 2005, 11:10:54 下午
打开一个blog的时候出现的错误

我以前安装过正常使用,现在是转移到另外一个空间,结果有点问题

程式碼:

Exception message: file_exists() [http://www.php.net/function.file-exists]: Unable to access ./templates//./templates//kubrick/header.template
Error code: 2
-- Backtrace --
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1663): file_exists
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1558): cachedtemplate._parse_resource_name
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1433): cachedtemplate._fetch_resource_info
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1922): cachedtemplate._compile_resource
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/tmp/14/%%-40^%%-402418591^main.template.php(4): cachedtemplate._smarty_include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1281): include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/cachedtemplate.class.php(48): smarty.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/smartyview.class.php(190): cachedtemplate.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/blogview.class.php(224): smartyview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/defaultview.class.php(82): blogview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/controller/controller.class.php(325): defaultview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/index.php(48): blogcontroller.process

Exception message: is_readable() [http://www.php.net/function.is-readable]: Unable to access ././templates//./templates//kubrick/header.template
Error code: 2
-- Backtrace --
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/core/core.get_include_path.php(34): is_readable
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1670): smarty_core_get_include_path
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1558): cachedtemplate._parse_resource_name
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1433): cachedtemplate._fetch_resource_info
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1922): cachedtemplate._compile_resource
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/tmp/14/%%-40^%%-402418591^main.template.php(4): cachedtemplate._smarty_include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1281): include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/cachedtemplate.class.php(48): smarty.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/smartyview.class.php(190): cachedtemplate.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/blogview.class.php(224): smartyview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/defaultview.class.php(82): blogview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/controller/controller.class.php(325): defaultview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/index.php(48): blogcontroller.process

Exception message: is_readable() [http://www.php.net/function.is-readable]: Unable to access /iSERVER/system/php/lib/php/./templates//./templates//kubrick/header.template
Error code: 2
-- Backtrace --
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/core/core.get_include_path.php(34): is_readable
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1670): smarty_core_get_include_path
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1558): cachedtemplate._parse_resource_name
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1433): cachedtemplate._fetch_resource_info
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1922): cachedtemplate._compile_resource
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/tmp/14/%%-40^%%-402418591^main.template.php(4): cachedtemplate._smarty_include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/smarty/Smarty.class.php(1281): include
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/template/cachedtemplate.class.php(48): smarty.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/smartyview.class.php(190): cachedtemplate.fetch
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/blogview.class.php(224): smartyview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/view/defaultview.class.php(82): blogview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/class/controller/controller.class.php(325): defaultview.render
/iSERVER/Cluster/b/bacuoxx.com/veryzone.bacuoxx/index.php(48): blogcontroller.process


apache freebsd PHP环境: 4.3.1 (Zend加速、内建GD)

安全模式
5  站務 / 站務公告 / [公告] pLog 1.0.2 測試站台 (With TinyMCE) 於: 七月 24, 2005, 08:58:35 下午
疑惑 这是干吗地?
6  支援 / 安裝與設定 / Re: 在zeus下如何把首页设置到summary.php 於: 七月 17, 2005, 07:57:21 上午
引用自: xiang
因为zeus不直接支持Apache的mod_rewrite和.htaccess设置。需要写自己的rules,所以我想问问是否可以修改某个php文件或模板就能替代index.php?blogId=1为summary.php了?
好像在论坛中看见过,今天找了半天也没找到,知道的朋友告诉一下,谢谢了。

另外,有人用Zeus作plog的webserver吗,大家都是怎么处理mod_rewrite问题的,我想在zeus下实现http://blog.domain.com/username/这样的访问结构。Zeus+php的效率的确比Apache+php高很多,真的不想放弃Zeus,苦恼呀~~~

谢谢大家了。

这样的吗?

加在index.php
if(empty($_GET['blogId'])&&empty($_POST['blogId'])){
   require ("summary.php");
   exit();
}
7  支援 / 使用與操作 / Re: 再請教兩個問題... 感謝^^ 於: 七月 15, 2005, 07:33:26 下午
引用自: ajer001
引用自: ahxiao
我也是自己修改了一下summary里的sql语句,通过这个show in summary就可以控制blog的article不在summary里显示出来了。


可以請問一下這個功能要怎麼修改嗎
麻煩了


class/summary/dao/summarystats.php

254行

function getRecentArticles( $maxPosts, $ignoreTopic = "", $ignoreText = "" )
        {
         $prefix = $this->getPrefix();

         $query = "
修改这里面的sql。
改成
$query = "SELECT a.id as id, a.id,t.topic,t.text,a.date,
                             a.user_id,a.blog_id, a.status, a.properties,
                             a.num_reads, a.slug
                 FROM {$prefix}articles a,
                      {$prefix}articles_categories c,
                      {$prefix}article_categories_link l,
                      {$prefix}articles_text t,
                      {$prefix}blogs b
                 WHERE t.article_id = a.id
                       AND TO_DAYS(NOW()) - TO_DAYS(a.date) < 100
                       AND l.article_id = a.id
                       AND l.category_id = c.id
                       AND c.in_main_page = 1
                       AND a.blog_id = b.id
                       AND b.status = ".BLOG_STATUS_ACTIVE."
                       AND a.status = ".POST_STATUS_PUBLISHED."
                     AND b.show_in_summary = 1
                       AND a.date < NOW()";

就是多一个AND b.show_in_summary = 1
8  支援 / 使用與操作 / Re: 再請教兩個問題... 感謝^^ 於: 七月 15, 2005, 04:55:12 下午
引用自: ajer001


另外
再用資料庫修改一些東西的時候
發現blog裡面有一項
叫做show in summary
請問這個有作用嗎

我也是自己修改了一下summary里的sql语句,通过这个show in summary就可以控制blog的article不在summary里显示出来了。
9  支援 / 使用與操作 / 垃圾回复是怎么发出来的? 於: 七月 15, 2005, 04:53:01 下午
我本来以为是通过什么软件发,

然后为了阻止垃圾评论,我在代码中加了段php代码,用来判断HTTP_REFERER是否来自本站,如果不是就禁止.

不过无效 疑惑 ,垃圾评论还是有
10  建議 / 要求與建議 / Re: plog的数据如何备份与恢复? 於: 六月 06, 2005, 10:28:40 上午
引用自: andywang
现在版本没有备份恢复数据功能,我在想那天如果服务器出问题了我们就一点办法都没了,请问这方面如何解决?


可以先用phpmyadmin。
11  支援 / 安裝與設定 / 剛剛安裝好了..但出現錯誤... 於: 五月 30, 2005, 12:32:51 下午
是啊,错误信息同楼主一样。

安 全模式问题。

我还跑到plogworld论坛搜索了一下,这个问题好像无解。

还好,我空间商通过空间管理后台提供一个安全模式修复的功能,但是只能修复已经存在的文件夹权限,新建的还是会出错。。

于是我写了个程序,把以后可能注册的文件夹都建立了,从1-n00,建了几百个,然后到空间后台修复了一下,,包括以后建立的都可以了~~

出现这种问题~~:-S 看来只能联系空间商解决权限问题了
頁: [1]