Author Topic: Error loading template - looking in installer directory  (Read 19258 times)

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Error loading template - looking in installer directory
« Reply #15 on: July 26, 2010, 01:48:48 PM »
give logs from IIS

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #16 on: July 26, 2010, 03:15:59 PM »
Quote from: dziobak;28955
give 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.

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Error loading template - looking in installer directory
« Reply #17 on: July 26, 2010, 06:13:16 PM »
Quote from: texas12;28310
I 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...

Offline WHairstonLOI

  • Jr. Member
  • **
  • Posts: 14
Error loading template - looking in installer directory
« Reply #18 on: July 26, 2010, 09:25:25 PM »
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 /)
« Last Edit: July 27, 2010, 12:54:19 AM by WHairstonLOI »

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #19 on: July 27, 2010, 02:33:22 AM »
Quote from: WHairstonLOI;28965

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.


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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Error loading template - looking in installer directory
« Reply #20 on: July 27, 2010, 04:44:26 PM »
What version of RoundCube are you using?

Offline WHairstonLOI

  • Jr. Member
  • **
  • Posts: 14
Error loading template - looking in installer directory
« Reply #21 on: July 27, 2010, 06:18:37 PM »
Quote from: WHairstonLOI;28909
I 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.

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #22 on: July 28, 2010, 11:39:10 AM »
Quote from: WHairstonLOI;28986
I'm using the 0.4 beta from the download link on the home page of roundcube.net.


I am also using the beta.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Error loading template - looking in installer directory
« Reply #23 on: August 05, 2010, 12:52:24 PM »
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.

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #24 on: August 05, 2010, 01:06:21 PM »
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
)
« Last Edit: August 05, 2010, 01:12:03 PM by skaero »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Error loading template - looking in installer directory
« Reply #25 on: August 05, 2010, 02:27:30 PM »
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.

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #26 on: August 05, 2010, 02:37:43 PM »
Array
(
   
  • => login
  • [1] =>
        [2] => skins/default
        [3] =>
        [4] => skins/default/templates/login.html
    )

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Error loading template - looking in installer directory
« Reply #27 on: August 05, 2010, 02:48:23 PM »
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.

Offline texas12

  • Newbie
  • *
  • Posts: 9
Error loading template - looking in installer directory
« Reply #28 on: August 05, 2010, 03:09:56 PM »
The login page loads now, but everything looks like crap.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Error loading template - looking in installer directory
« Reply #29 on: August 05, 2010, 03:40:50 PM »
What do you mean? Can you provide a screen shot?