31
tzvook
Re: Customizing the look of individuals blocks
  • 2012/1/17 13:13

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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



32
tzvook
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 15:25

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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



33
tzvook
Re: Help needed - Fatal error in newbb - php5.3
  • 2010/5/10 10:19

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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 ...



34
tzvook
Re: Help needed - Fatal error in newbb - php5.3
  • 2010/5/10 10:03

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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



35
tzvook
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 9:47

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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



36
tzvook
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 9:07

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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



37
tzvook
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 7:54

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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);
    }



38
tzvook
Re: !!! - Fatal error in all phpPP'w modules with php 5.3.2
  • 2010/5/10 6:49

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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


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



39
tzvook
!!! - Fatal error in all phpPP'w modules with php 5.3.2
  • 2010/5/10 6:41

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 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



40
tzvook
Re: Syndication module
  • 2010/5/9 13:04

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


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 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

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

Latest GitHub Commits