View Issue Details

IDProjectCategoryView StatusLast Update
0004884SOGoWeb Mailpublic2019-11-17 12:09
Reporterinfracritical Assigned Toludovic  
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Platform[Server] LinuxOSUbuntuOS Version16.04 LTS
Product Version4.1.1 
Summary0004884: Fatal error: Uncaught Error: Call to a member function add() on null in /web/inc/header.inc.php
Description

When attempting to go to the regular domain, "https://icmail.us" OR "https://icmail.us/"...this should redirect the user to "https://icmail.us/SOGo/so/"

However, after the recent upgrade from v4.0.8 to v4.1.1, I get this error:

Fatal error: Uncaught Error: Call to a member function add() on null in /web/inc/header.inc.php:30 Stack trace: #0 /web/index.php(22): require_once() 0000001 {main} thrown in /web/inc/header.inc.php on line 30

Interesting to note is that if I enter "https://icmail.us/SOGo/so/"...it works.

Steps To Reproduce

When attempting to go to the regular domain, "https://icmail.us" OR "https://icmail.us/"...this should redirect the user to "https://icmail.us/SOGo/so/"

However, after the recent upgrade from v4.0.8 to v4.1.1, I get this error:

Fatal error: Uncaught Error: Call to a member function add() on null in /web/inc/header.inc.php:30 Stack trace: #0 /web/index.php(22): require_once() 0000001 {main} thrown in /web/inc/header.inc.php on line 30

Interesting to note is that if I enter "https://icmail.us/SOGo/so/"...it works.

Additional Information

I kept the domain as "icmail.us" instead of prefixing it as "www.icmail.us".

TagsNo tags attached.

Activities

infracritical

infracritical

2019-11-17 01:00

reporter   ~0013908

Found workaround...

(1) Save off "index.php" as "orig_index.php" or "temp_index.php".
(2) Create new "index.php" file containing 4 lines of code:

<?php

header("Location: https://icmail.us/SOGo/so/&quot;);
exit();

?>

infracritical

infracritical

2019-11-17 01:01

reporter   ~0013909

PLEASE NOTE THAT THIS ONLY OCCURRED WHEN UPGRADING FROM v4.0.8 TO v4.1.1.

I had NO issues when upgrading from v4.0.7 to v4.0.8.

andre.peters

andre.peters

2019-11-17 08:58

reporter   ~0013910

Maintainer of mailcow here.

This is not related to SOGo at all. SOGo does not even use PHP. :)

That's a custom change in the PHP code of mailcow.

ludovic

ludovic

2019-11-17 12:09

reporter   ~0013911

Not related to SOGo.

Issue History

Date Modified Username Field Change
2019-11-17 00:04 infracritical New Issue
2019-11-17 01:00 infracritical Note Added: 0013908
2019-11-17 01:01 infracritical Note Added: 0013909
2019-11-17 08:58 andre.peters Note Added: 0013910
2019-11-17 12:09 ludovic Note Added: 0013911
2019-11-17 12:09 ludovic Status new => closed
2019-11-17 12:09 ludovic Assigned To => ludovic
2019-11-17 12:09 ludovic Resolution open => no change required