xoops forums

Forum Index


Board index » All Posts (tzvook)




tzvook

Just can't stay away
Posted on: 2012/1/17 13:13
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#31

Re: Customizing the look of individuals blocks

Came back after 3 years , to upgrade to 2.5.4 and use my own solution in a UTF site.
Nice to be back


tzvook

Just can't stay away
Posted on: 2010/5/10 15:25
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#32

Re: Help needed - Fatal error in article 1.0

Quote:

ghia wrote:
Quote:
I'll keep doing it to each place I see it ....
Maybe you can list them here for helping reference to others.


Well - a simple editor search for all the "ArtObject" in the module


tzvook

Just can't stay away
Posted on: 2010/5/10 10:19
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#33

Re: Help needed - Fatal error in newbb - php5.3

One more thing may be of use to php-5.3.x users:

in EXTcal module I got an error about
Quote:
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings


All you need to do is open the file ( /extcal/calendar-month.php ) and add right after the
<?php


just this:
date_default_timezone_set('UTC');      //TZ for php 5.3.x


the UTC depends on your time-zone .... look here

same goes to /year.php , /day.php , week.php , calendar-week.php ....

hope someone will benefit this ...


tzvook

Just can't stay away
Posted on: 2010/5/10 10:03
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#34

Re: Help needed - Fatal error in newbb - php5.3

Yep - that did the trick !!!
there are still some places with it but for now no more fatal error
As always - a big THANK YOU for helping


tzvook

Just can't stay away
Posted on: 2010/5/10 9:47
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#35

Re: Help needed - Fatal error in article 1.0

10x Ghia
You were right - since it's empty - commenting it out helps !!
I'll keep doing it to each place I see it ....


tzvook

Just can't stay away
Posted on: 2010/5/10 9:07
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#36

Re: Help needed - Fatal error in article 1.0

I'm not sure where is the source of ArtObject()


tzvook

Just can't stay away
Posted on: 2010/5/10 7:54
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#37

Re: Help needed - Fatal error in article 1.0

File /modules/newbb/include/functions.php has 1450 lines ( 3.8)

but it all comes from /frameworks/art/ - this "ArtObject" thing !!!

here are the lines ( 953 to 984 ):

function newbb_getrank($rank_id =0$posts 0)
{
    static 
$ranks;
    
$myts =& MyTextSanitizer::getInstance();

    if(empty(
$ranks)){
        if(!
class_exists("XoopsRankHandler")):
        class 
XoopsRank extends ArtObject
        
{
            function 
XoopsRank()
            {
                
$this->ArtObject();
                
$this->initVar('rank_id'XOBJ_DTYPE_INTnullfalse);
                
$this->initVar('rank_title'XOBJ_DTYPE_TXTBOXnullfalse);
                
$this->initVar('rank_min'XOBJ_DTYPE_INT0);
                
$this->initVar('rank_max'XOBJ_DTYPE_INT0);
                
$this->initVar('rank_special'XOBJ_DTYPE_INT0);
                
$this->initVar('rank_image'XOBJ_DTYPE_TXTBOX"");
            }
        }
        class 
XoopsRankHandler extends ArtObjectHandler
        
{
            function 
XoopsRankHandler(&$db) {
                
$this->ArtObjectHandler($db'ranks''XoopsRank''rank_id''rank_title');
            }
        }
        
$rank_handler =& new XoopsRankHandler($GLOBALS["xoopsDB"]);
        else:
        
$rank_handler =& xoops_gethandler('rank');
        endif;
        
$ranks $rank_handler->getObjects(nulltruefalse);
    }


tzvook

Just can't stay away
Posted on: 2010/5/10 6:49
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#38

Re: !!! - Fatal error in all phpPP'w modules with php 5.3.2

line 964 is of course
$this->ArtObject();


So .... before moving to php5 (5.3.x) ... think twice - half of my modules has issues.


tzvook

Just can't stay away
Posted on: 2010/5/10 6:41
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#39

!!! - Fatal error in all phpPP'w modules with php 5.3.2

Now I found out it was not limited to one module - It's all over my xoops sites with phpPP's modules that uses the /FRAMEWORKS/art/

1. newBB 3.8
2. article version 1.0
3. planet

I really need help here ....

NewBB gives this in debug:
Fatal errorCall to undefined method XoopsRank::ArtObject() in /www/virtual/xxxxx.org/htdocs/modules/newbb/include/functions.php  on line 964


tzvook

Just can't stay away
Posted on: 2010/5/9 13:04
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#40

Re: Syndication module

Quote:

ghia wrote:
Found once this issue with 2.4.3 and Article in creating objects.
Could there be a similar issue here?


As much as I can see it's not the case here ... the clue seems to be in /Frameworks/art/object.php ... php 5.3.x don't like something there ... it was o.k. with php 5.2.x



TopTop
« 1 2 3 (4) 5 6 7 ... 60 »