« Return to Thread: How to resolve error : Left side ($menuCurrentPage) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible.

RE: How to resolve error : Left side ($menuCurrentPage) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible.

by rupali-4 :: Rate this Message:

Reply to Author | View in Thread

Thanks Nathan,
But how is this possible that the error goes on page refresh? And its not
just for variable $menuCurrentPage, randomly the message generates for any
variable and resolves on page refresh..??



-----Original Message-----
From: Nathan Bubna [mailto:nbubna@...]
Sent: Monday, April 27, 2009 7:17 PM
To: Velocity Users List
Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '=='
operation has null value. If a reference, it may not be in the context.
Operation not possible.

Yes, it is a Velocity message.  it means that in the template being
processed at that time, there is no value for th $menuCurrentPage
variable when it is being used in an #if( $menuCurrentPage ==
'something' ) comparison (or an #elseif).

On Sun, Apr 26, 2009 at 11:33 PM, RUPALI <r.gupta1@...>
wrote:

> Hi,
>
>
>
> The problem I am facing is that occasionally Resourcenotfound/unable to
> parse file  error comes on the velocity pages which go on page refresh.
>
>
>
>
>
> The following error is shown in the server logs before the logging of
> resourcenotfound exception:
>
> Left side ($menuCurrentPage) of '==' operation has null value. If a
> reference, it may not be in the context. Operation not possible.
>
>
>
> Is something related to the velocity engine here?
>
> The problem is occurring right now only on staging site of my website, and
> thankfully is not on Live. But it is happening a lot of times on staging
and
> is becoming troublesome
>
>
>
> Thanks,
>
> Rupali
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: How to resolve error : Left side ($menuCurrentPage) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible.