View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
3088 | Composr | cns_forum | public | 2017-02-20 04:01 | 2017-02-26 21:18 |
Reporter | PDStig | Assigned To | Chris Graham | ||
Priority | urgent | Severity | @80@ | ||
Status | resolved | Resolution | fixed | ||
Summary | 3088: Logging out returns 500 error (stack trace provided) | ||||
Description | [20-Feb-2017 04:00:17 UTC] PHP Fatal error: Uncaught Error: Call to undefined function cms_srv() in sources/global2.php:1105 Stack trace: sources/global.php(95): in_safe_mode() sources/global2.php(155): require_code('ajax') sources/global.php(283): init__global2() sources/global.php(720): require_code('global2') index.php(80): require('/var/www/vhosts...') index.php(16): load() 6 {main} thrown in sources/global2.php on line 1105 This is thrown when attempting to log out. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
Only would happen if ajax.php is overridden and CORS is active (multi-domain login). |
|
odd. I don't remember having CORS activated. I'll check and disable it if it is since I don't need it. |
|
If you run across multiple-domains then the browser will automatically use CORS and Composr will automatically respond to it. The fix is to move the cms_srv function from global3.php to global2.php. A workaround is to remove the backdoor_ip line from _config.php (it can't be there at all, not even blank). |
|
Ah okay that makes sense then. I added a require_code on my end and it fixed the issue. |
|
I think you mean moving/copying the require_code('global3') further up in init__global2. That should work, the only reason I didn't is a small performance hit for the requests we've made to not need it. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-20 04:01 | PDStig | New Issue | |
2017-02-24 22:07 | Chris Graham | Note Added: 0004802 | |
2017-02-24 22:12 | Chris Graham | Status | Not Assigned => Resolved |
2017-02-24 22:12 | Chris Graham | Resolution | open => fixed |
2017-02-24 22:12 | Chris Graham | Assigned To | => Chris Graham |
2017-02-24 22:37 | PDStig | Note Added: 0004803 | |
2017-02-24 22:41 | Chris Graham | Note Added: 0004805 | |
2017-02-26 20:29 | PDStig | Note Added: 0004815 | |
2017-02-26 21:18 | Chris Graham | Note Added: 0004817 |