|
From: James E. F. <jf...@ac...> - 2002-02-25 18:46:32
|
On Mon, 25 Feb 2002, Dan Wick wrote:
> I have installed Apache now instead of using PWS. I also commented out the
> GetText functions, which were giving me Internal Server errors within
> Apache. Now I am getting the following error:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/phpESP.ini on line 94
Hehe ... you commented out too much. :-)
Uncomment the "else" clause of the section you commented.
Where it says (something like):
function _($s) { return($s); }
...
function bindto...() {...}
-James
>
> This is Line 94:
> 'thank_head' => _('Thank You For Completing This Survey.'),
> 'thank_body' => _('Please do not use the back button on your browser to go
> back. Please click on the link below to return you to where
> you launched this survey.'),
>
> I tried commenting that out as well, but it then it finds another undefined
> function:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/include//lib/espauth.inc on line 155
>
> It keeps giving me "undefined function" errors.
>
> Is there anything I can do?
>
>
> On Sun, 24 Feb 2002, Dan Wick wrote:
>
> > I am getting a blank page when I load the 'manage.php'
> > file. I think the problem is in my phpesp.ini file.
>
> First, I have absolutly no expirience with PWS (Personal
> Web Server?)... However, it is in the same family as IIS,
> and there are known problems with PHP and IIS. I don't want
> to spend too much time trying to figure this out, since it
> is probably a PHP issue, not a phpESP issue. Having said
> that ... Could you try using Apache for Win32 and see if
> you have better luck?
>
> To figure out what PWS is doing ... first find it's log
> files (hopefully there are some), and see if there is
> anything reported there. Do other PHP scripts work? Like:
> <?php echo("It works.") ?>
>
> Typically, in my expirience, when a page is completely
> blank (even in "view source") it is because the server
> crashed trying to serve the page.
>
> > I am not sure if I am specifying the paths for the
> > location of the database and root directories correctly
> > in the phpesp.ini. Here's how I'm currently doing it:
> >
> > $locale_path = 'c:/Inetpub/scripts/phpESP/';
> > 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/',
> > 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php',
> > 'handler_prefix' => 'c:/Inetpub/scripts/phpESP/public/handler-prefix.php',
>
> Looks fine to me.
>
> > Also, there is a call for a CSS in the .ini file. Do
> > you have to have a CSS file set up?
>
> Nope ... It's probably better to just use CSS in the
> template (where you embed the survey).
>
> > I am running PWS on Windows 98 (yeah yeah, I know I
> > should install Unix. I'm going to but I am stuck
> > developing on this laptop for the time being.) I have
> > PHP 4 installed with the MySQL extension.
> >
> > I am really stuck and do not know what to try next
> > because the page is just blank and there's nothing in
> > the source. I've read the posts about blank pages
> > posted in January and they didn't seem to solve my
> > problem.
>
> One other thought... The script tries to
> dynamically load the "gettext" extension if it is not
> loaded. If the server is crashing, it's probably here,
> comment out the related lines in phpESP.ini.
>
> -James
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
|