« Previous Next »

Answered Thread: Filename cannot be empty in Unknown on line 0

Last post 12-14-2009 1:21 PM by cstobbe. 6 replies.

 

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 09-25-2009, 3:14 PM

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 32

    Filename cannot be empty in Unknown on line 0

    We just upgraded PHP to 5.3.0 using FastCGI (from 5.2.10 using CGI) and we are starting to see these errors in the error log:

    [25-Sep-2009 13:08:31] PHP Warning:  Unknown: Filename cannot be empty in Unknown on line 0
    [25-Sep-2009 13:08:31] PHP Fatal error:  Unknown: Failed opening required '' (include_path='D:\website\htdocs;C:\php_nts\PEAR') in Unknown on line 0

    I don't know where to look for where these errors are coming from. I don't know whether this is because of the new version or FastCGI.

    Running IIS7 on Windows Server 2008.

    Any help is appreciated.

  • 09-25-2009, 4:26 PM In reply to

    Re: Filename cannot be empty in Unknown on line 0

    These errors are coming from PHP. This means there is some problem in your code. Can you do one thing? Switch back the PHP (and just PHP) version to 5.2.11 and see if you are getting the same error.

    Thanks,

    Don.

  • 09-26-2009, 4:11 AM In reply to

    • pierrejoye
    • Top 100 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 74

    Answered Re: Filename cannot be empty in Unknown on line 0

    Please verify that all php.ini settings are still valid for the new setup. If the problem persists I would suggest to try a 5.3.1 snapshot, a possible in the fcgi could have caused this error (which is valid in many situations.

     Snapshots can be fetched here:

    http://windows.php.net/snapshots/

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 09-28-2009, 4:45 PM In reply to

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 32

    Re: Filename cannot be empty in Unknown on line 0

     Pierre,

    Thanks for suggesting an issue with FastCGI. I switched from 5.3.0 NTS FastCGI to 5.3.0 TS CGI and the errors have gone away.

     Did you mean to say "a possible bug in the fcgi could have caused this error"? Are you suggesting that 5.3.0 might contain a bug that could be fixed in 5.3.1?

     Cam

  • 09-28-2009, 5:12 PM In reply to

    • pierrejoye
    • Top 100 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 74

    Re: Filename cannot be empty in Unknown on line 0

    Please try a svn snapshot of 5.3.1 NTS. Thread safety is not necessary with FastCGI and it is actually more stable.

     You can fetch a snapshot here on http://windows.php.net

     

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 12-14-2009, 12:26 PM In reply to

    Re: Filename cannot be empty in Unknown on line 0

    Hi there,

    We found a possible workaround/solution to this 'bug' .

    In IIS 7 under the website select the Handler Mappings and for 'PHP via FastCGI' click Edit.

    Press 'Request restriction' button and on the first tab 'Mapping' select Invoke handler only if request is mapped to File.

    Hope this helps!

    Cheers!

  • 12-14-2009, 1:21 PM In reply to

    • cstobbe
    • Top 500 Contributor
    • Joined on 11-21-2008, 2:20 PM
    • Edmonton, AB
    • Posts 32

    Re: Filename cannot be empty in Unknown on line 0

    mariusf79:

    We found a possible workaround/solution to this 'bug' .

    ...Invoke handler only if request is mapped to File...

     

    Thank you for the suggestion. If we attempt to use FastCGI again, we will try your suggestion.

Page 1 of 1 (7 items)