Roundcube Community Forum

 

Error loading template - looking in installer directory

Started by texas12, June 25, 2010, 02:31:59 PM

Previous topic - Next topic

texas12

Quote from: dziobak;28955give logs from IIS

I'm not exactly sure what you're asking for. There is no IIS error. The error (whatever the source) is handled within PHP and the error log is written to the errors file in /logs/.

All of the tracing data I have is in the original post to this thread and, I believe, is quite extensive. If there is something else I can provide, please let me know.

dziobak

Quote from: texas12;28310I have Roundcube setup on IIS 7 with PHP 5.2 via FastCGI on Windows Server 2008 R2.

Give us errors from IIS... IIS has it own logs...

WHairstonLOI

#18
Below are IIS7 logs I generated after attempting to login twice (once locally at server, once remotely). Still getting the 501 error.

In this case, the /installer folder is not present on the site.

$rcmail_config['enable_installer'] = false in main.inc.php config file

System: Windows Server 2008, IIS 7, PHP v5.2.11 via FastCGI

Hopefully, this is what you're looking for, although it doesn't show any errors. I think what texas12 said is correct: the screen that shows "501 Error" is generated within the PHP code logic based on program conditions - the "501" itself doesn't appear to generated by IIS.

----------

#Software: Microsoft Internet Information Services 7.0
#Version: 1.0
#Date: 2010-07-27 01:06:33
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2010-07-27 01:06:33 W3SVC17 174.121.41.203 GET / - 80 - 174.121.41.203 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US;+rv:1.9.2.3)+Gecko/20100405+Namoroka/3.6.3 200 0 0 944 471 2028
2010-07-27 01:06:37 W3SVC17 174.121.41.203 GET /favicon.ico - 80 - 174.121.41.203 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US;+rv:1.9.2.3)+Gecko/20100405+Namoroka/3.6.3 404 0 2 5461 533 0
2010-07-27 01:08:18 W3SVC17 174.121.41.203 GET / - 80 - 70.105.143.44 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+Media+Center+PC+3.0;+.NET+CLR+1.0.3705;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0 873 746 436
2010-07-27 01:08:18 W3SVC17 174.121.41.203 GET /skins/default/common.css - 80 - 70.105.143.44 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+Media+Center+PC+3.0;+.NET+CLR+1.0.3705;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0 9662 562 327
2010-07-27 01:08:18 W3SVC17 174.121.41.203 GET /favicon.ico - 80 - 70.105.143.44 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+Media+Center+PC+3.0;+.NET+CLR+1.0.3705;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 0 2 1405 469 93

----------

Contents of /logs/errors file:

[26-Jul-2010 21:06:33 -0400]: PHP Error: Error loading template for login in C:\HostingSpaces\Internal\roundcube.mail.somedomain.arvixevps.com\wwwroot\program\include\rcube_template.php on line 375 (GET /)
[26-Jul-2010 21:08:18 -0400]: PHP Error: Error loading template for login in C:\HostingSpaces\Internal\roundcube.mail.somedomain.arvixevps.com\wwwroot\program\include\rcube_template.php on line 375 (GET /)

texas12

Quote from: WHairstonLOI;28965Hopefully, this is what you're looking for, although it doesn't show any errors. I think what texas12 said is correct: the screen that shows "501 Error" is generated within the PHP code logic based on program conditions - the "501" itself doesn't appear to generated by IIS.

Exactly. The page returns a 200 (HTTP/OK) Header because the error handling is done (rather gracefully) by the code within RoundCube. The closest thing you'll get to an error message is what RC outputs to the /Logs/errors file and the closest thing to a stack trace is the process request trace in the original post.

IIS logs are irrelevant because as far as IIS is concerned everything is OK.

SKaero


WHairstonLOI

Quote from: WHairstonLOI;28909I am experiencing the same problem with the same files on a Windows Server 2008 (not R2). I'm using PHP 5.2.1.1 via FastCGI, IIS7, and MS SQL Server 2008 Express database running Roundcube 0.4beta.

I'm using the 0.4 beta from the download link on the home page of roundcube.net.

texas12

Quote from: WHairstonLOI;28986I'm using the 0.4 beta from the download link on the home page of roundcube.net.

I am also using the beta.

SKaero

Sorry for the late replay, I been busy lately and this got buried. Can you take the attached iniset.txt file and rename it iniset.php and replace the /program/include/iniset.php (make a backup of it first) Then go to RoundCube and post what it says here.

texas12

#24
Array
(
    [0] => INSTALL_PATH
    [1] => D:\clients\webmail/
    [2] => D:\clients\webmail/config
    [3] => ;
    [4] => D:\clients\webmail/;D:\clients\webmail/program;D:\clients\webmail/program/lib;D:\clients\webmail/program/include;.;c:\php-5.3.1\includes
)

SKaero

Ok everything there looks fine, replace the iniset.php with the original iniset.php file and take the attached rcube_template.txt file and rename it rcube_template.php and replace the /program/include/rcube_template.php (make a backup of it first) Then go to RoundCube and post what it says here.

texas12

Array
(
   
  • => login
  • [1] =>
        [2] => skins/default
        [3] =>
        [4] => skins/default/templates/login.html
    )

SKaero

Ok replace /program/include/rcube_template.php with the attached rcube_template.txt file (rename it rcube_template.php) Then go to RoundCube and see if it works.

texas12

The login page loads now, but everything looks like crap.

SKaero

What do you mean? Can you provide a screen shot?