foutmelding in mijn class
gerrit van weele
18/06/2015 16:48:05hallo,
ik krijg deze melding :
PHP Strict Standards: Non-static method users::um_settings() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 15
PHP Strict Standards: Non-static method cms::db_connect() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 103
PHP Strict Standards: Non-static method users::um_settings() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 15
PHP Strict Standards: Non-static method cms::db_connect() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 103
dat zijn deze regels in mijn class :
line 15: users :: um_settings ($table = "um_settings", $prefix = "");
line 103: $db = cms :: db_connect();
kan iemand mij hiermee helpen
gerrit
ik krijg deze melding :
PHP Strict Standards: Non-static method users::um_settings() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 15
PHP Strict Standards: Non-static method cms::db_connect() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 103
PHP Strict Standards: Non-static method users::um_settings() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 15
PHP Strict Standards: Non-static method cms::db_connect() should not be called statically, assuming $this from incompatible context in /var/www/vhosts/14/122093/webspace/httpdocs/trefpoint.com/cms/classes/core/um_class.php on line 103
dat zijn deze regels in mijn class :
line 15: users :: um_settings ($table = "um_settings", $prefix = "");
line 103: $db = cms :: db_connect();
kan iemand mij hiermee helpen
gerrit
PHP hulp
22/12/2024 15:39:25Randy vsf
18/06/2015 17:49:46gerrit van weele
18/06/2015 19:13:13Thomas van den Heuvel
18/06/2015 19:26:24De methoden (functions) hebben het keyword static niet in de declaratie zitten, maar je gebruikt deze wel alsof dit static methoden zijn. Voeg dus dit keyword toe bij deze methoden.
Vergelijk:
Vergelijk:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23