1
metropolis
Critical bug in article 0.95
  • 2006/7/26 5:37

  • metropolis

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/7/15


Hi,

yesterday I was totally enthusiastic about the content module article 0.95.

But it seems to have a bug which makes it unsuable.

I spent some hours to set it up and wrote two articles in one category. Everything was fine. But after a couple of hours, I only got the "white screen of death" from Xoops.

After setting the debug variable in the database by hand, I got this error message:

Quote:
Fatal error: Class articlepermissionhandler: Cannot inherit from undefined class xoopsgrouppermhandler in /usr/export/www/vhosts/funnetwork/hosting/xxxx/modules/article/include/functions.php(122) : eval()'d code on line 2


Deleting files from /cache and /templates_c doesn't help, though I think it must have something to do with the cache, because this error occurs after a few hours and not immediately. I had to rename the modules/article folder to be able to access my page again. After that, I decativated the article module and renamed it back to article.

I have tried this two times now and it happened twice.

Could anybody have a look into that? Thanks.

Oh, I am running XOOPS 2.0.14 on PHP 4.4.2 with MySQL 4.0.26.

2
snow77
Re: Critical bug in article 0.95
  • 2006/7/26 6:05

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


this is one of the nicest examples I've seen with article in action:
http://performingartsnews.com/modules/article/

doesn't look buggy to me, nor with my experience with it, calling it unusable sounds like a kind of hasty affirmation to me.
www.polymorphee.com
www.xoopsdesign.com

3
metropolis
Re: Critical bug in article 0.95
  • 2006/7/26 6:34

  • metropolis

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/7/15


If you have not more to say than your personal opinion, I would like you to do this in other threads. Your post is not helpful at all.

For me it is unusable if it causes my site to be completely blank. And I have quoted the error message, so there is an error.

I am quite sure it works in many environments, but there are obviously problems in some others.

4
frankblack
Re: Critical bug in article 0.95
  • 2006/7/26 6:43

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


What is the code in line 2 of include/functions.php?

I cannot look myself, because I always download corrupted archives from phpppppp's download page.

5
metropolis
Re: Critical bug in article 0.95
  • 2006/7/26 6:47

  • metropolis

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/7/15


This is the whole surrounding function:
function art_parse_class($class_string$pattern=""$replacement="")
{
    if(empty(
$class_string)) return;
    
$patterns = array("/[CLASS_PREFIX]/");
    
$replacements = array(ucfirst(strtolower($GLOBALS["artdirname"])));
    if(!empty(
$pattern) && !is_array($pattern) && !is_array($replacement)){
        
$pattern = array($pattern);
        
$replacement = array($replacement);
    }
    if(
is_array($pattern) && count($pattern)>0){
        
$ii 0;
        foreach(
$pattern as $pat){
            if(!
in_array($pat$patterns)){
                
$patterns[] = $pat;
                
$replacements[] = isset($replacement[$ii])?$replacement[$ii]:"";
            }
            
$ii++;
        }
    }
    
$class_string preg_replace($patterns$replacements$class_string);
    eval(
$class_string);
    return 
true;
}


Line 122 is the eval statement just before the return statement.

Quote:

I cannot look myself, because I always download corrupted archives from phpppppp's download page.

I constantly retried the downloads until the whole archive has been downloaded, but it can be quite difficult and it takes some time.

6
snow77
Re: Critical bug in article 0.95
  • 2006/7/26 7:18

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


there are obviously problems with your arrogant attitude.

PS. try requesting for the module to have a sourceforge mirror so you can download it being sure there are no corrupt files in it and have a complete download, since there have been problems doing the downloads from china.

(...if I were as arrogant, I wouldn't waste my time doing a second intention of helping you)
www.polymorphee.com
www.xoopsdesign.com

7
metropolis
Re: Critical bug in article 0.95
  • 2006/7/26 8:02

  • metropolis

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/7/15


I have a non-corrupted distribution, since it is provided in ZIP files which have a checksum. If I can unpack it, the distribution is OK (unless somebody put in buggy files).

Quote:

I wouldn't waste my time doing a second intention of helping you

So what was your help? Telling me you know of a working installation? Wow, thanks a lot, that really solved my problem. Please help somebody else.

8
phppp
Re: Critical bug in article 0.95
  • 2006/7/26 8:11

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


well, I think what snow77 intended to say is that since he/she found a working instance, he/she doesn't think your failure was caused by the module bug, but more likely caused by file corruption or incompleteness, or any other unknown issues. It is kind of help, right?

Anyway, I am sorry for the trouble connecting XOOPS China and the possible bugs.
Also, thank you for using, improving and helping with the module.

D.J.

9
metropolis
Re: Critical bug in article 0.95
  • 2006/7/26 8:42

  • metropolis

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/7/15


Quote:

phppp wrote:
well, I think what snow77 intended to say is that since he/she found a working instance, he/she doesn't think your failure was caused by the module bug, but more likely caused by file corruption or incompleteness, or any other unknown issues. It is kind of help, right?

Sorry, but from the error description, does it sould like a corrupted file? It doesn't happen immediately but after some hours, but it is reproducable. Unpacking a corrupted zip file would cause error messages.

Quote:

Also, thank you for using, improving and helping with the module.
D.J.

And do you have any idea what the bug caused?

10
phppp
Re: Critical bug in article 0.95
  • 2006/7/26 8:49

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


@metropolis, my post was for your question for snow77, not for the specific problem you have.

As for the specific "bug", I need find time to check it. Sorry for not having useful anwser right now.

Login

Who's Online

211 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits