View Issue Details

IDProjectCategoryView StatusLast Update
3088Composrcns_forumpublic2017-02-26 21:18
ReporterPDStig Assigned ToChris Graham  
PriorityurgentSeverity@80@ 
Status resolvedResolutionfixed 
Summary3088: 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.
TagsNo tags attached.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2017-02-24 22:07

administrator   ~4802

Only would happen if ajax.php is overridden and CORS is active (multi-domain login).

PDStig

2017-02-24 22:37

administrator   ~4803

odd. I don't remember having CORS activated. I'll check and disable it if it is since I don't need it.

Chris Graham

2017-02-24 22:41

administrator   ~4805

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).

PDStig

2017-02-26 20:29

administrator   ~4815

Ah okay that makes sense then. I added a require_code on my end and it fixed the issue.

Chris Graham

2017-02-26 21:18

administrator   ~4817

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.

Issue History

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