Loading ...
Sorry, an error occurred while loading the content.

2182Re: Can't call method "item" --> ASP.pm line 1521

Expand Messages
  • SPiRiT_oF_HeLLSoNG serveur
    Jan 18, 2007
    • 0 Attachment
      Hello,

      I don't have any 'PATH_INFO' nor 'PATH_TRANSLATED' in my httpd.conf file,
      I've added PerlOptions +SetupEnv but the error is the same,

      >What about other Server Variables like
      >
      >eg. QUERY_STRING, REQUEST_URI?
      >
      >Do they exist / work?

      nope, i don't have any of them.


      Romain.

      >From: Helmut Zeilinger <hz@...>
      >To: SPiRiT_oF_HeLLSoNG serveur <hellsong@...>, Apache-ASP
      ><asp@...>
      >Subject: Re: Can't call method "item" --> ASP.pm line 1521
      >Date: Thu, 18 Jan 2007 09:04:36 +0100
      >
      >Hi Spirit,
      >
      >it is most likely because there exist no Server Variables
      >
      >'PATH_INFO' and
      >'PATH_TRANSLATED'
      >
      >at least on my linux system.
      >
      >But may be on windows they should exist,
      >which i can't test now for some reason..?
      >
      >Did you try to add
      >
      >PerlOptions +SetupEnv
      >
      >in your http / vhost-conf?
      >
      >What about other Server Variables like
      >
      >eg. QUERY_STRING, REQUEST_URI?
      >
      >Do they exist / work?
      >
      >
      >Helmut
      >
      >
      >
      >
      >SPiRiT_oF_HeLLSoNG serveur schrieb:
      >>Hi and thaanks for your answer.
      >>Here my httpd.conf:
      >>
      >>PerlRequire C:/startup.pl
      >>PerlModule Apache::ASP
      >><Files ~ (\.asp)>
      >>SetHandler perl-script
      >>PerlHandler Apache::ASP
      >>PerlSetVar Global .
      >>PerlSetVar StateDir C:/tmp/asp
      >></Files>
      >>-----------------------
      >>inside C:/startup.pl:
      >>
      >>#!/usr/bin/perl
      >>
      >>use Apache2::compat;
      >>1;
      >>-----------------------
      >>the hello.asp file is some sample from the sample library installed with
      >>apache-asp
      >>
      >><%@ LANGUAGE = PerlScript %>
      >><html>
      >><HEAD>
      >><!--
      >>Copyright (c) 1996, Microsoft Corporation. All rights reserved.
      >>Developed by ActiveState Internet Corp., http://www.ActiveState.com
      >>-->
      >><TITLE> Hello World </TITLE>
      >></HEAD>
      >>
      >><BODY> <BODY BGCOLOR=#FFFFFF>
      >><!--
      >>ActiveState PerlScript sample
      >>PerlScript: The coolest way to program custom web solutions.
      >>-->
      >>
      >><!-- Masthead -->
      >><TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
      >><TR VALIGN=TOP ><TD WIDTH=400>
      >><A NAME="TOP"><IMG SRC="PSBWlogo.gif" WIDTH=400 HEIGHT=48 ALT="ActiveState
      >>PerlScript" BORDER=0></A><P>
      >></TD></TR></TABLE>
      >>
      >><%
      >>for ($i = 3; $i < 8; $i++) {
      >>%>
      >><font size=<%= $i %>>
      >>"Hello World!"
      >></font>
      >><BR>
      >><%
      >>}
      >>%>
      >>
      >><!-- +++++++++++++++++++++++++++++++++++++
      >>here is the standard showsource link -
      >>Note that PerlScript must be the default language --> <hr>
      >><%
      >>$url = $Request->ServerVariables('PATH_INFO')->item;
      >>$_ = $Request->ServerVariables('PATH_TRANSLATED')->item;
      >>s/[\/\\](\w*\.asp\Z)//m;
      >>$params = 'filename='."$1".'&URL='."$url";
      >>$params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
      >>%>
      >><A HREF="index.htm"> Return </A>
      >><A HREF="showsource.asp?<%=$params%>">
      >><h4><i>view the source</i></h4></A>
      >>
      >></BODY>
      >></HTML>
      >>
      >>-----------------------
      >>
      >>>From: Helmut Zeilinger <hz@...>
      >>>To: SPiRiT_oF_HeLLSoNG serveur <hellsong@...>
      >>>Subject: Re: Can't call method "item" --> ASP.pm line 1521
      >>>Date: Mon, 15 Jan 2007 16:41:44 +0100
      >>>
      >>>Hi Spirit,
      >>>
      >>>could you supply your httpd config (the relevant section only!)
      >>>and the content of your hello.asp?
      >>>
      >>>Helmut
      >>>
      >>>SPiRiT_oF_HeLLSoNG serveur schrieb:
      >>>>Hello ASP community,
      >>>>
      >>>>Here my problem:
      >>>>I run a little server with Apache/2.0.53 (Win32) mod_perl/2.0.3
      >>>>Perl/v5.8.8
      >>>>and i have recently installed Apache::ASP but, none of the samples work.
      >>>>They just give me an error 500 and my log show this error:
      >>>>[Thu Jan 11 17:57:15 2007] [error] [asp] [4996] [error] Can't call
      >>>>method
      >>>>"item" on an undefined value at C:/webapache/asp/hello.asp line 38. <-->
      >>>>,
      >>>>C:/usr/site/lib/Apache/ASP.pm line 1521
      >>>>
      >>>>Any idea?
      >>>>
      >>>>_________________________________________________________________
      >>>>Windows Live Messenger sur i-mode¬ô : dialoguez avec vos amis depuis
      >>>>votre mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
      >>>>
      >>>>
      >>>>---------------------------------------------------------------------
      >>>>To unsubscribe, e-mail: asp-unsubscribe@...
      >>>>For additional commands, e-mail: asp-help@...
      >>>>
      >>>
      >>>
      >>
      >>_________________________________________________________________
      >>Ten : Messenger en illimité sur votre mobile !
      >>http://mobile.live.fr/messenger/ten/
      >>
      >
      >
      >--
      >HZ.labs
      >Dr. Helmut Zeilinger
      >Wiesengrund 2
      >D-86 684 Holzheim
      >Tel. 08276 58767
      >Fax. 08276 58787
      >Mobil 0160 91 55 61 68 Internet http://www.hzlabs.de
      >Mail hz@...
      >
      >
      >---------------------------------------------------------------------
      >To unsubscribe, e-mail: asp-unsubscribe@...
      >For additional commands, e-mail: asp-help@...
      >

      _________________________________________________________________
      Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/


      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • Show all 5 messages in this topic