2FMRaines Posted September 8, 2016 Share Posted September 8, 2016 This one has been haunting me so I'm asking for some help. Here we go PHP file runs perfectly when directly accessed. When this said file is loaded into a JQuery dialog it doesn't do anything, although the access URL is exactly the same as when I direct access the file. When I delete the code out and put something simple like 'test' inside the PHP file the dialog shows it perfectly (I have about 30-40 different PHP files that load into JQuery dialogs just fine, so not the issue). No errors are showing either. Another thing to take into consideration, all of this runs perfectly when running on my local server but when on a live server the above happens. Just wondering if anyone else has ran into this and where to start. I've pulled code pieces out piece by piece and can't find if there is a problem somewhere that I am not seeing. Quote Link to comment https://forums.phpfreaks.com/topic/302104-odd-php-jquery-problem-not-so-much-erroring/ Share on other sites More sharing options...
ginerjm Posted September 8, 2016 Share Posted September 8, 2016 Flying blind here, but ... I'd have to say there is something unique to this particular file. Look at it closely. Quote Link to comment https://forums.phpfreaks.com/topic/302104-odd-php-jquery-problem-not-so-much-erroring/#findComment-1537170 Share on other sites More sharing options...
requinix Posted September 8, 2016 Share Posted September 8, 2016 Also check the browser's console to see if there were errors or something. And check the "network" or whatever tab to see the response (if any) sent by the server, and whether it contained what you think it contained. 1 Quote Link to comment https://forums.phpfreaks.com/topic/302104-odd-php-jquery-problem-not-so-much-erroring/#findComment-1537180 Share on other sites More sharing options...
2FMRaines Posted September 10, 2016 Author Share Posted September 10, 2016 (edited) Ok thanks for the advice, I have spent hours upon hours going through the files. Sorry, can't post up code, employer wouldn't be happy to say the least. I figured it out, the server has some kind of strange settings (considering two other servers I have tested it in worked perfectly), it wasn't pass on the timezone settings from PHP into the JQuery Dialog box. So the file was dumping out and for some reason the error wouldn't show up. Plus I don't have access to most of the server, but did find out it was running PHP in safe mode and when I was telling PHP to throw the errors to me it wasn't until I took PHP out of safe mode...never ran into this one before. Edited September 10, 2016 by 2FMRaines Quote Link to comment https://forums.phpfreaks.com/topic/302104-odd-php-jquery-problem-not-so-much-erroring/#findComment-1537272 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.