Website Crash
Posted
#2329
(In Topic #473)
Themes (all, including admin) are not showing up correctly. Started with not being able to login with chrome or IE, but can login with firefox, then after a couple of hours the themes went all haywire.
Here is what i did to try and fix the error:
- Clear cache etc from webtools in admin, then even that stopped working.
- Switched between my theme and stock theme. Same display issues.
- Rebuilt permissions using fixperms.sh in ssh.
- Ran decache.sh via ssh.
- Changed from php 7.1 to 5.6
- Turned off cloudflare.
- Disabled opcache while in 7.1.
Posted
But still unable to login with chrome or IE. Can with firefox.
Have the following in the error log:
Uncaught Error: Call to undefined function escape_header() in /sources/ajax.php:33
and in the error_log file:
[12-Apr-2017 13:50:01 Australia/Sydney] PHP Notice: Undefined index: SCRIPT_FILENAME in /home/xxxxxxx/public_html/sources/global2.php on line 35
Last edit: by Paul Flavel
Posted
Please try this:
Code (php)
My guess is some kind of unusual reverse proxy has been set up on your hosting. It's triggered a bug in our CORS code which is a very obscure thing.
I'd better write a unit test for that.
As for the other issue, it is also very weird. It may be a blip. But I'm investigating.
Posted
The new ajax file fixed the issue. Wasn't sure if it was something with the shared server or composr so didn't post this in the tickets area.
Hope your day is getting better Chris…… Thankyou again.
Posted
PHP :: Doc Bug #74424 :: $_SERVER documentation page needs improvement.
Now let's see if I can incorporate my findings into our code to get more accurate patch-up of the data PHP provides us.
Posted
Sorry for opening that can of worms……
Posted
https://github.com/ocproducts/composr/commit/a940cc7d1b6677ea56ea28c58ce1fb80a667a0ba
PHP can be annoying sometimes, but I'm glad I did this. I'm much more confident about our code staying correct now that I fixed PHP's documentation and have that to refer to in the future.
Posted
When I go to edit a block in the side panel and click save, it doesn't save, it just sits there on the ajax popup with the loading image.
Posted
Posted
Actually I'm wondering if there is some kind of cross-domain situation going on here and causing all of this, is it possible you're accessing the site from something different to what the base URL says? Composr normally redirects but maybe it's some kind of special case.
Cross-domain scenarios break JavaScript code.
Posted
error_log
[13-Apr-2017 10:50:02 Australia/Sydney] PHP Notice: Undefined index: SCRIPT_FILENAME in /home/xxxxx/public_html/sources/global2.php on line 35
Posted
Posted
error_log
[13-Apr-2017 10:50:02 Australia/Sydney] PHP Notice: Undefined index: SCRIPT_FILENAME in /home/xxxxx/public_html/sources/global2.php on line 35
Posted
Ideally don't upload files that aren't already on your server (some of these may be in addons you don't have installed, although if you do it shouldn't cause harm.
SCRIPT_FILENAME_FIX.tar
Posted
However still having the javascript issue. Not saving blocks in the
Inspected via javascript console in firebug. Nothing in warnings, errors etc.
Posted
SyntaxError: illegal character
SyntaxError: illegal character
SyntaxError: illegal character
SyntaxError: illegal character
SyntaxError: illegal character
SyntaxError: illegal character
ReferenceError: set_up_comcode_autocomplete is not defined
TypeError: window.fauxmodal_alert is not a function
detailed error: ReferenceError: set_up_comcode_autocomplete is not defined
Posted
Posted
Posted
Posted
7 guests and 0 members have recently viewed this.
