11
ghia
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 9:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Where did you download it?
This is NewBB/CBB 3.08 or not?

I have that code in modules/newbb/class/user.php
Since ArtObject() is an empty function, you may try by commenting out
$this->ArtObject();
in that class definition.

(Hypothesis: PHP 5.3.2 optimizes empty functions by deleting them in /Frameworks/art/object.php?
class ArtObject extends XoopsObject
{
    
/**
     * @var string
     */
    
var $plugin_path;

    
/**
     * Constructor
     *
     */
    
function ArtObject()
    {
    }
}

or it needs an (also empty) __construct?
)

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

13
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

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

15
ghia
Re: Help needed - Fatal error in article 1.0
  • 2010/5/10 10:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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

I'm still puzzled about your different files/version.

16
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

Login

Who's Online

203 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 203


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