[pLog-svn] resource addition.

Mark Wu markplace at gmail.com
Sun May 14 13:32:52 GMT 2006


I think it is the bug of your php version.
 
As I know, it is the bug of 5.0.4 or 5.,0.5...
 
After 5.1.x, the bug already fixed ...
 
I will suggest you upgrade your php to 5.1.x, instead of use 5.0.x 
 
Mark


  _____  

From: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of ma'moon
Sent: Sunday, May 14, 2006 7:13 PM
To: plog-svn at devel.lifetype.net
Subject: Re: [pLog-svn] resource addition.


i found the solution !!! and its working perfectly, the following lins of
code should be altered (" i'am not sure if thats right but it worked
perefectly for me !!!") :
**instead of having the following:
{
$randomBlog = array_pop( $blogs->getAllBlogs( BLOG_STATUS_ACTIVE,
ALL_BLOG_CATEGORIES, "", 1, 1) );
}
i replaced with :
{
$tmp = $blogs->getAllBlogs( BLOG_STATUS_ACTIVE, ALL_BLOG_CATEGORIES, "", 1,
1);
$randomBlog = array_pop( $tmp );
}
on line *79* in file (*/class/summary/action/summarydefaultaction.class.php)

my PHP version is (5.0.5) runing with apache2 web server, and MySQL 4.1.12
RDMS under Ubuntu server.
may be this thing is PHP version related matter, i'am not sure of that, but
it worked for me.


On 5/14/06, Jon Daley <  <mailto:plogworld at jon.limedaley.com>
plogworld at jon.limedaley.com> wrote: 

On Sun, 14 May 2006, ma'moon wrote:
> thats right, but if i do have this problem, then theres a big possibility 
> that others having the problem as well, so, is there anyway to perform a
> check after the installation has been completed to see if this is a fresh
> installation, if it is, then there would be no need to pick a random blog
we 
> only need to pick the first blog, otherwise, we would have a random blog
> selected from a set that contains MORE than ONE blog, i think if we did it
> this way we would avoid this problem AND it would make much more sense to 
> pick a blog from a bunch but not from a set that contains a SINGLE blog,
but
> there'll be one drawback which is that everytime the summary page "or what
> ever pages" calls this script it will perform this check, even though that
i 
> guiss that it won't be that big overhead doing so.
        I don't understand what you are saying.  You can't just pick
blogId=1, because maybe that blog doesn't exist, etc.  We just need any
old blog to get a requestgenerator object.  I don't know how you would 
detect a "fresh" installation in the summary, and why that would make any
difference.
        As a side-note, it appears that the url variable gets overwritten
in the index.template anyway - probably that should be changed? 

> and about the editpost problem, the older version also sufferes from it,
if
> you want to edit a post that contains a resource the same thing with the
> same resoults happen, no matter what the editor to use, the problem is the

> same in HTMLarea and tinyMCE even that i do not believe that the ediotrs
> have anything to do with it.
        Can you try changing the two xhtml conversion settings?
_______________________________________________ 
pLog-svn mailing list
pLog-svn at devel.lifetype.net
http://devel.lifetype.net/mailman/listinfo/plog-svn
<http://devel.lifetype.net/mailman/listinfo/plog-svn> 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http:// devel.lifetype.net/pipermail/plog-svn/attachments/20060514/dd20004b/attachment.html


More information about the pLog-svn mailing list