Website Crash

Post

Posted
Rating:
#2305 (In Topic #427)
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Not sure what's going on. But overnight my website has crashed, for lack of a better word.
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.
I am scratching my head on this one.
Online now: No Back to the top

Post

Posted
Rating:
#2306
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Weird. Site is kinda back up.
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

Online now: No Back to the top

Post

Posted
Rating:
#2315
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Sorry I couldn't respond earlier, having a rough day here too.
Please try this:

Attachment

sources/ajax.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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2316
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Not a problem at all Chris.
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.
Online now: No Back to the top

Post

Posted
Rating:
#2317
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I just spent a chunk of time looking at the second problem, hoping to improve PHP a bit.

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2318
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Thankyou Chris,

Sorry for opening that can of worms……
Online now: No Back to the top

Post

Posted
Rating:
#2319
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok, I finished my big review, changes in the next patch release:
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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2320
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Chris. Not sure if this is related. Not seeing anything in the error logs.
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.
Online now: No Back to the top

Post

Posted
Rating:
#2321
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
That's difficult for me to comment on. Someone would need to open the browser's developer tools, go to the network tab, then see what the raw request data coming back from the frame is (it's a frame, not AJAX actually).


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2322
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Or, there could be something in the JS console.

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2323
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Checked my settings, all seems correct.

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

 
Online now: No Back to the top

Post

Posted
Rating:
#2324
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
If you want me to take a look, email access to chris@ocproducts.com.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2325
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Just noticed:

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
Online now: No Back to the top

Post

Posted
Rating:
#2326
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok. This is tricky because the fix here goes across tonnes of files. I've attached the affected files, as fixed by my patching.

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.

Attachment

SCRIPT_FILENAME_FIX.tar



Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2327
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Seems to have fixed the issue in the error_log.
However still having the javascript issue. Not saving blocks in the

Inspected via javascript console in firebug. Nothing in warnings, errors etc.
Online now: No Back to the top

Post

Posted
Rating:
#2328
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Received the following when opening a block for edit. Via firebug
Online now: No Back to the top

Post

Posted
Rating:
#2329
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I wonder if emptying the template cache will fix that.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2330
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Tried. No luck
Online now: No Back to the top

Post

Posted
Rating:
#2333
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Maybe you could record a quick Jing screencast to show me? Working for me on your site, but you're probably doing it a little differently.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#2334
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Have not used jing before, what a great program

This video/animation was made in Adobe Flash Player, which is no longer supported or available for download.

2017-04-13_1203.swf

Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,053 topics, 7,195 posts, 10,854 members
  • Our newest member is sdtgyet634
Birthdays:
Back to Top