Referrer_URL or Array problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Referrer_URL or Array problem

Stanley Weber
Hi all

Using Lasso 8.6.3 and Filemaker Server 14.

For several years I have been successfully using [Referrer_URL] to capture the name of a referring webpage. My code is this:

        [var('ReferringPage' = referrer_url->split('/')->last->split('?')->first)]

Recently some users have reported intermittent failures with the following error showing:

        No tag, type or constant was defined under the name null->split with arguments: array : (/)

I cannot reproduce it but 2 users sent a screen shot and said this was the result running Windows 10 and Edge or Chrome.

Any thoughts?

Thanks, Stan

Stanley S. Weber, Pharm.D., FASHP, BCPP
Chief Assessment Officer
Associate Dean for Professional Pharmacy Education
University of Washington
South Campus Center, Suite 244
1601 NE Columbia Road, Box 357631
Seattle, Washington 98195
 


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Referrer_URL or Array problem

Bil Corry-3
Sounds like the referrer was empty and you're seeing null. You can either cast referral_url to a string first, create a ctag to handle null referrers, overload the tag to always return string, or add a null->split method.

- Bil

> On Aug 6, 2015, at 2:56 PM, Stanley Weber <[hidden email]> wrote:
>
> Hi all
>
> Using Lasso 8.6.3 and Filemaker Server 14.
>
> For several years I have been successfully using [Referrer_URL] to capture the name of a referring webpage. My code is this:
>
>    [var('ReferringPage' = referrer_url->split('/')->last->split('?')->first)]
>
> Recently some users have reported intermittent failures with the following error showing:
>
>    No tag, type or constant was defined under the name null->split with arguments: array : (/)
>
> I cannot reproduce it but 2 users sent a screen shot and said this was the result running Windows 10 and Edge or Chrome.
>
> Any thoughts?
>
> Thanks, Stan
>
> Stanley S. Weber, Pharm.D., FASHP, BCPP
> Chief Assessment Officer
> Associate Dean for Professional Pharmacy Education
> University of Washington
> South Campus Center, Suite 244
> 1601 NE Columbia Road, Box 357631
> Seattle, Washington 98195
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>