|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Zealot
![]() ![]() Join Date: Jun 2005
Posts: 103
|
Fatal error: Class 'Menu' not found in ...
I've been getting this error for a long time now , and I just can't seem to solve it. When I try to load the page it gives this error,when I refresh however, it works perfectly????
PHP Code:
PHP Code:
).Another remarkable thing: if I comment everything out about this class , exactly the same error comes up for the next class mentioned in the page (the code is about the same; and once again when the page is refreshed everythink works ) Thanks!! Gert Last edited by Gerto; Jun 20, 2006 at 14:59. |
|
|
|
|
|
#2 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Oct 2005
Posts: 574
|
should it be:
$menu= new menu(); |
|
|
|
|
|
#3 |
|
SitePoint Zealot
![]() ![]() Join Date: Jun 2005
Posts: 103
|
Thanks hifigrafix! But that doesn't change anything.
![]() |
|
|
|
|
|
#4 |
|
SitePoint Zealot
![]() ![]() Join Date: May 2006
Location: Phoenix, AZ
Posts: 162
|
yeah...its a little sloppy.. can you use the sytax coloring pls..
use [ PHP ] and [ /PHP ].. the User::is_loggedin(); what is this calling? why didn't you instatiate (sp??) user first? I'm sure it is checking the session right? Remeber with sessions, when you set the value, it won't be available until the next refresh.. So once they login, you can't check if they're logged in until the next time they refresh or go to another page. This may be why it is failing. Check to see what your classes are linked..are you using extensions?? Class Menu EXTENDS user ? |
|
|
|
|
|
#5 | |
|
SitePoint Zealot
![]() ![]() Join Date: Jun 2005
Posts: 103
|
Quote:
Thanks briancastellanos! That was the problem, I now refresh the page immediately so the error doesn't occur, Thanks, you saved the day ;-) Gert |
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 16:01.




).



Hybrid Mode
