solved Host suggesting problem with .htaccess

iamtimbo
@iamtimbo
7 years ago
301 posts
Hello, my site went down on Sunday whilst I was updating the item_detail.tpl for the YouTube module.

After saving the template and clearing the cache, I got a stripped down version of the site, some css, but not all of it. Did a full optimise modules to check nothing was up, and saw lots of updating to InnoDB messages going past. After that, the site was no better.

I changed skins to see if it was a skin issue, and on one version of the skin, the site did load (missing a couple of tweaks, obvs, but pretty much normal). Managed to get the site into maintenances mode.

Made a cup of tea, and when I got back to it, site wouldn't load at all. Could access my cpanel, though through my hosting provider, and all services seemed normal. Still couldn't load the site, but started getting a 502 error.

Griefed my hosting provider to no avail. Renamed the repair php file via ftp, and ran it to see if that would help. No change.

Finally got a response from Arvixe today, who have said:

I have checked and reproduced the issue from my end. Further, I could see that the issue seems to be with your ".htaccess" file.
Due some misconfiguration in .htaccess file, the requests were unable to serve appropriately.

Please verify the same from your end. If you have any other concern feel free to get back to us, we are happy to assist you. (Ends)

Now, I have looked at the htaccess file, and although I don't know what I'm looking for, it seems pretty normal. Michael put a redirect in there a couple of months ago to make sure the site was always using the www version, but that's been fine ever since. I took it out just in case, but no change.

I do have a parked domain - i.e. ourtownstory.co.uk is parked on top of myactualdomain.com , if that is relevant.

If anyone has any thoughts I would be very grateful. I'm supposed to be prsenting the site to some new users in person on Thursday, and at the moment I feel like a bit of a tool! Also, arvixe support is so slow, that I probably only have one more shot at getting a response before then, so anything I need to feed back to them needs to be super precise.

Ironically, the purpose of my meeting on Thursday is to attract some funding so that I can move to Jamroom servers!

updated by @iamtimbo: 01/17/18 07:26:28PM
iamtimbo
@iamtimbo
7 years ago
301 posts
Or, I suppose, can I get up and moved over to jamroom hosting by 1900 BST on Thursday...?
michael
@michael
7 years ago
7,692 posts
If the issue started with a change to the item_detail.tpl of youtube, that would be my best guess as to where to look to start with.

I'd be REAL surprised to hear that altering the item_detail.tpl file caused the .htaccess file to start having issues. (sarcasm, thats not the issue!!!!)

https://www.lifewire.com/502-bad-gateway-error-explained-2622939

What were you trying to add? some javascript? then the issue is probably it needs {literals}

Docs: "{literal}{/literal}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/3011/literal-literal

I'm about to go to bed now, so doing a server setup could be a push. The site is easiest to move to jamroom hosting when it is up. There is a hosting transfer module that lets it import right in, but if the site isn't up, that method isn't an option.

Docs: "Hosting Transfer"
https://www.jamroom.net/the-jamroom-network/documentation/modules/2960/hosting-transfer
michael
@michael
7 years ago
7,692 posts
Try looking via FTP at the error log for jamroom:
/data/logs/error_log

and uploading a .htaccess file from a newly downloaded jamroom 6 download from here:
https://www.jamroom.net/products
iamtimbo
@iamtimbo
7 years ago
301 posts
Thanks, Michael. Nothing so fancy as anything like javascript! Just some border and background stuff. I don't really want to transfer yet, I'm just weighing up my 'not looking like a tool' options! Will investigate the thoughts above...
iamtimbo
@iamtimbo
7 years ago
301 posts
This is all from my error logs:

[15-Oct-2017 20:15:34 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8650787 bytes) in /home/iamtimbo/public_html/modules/jrCore-release-6.1.2/lib/misc.php on line 245

Could be my old (from a few weeks ago) memory issue cropping up again...
iamtimbo
@iamtimbo
7 years ago
301 posts
Update: Checked the tpl file - no javascript (!) . Uploaded a new .htaccess file -no change.

Followed the instructions here to increase the memory allowance ( https://blog.arvixe.com/setting-custom-php-ini-files-for-your-website/). Created a check file at ourtownstory.co.uk/check.php and the new php.ini file is being used.

Currently running another offline integrity check to see where that gets me. There's something in the back of my mind that is niggling that's related to the parked domain thing. I am now fairly sure the server is working right, but I don't understand the 502 error. And until the Integrity Check on Sunday night, it seemed like a CSS issue - it seemed to be then that it keeled over terminally.

Update again: Offline repair ultimately generated 504 error - took too long to respond :(
updated by @iamtimbo: 10/17/17 03:15:36PM
michael
@michael
7 years ago
7,692 posts
im seeing a 502 too.

Try adding a file something.html with some contents at yoursite.com/something.html and see if it comes up.

Should tell you if the domain is online or not.
Temporary_Error_502.jpg

iamtimbo
@iamtimbo
7 years ago
301 posts
Domain appears to be online.
paul
@paul
7 years ago
4,325 posts
ourtownstory.co.uk isn't resolving at all for me atm.


--
Paul Asher - JR Developer and System Import Specialist
iamtimbo
@iamtimbo
7 years ago
301 posts
Try ourtownstory.co.uk/check.php
paul
@paul
7 years ago
4,325 posts
That works, so yes, domain is resolving.
Anything in your server logs or Jamroom logs pertaining to this issue?


--
Paul Asher - JR Developer and System Import Specialist
iamtimbo
@iamtimbo
7 years ago
301 posts
Only the memory issue posted above from the time it went pear shaped on Sunday evening...
paul
@paul
7 years ago
4,325 posts
Send us a ticket with your Arvixe cPanel/FTP login and your JR site admin login and we'll try and work out what's up.


--
Paul Asher - JR Developer and System Import Specialist
iamtimbo
@iamtimbo
7 years ago
301 posts
Hi, Paul - I've just sent that through....
michael
@michael
7 years ago
7,692 posts
we've got the details, need to get dinner then will start poking around.
brian
@brian
7 years ago
10,136 posts
Just following up here - we've got the info we need and we'll get you moved over to Jamroom Hosted :)

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
7 years ago
3,602 posts
Jamroom Super Support team strikes again.
Timbo, you will be so much happier on JR hosting. I speak from having been a very frustrated customer on Arvixe myself, before I moved to JR hosting. Smooth sailing and A++++ support ever since! :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
iamtimbo
@iamtimbo
7 years ago
301 posts
Can I just say publicly what absolute heroes Michael, Brian and Paul have been today. Managed to walk into the website presentation with a last-minute transfer of the site from useless Arvixe over to Jamroom hosted. They have been astonishingly helpful (as always), and pulled off nothing short of a miracle.

Well done, all - you did yourself and me proud! :)
updated by @iamtimbo: 10/19/17 01:18:03PM