PHP Classes

Cannot access self::

Recommend this page to a friend!

      pop3.class.inc  >  All threads  >  Cannot access self::  >  (Un) Subscribe thread alerts  
Subject:Cannot access self::
Summary:Fatal error: Cannot access self:: when no class scope is active
Messages:2
Author:andreas4711
Date:2008-06-13 14:12:51
Update:2008-06-16 11:32:58
 

 


  1. Cannot access self::   Reply   Report abuse  
Picture of andreas4711 andreas4711 - 2008-06-13 14:12:52
Hi,

I have the error:
Fatal error: Cannot access self:: when no class scope is active in /srv/www/htdocs/inet2/mail_to_db/pop3_test.php5.php on line 36

what can I do??

thanx andreas

  2. Re: Cannot access self::   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2008-06-16 11:32:58 - In reply to message 1 from andreas4711
Hi Andreas,

I have tried to reproduce this error but I'm not able to do that.

Which PHP Version is installed on your Server ???
Have you modified the pop3_test.php5 file ???

Can you please post the snip of code where this error message appear ???

[code]
Fatal error: Cannot access self:: when no class scope is active in /srv/www/htdocs/inet2/mail_to_db/pop3_test.php5.php on line 36
[/code]

Seems to be that you try to use a constants out of the POP3 Class. So then you have to type e.g.: POP3::ERR_PARAMETER NOT self::ERR_PARAMETER. This only works in the class.

regards
j0inty

 
For more information send a message to info at phpclasses dot org.