Edward Posted February 20, 2014 Share Posted February 20, 2014 i just put up my yii website on a live server, and i found the results to be quite worrying. The form pages sometimes only half load on mozilla or chrome and sometimes don't load at all. The yii verfication image like google's captcha only half loads on the desktop but fully loads on a mobile device, sometimes i may just show the default browser image icon. I had chrome crash with the yii site on the user registration page, strange results, i didn't experience anything like this on my localhost. But strangely ajax functions are working 100%. On my user/create page the browser show that it failed to GET the page after a page redirect? Looked at this problem for a few hours now, i have no idea what's causing that. Link to comment Share on other sites More sharing options...
saniko Posted February 21, 2014 Share Posted February 21, 2014 Hi! You'll need to provide a lot more information before you can get any real help. For example: Server Details - What OS is it running? - What PHP version does it have? - What MySQL version is it running? Localhost Details - same questions Browser (both on your computer and mobile device) - What type and version? My guess is that your localhost and deployment server have differences. This wouldn't be a Yii issue, it would be a configuration issue for your server. Link to comment Share on other sites More sharing options...
Edward Posted February 21, 2014 Author Share Posted February 21, 2014 The thing is, the website works on mobile devices but doesn't work on desktop devices, that's the strange thing about it. I believe this is some kind of hosting problem as i have had hosting before from another company and never had weird stuff like this happening. Ive just done some research into the database and connection but it appears i am doing that correct. Let me call the host and get some help. Thanks for your advice. By the way i didn't ever think it was a Yii issue but it worries me as i have more than 100 scripts to go through and test, so i could be up for more than a handful of errors to fix online. And how long is that going to take? Link to comment Share on other sites More sharing options...
Edward Posted February 21, 2014 Author Share Posted February 21, 2014 I believe i know the solution, i always find when i listen to Larry Ullman and take his actions the results are always positive. I would love to tell you what im going to do but unfornately i can't, it will just have to be left as a mystery........ Link to comment Share on other sites More sharing options...
Larry Posted February 21, 2014 Share Posted February 21, 2014 Hard to say given the information provided. I'd start by checking the PHP version in use and make sure that display errors is enabled. Link to comment Share on other sites More sharing options...
Edward Posted March 4, 2014 Author Share Posted March 4, 2014 Thank you very much Larry Ullman "I love you!" Everything is now working as it should, thanks for your amazing help and knowledge. I hope one day i can show you my achievement. Link to comment Share on other sites More sharing options...
Larry Posted March 5, 2014 Share Posted March 5, 2014 Glad that was helpful! Will look forward to seeing the results some day. Can you share what the issue was? Link to comment Share on other sites More sharing options...
Edward Posted March 6, 2014 Author Share Posted March 6, 2014 I don't know what it was because i changed servers and it never happened on the next one. It seems the PHP script generator was timing out half way down an page for some reason. No idea but the case will have to be closed. Link to comment Share on other sites More sharing options...
Antonio Conte Posted March 6, 2014 Share Posted March 6, 2014 I've moved a lot of sites over the years, and most problems seems to come from php.ini settings. It's a huge pain in the butt until you figure it out. My last longstanding problem was due to bad Apache config from hosting provider though, so you never know. I usually just throw dirt at the wall and see what sticks. No method to it for me. Glad you got it sorted. Link to comment Share on other sites More sharing options...
Edward Posted March 7, 2014 Author Share Posted March 7, 2014 Yeah there were a few things not installed for my apache like the PDO drivers so they were missing from the php.ini file configuration. Well i guess at the end of the day once its all done and working its all fun. That's why i love coding more than servers because we have total control over what we are doing and don't have to wait to get things fixed. Link to comment Share on other sites More sharing options...
Larry Posted March 7, 2014 Share Posted March 7, 2014 I'm not the biggest fan of working with servers myself, but I chalk that up to just a lack of knowledge (and time to acquire the knowledge). Link to comment Share on other sites More sharing options...
Recommended Posts