View Issue Details

IDProjectCategoryView StatusLast Update
0003088Composrcns_forumpublic2017-02-26 21:18
ReporterPatrick SchmalstigAssigned ToChris Graham 
Severity@80@ 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0003088: 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()
0000006 {main}
  thrown in sources/global2.php on line 1105

This is thrown when attempting to log out.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2017-02-24 22:07

administrator   ~0004802

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

Patrick Schmalstig

2017-02-24 22:37

administrator   ~0004803

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   ~0004805

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

Patrick Schmalstig

2017-02-26 20:29

administrator   ~0004815

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   ~0004817

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 Patrick Schmalstig New Issue
2017-02-24 22:07 Chris Graham Note Added: 0004802
2017-02-24 22:12 Chris Graham Status non-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 Patrick Schmalstig Note Added: 0004803
2017-02-24 22:41 Chris Graham Note Added: 0004805
2017-02-26 20:29 Patrick Schmalstig Note Added: 0004815
2017-02-26 21:18 Chris Graham Note Added: 0004817