Donate

If you find any of the plugins I write useful then please consider making a donation. These donations can be used to offset the cost of my web hosting allowing me to produce more plugins for the e107 community

Welcome

Username:

Password:


Remember me

Gluons Gluons

Login to view your stats

Online

Guests: 15, Members: 0 ...

most ever online: 377
(Members: 0, Guests: 377) on 07 Jun : 07:44

Members: 1222
Newest member: rsetser

Forums

e107 Gold :: Forums :: Gold System Forums :: Problems - Gold System Bug Discussion
 
<< Previous thread | Next thread >>
Gold Plugins
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, 2dopey, schlrech, nlstart, gary231178, SimonP, fivestar, ^Shei^
Author Post
Minnes08

Wed Oct 08 2008, 06:18pm
[ ]
Member: 148
Joined: 7-Oct-2008

Posts: 1
Gluons: gold 42,150
Spent: gold 25,550

Send a present to this user
View their 0 presents
View their 0 assets

I Install A Plugin On My Site And I Try To Access The Page

Fatal error: Call to a member function plugin_active() on a non-object in (URL To Plugin) on line 24


Can Any One Help ?
Back to top
nlstart

Fri Aug 21 2009, 09:55pm

[ ]
LAN_THEME_12
Member: 28
Joined: 15-Dec-2006

Posts: 33
Gluons: gold 136,989
Spent: gold 10,082

Send a present to this user
View their 1 presents
View their 0 assets

This happens when Gold System is not installed and a code line is programmed like:

if ($pref['plug_installed'] ['some_gold_plugin'] && $gold_obj- >plugin_active(' some_gold_plugin'))

nlstart plugins: YourFirstPlugin | EasyShop | Locator | ShowMyIP | Poker | FlickrFeed | EasyBackup | EasyDBtool | e107_Quiz | News scroller | Slideshow
Back to top
nlstart

Fri Aug 21 2009, 10:05pm

[ ]
LAN_THEME_12
Member: 28
Joined: 15-Dec-2006

Posts: 33
Gluons: gold 136,989
Spent: gold 10,082

Send a present to this user
View their 1 presents
View their 0 assets

You could prevent this from happening to check if the called function is existing in the class. By wrapping the original coding in a check like this:

if(method_exists($gold_o bj, 'plugin_active'))
{
    if ($pref[' plug_installed'] [' some_gold_plugin']  && $gold_obj-  >plugin_active('  some_gold_plugin')) 
    {    
        // ... the original code ...
    }
}



nlstart plugins: YourFirstPlugin | EasyShop | Locator | ShowMyIP | Poker | FlickrFeed | EasyBackup | EasyDBtool | e107_Quiz | News scroller | Slideshow
Back to top
orb

Mon Sep 14 2009, 03:20pm
Revd Baz

[ ]
LAN_THEME_12
Member: 3
Joined: 27-Nov-2003

Posts: 510
Gluons: gold 837,459
Spent: gold 282,292

Send a present to this user
View their 17 presents
View their 3 assets
Big TV 
$gold_obj should always be available to plugins because it is loaded in e_module so it should never happen unless gold system is not installed - in which case you shouldn't have the other gold plugin installed.

[ Edited Tue Sep 15 2009, 09:06am ]

[ image disabled ]
Back to top
nlstart

Mon Sep 14 2009, 08:02pm

[ ]
LAN_THEME_12
Member: 28
Joined: 15-Dec-2006

Posts: 33
Gluons: gold 136,989
Spent: gold 10,082

Send a present to this user
View their 1 presents
View their 0 assets

my Poker plugin works without the Gold system as well.

nlstart plugins: YourFirstPlugin | EasyShop | Locator | ShowMyIP | Poker | FlickrFeed | EasyBackup | EasyDBtool | e107_Quiz | News scroller | Slideshow
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 7 months, 2 weeks, 4 days, 19 hours, 57 mins, 29 secs ago ]
  • diehard gold 23,475
    [ 4 years, 10 months, 3 weeks, 6 days, 8 hours, 0 mins, 12 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 11 months, 1 week, 1 day, 22 hours, 4 mins, 22 secs ago ]
  • gefy gold 300,240
    [ 4 years, 11 months, 2 weeks, 6 days, 23 hours, 13 mins, 6 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 5 years, 1 month, 2 days, 13 hours, 30 mins, 48 secs ago ]
  • swedsnake gold 23,540
    [ 5 years, 1 month, 3 days, 10 hours, 32 mins, 9 secs ago ]
  • stedie gold 9,326
    [ 5 years, 1 month, 4 weeks, 19 hours, 37 mins, 29 secs ago ]
  • orb gold 339,720
    [ 5 years, 2 months, 20 hours, 20 mins, 15 secs ago ]
  • rossv gold 49,150
    [ 5 years, 2 months, 1 week, 1 day, 16 hours, 15 mins, 2 secs ago ]
  • orb gold 52,358
    [ 5 years, 2 months, 2 weeks, 4 days, 17 hours, 35 mins, 52 secs ago ]

Online

Guests: 15 Members: 0

    On this page: 1
    Members: 1222, Newest: rsetser

    Online

    Guests: 15, Members: 0 ...

    most ever online: 377
    (Members: 0, Guests: 377) on 07 Jun : 07:44

    Members: 1222, Newest member: rsetser

    Unanswered Posts

    The following forum posts remain unanswered
    just testing 05 May : 22:21
    Dead Site 05 May : 01:41
    Paypal return a[...] 24 Oct : 17:02
    paypal fail 24 Oct : 16:39
    Auto Userclass 09 Mar : 20:53
    Wishing well Qu[...] 01 Sep : 17:51
    Banner Ads for [...] 30 May : 22:43
    Golf For Calend[...] 30 May : 22:40
    to set up to a [...] 17 Feb : 20:48
    content plugin [...] 11 Oct : 01:32

    View all unanswered posts
    Render time: 0.0859 sec, 0.0192 of that for queries. DB queries: 96. Memory Usage: 1,320kB