« first day (720 days earlier)      last day (4222 days later) » 

6:00 AM
i can help more but you really just need to view the actual response text of the 500
 
i mgiht be around even if i fix it
 
and everything should become clearer
night
 
it's been real, and sometimes fun :)
it's a database error
something is going on with the inserts
maybe it's content encoding
maybe it's the SQL
but CI handles the SQL
 
@ChrisClower You can view the response using developer tools, they are built in to Chromium and you can use Firebug with Firefox.
 
so i trust that it handles the SQL better than i could and it's not an error on their end
 
user50049
6:02 AM
@Lusitanian No. I just come across many when reading answers to questions :P
 
so you think it's my js?
 
morning
 
user50049
@ChrisClower What's the actual error text printed to the console from xhr.responseText ?
 
morning!
sec
 
@TimPost so I will move the second answer into the other now
 
6:03 AM
morning Gordon
 
user50049
@Gordon Ok. Let me know if it autowikis
 
user50049
Fantastic. I just broke one of 'those' methods that took weeks to tape back together.
 
It reports: "HTTP 500 Internal Server Error"
it's not specific about what happened
 
user50049
Ok, then it is coming from apache if that's all you see
 
@ChrisClower That's all?
 
6:05 AM
yeah
 
user50049
check your htaccess
 
5 hours ago, by Shaquin Trifonoff
@ChrisClower Have you checked .htaccess files?
 
I eliminated htaccess from the causes by commenting out all the rules before
yeah, like Shaquin says, we tried that
 
user50049
Really hard to guess without looking then. It's not being generated by CI. CI isn't bootstrapping at all.
 
there is an anomaly with the htaccess though....
 
6:07 AM
@ChrisClower error_reporting(-1);
 
Well, on localhost, error reporting is at the highest level
no errors
on the server where it doesn't work, i have no control (shared host)
 
3 mins ago, by Paul
@ChrisClower error_reporting(-1);
 
oh php... well, i don't see how that can report anything
when localhost doesn't
i can try, but
if the server errors with a 500, php probably won't have time to do anything
it feels like an sql error
because it's always on any insert
not reading, just insert or update
my host is mediatemple, not sure if that helps
 
@ChrisClower You can set the error reporting value via .htaccess.
 
would that report anything not already reported by the server?
because 500 is such a generic error
500 can be anything. i wish i could step through the code
500 can even be a 404 in some cases
it means nothing
 
6:16 AM
@ChrisClower My care factor is low as to where the problem is. I have found that it is more important to be able to see what is going on.
500 in PHP code is generally an uncaught exception. Try this from the command line. php -a
 
my code is open source if that's what you want
 
error_reporting(0);
throw new Exception('yo dude');
error_reporting(-1);
throw new Exception('now look');
 
sec
ok how do i unlock a project on github? lol, sorry
it was created as private for now, but how do i open it?
 
> Try this from the command line. php -a
 
i can't access the command line on the server :\
 
6:19 AM
try it on your localhost
 
this problem only exist in production and not on the local server
 
Why is everyone fighting against advice today?
 
hm? i'm not
 
ok, then try it on your localhost
 
i thought you misunderstood, sorry
 
6:21 AM
This is so that you understand what your problem might be.
 
of course i don't understand my problem
if i understood it, i wouldn't post it :P
 
have you tried what I suggested?
 
yes i'm working on it
 
let me know what you found out from running it.
 
i didn't mean to sound offensive, sorry, thanks for helping
i don't know how to do it. i'm not getting anything
this is from a dos prompt?
i don't have php or apache installed as environment vars
 
6:24 AM
oh, maybe it is php.exe -a on windows. I want the interactive command line version of php.
 
yeah i still need to install php as a service and set an environment variable in windows
now sure entirely how to do that
but if i do that....
it seems as though i'd have to run my site somehow off of that instance of the service, right?
 
If you do that you will find out why i suggested error_reporting(-1); to you.
 
i wouldn't be able to expect it to run anything if running the site from WAMP
 
@ChrisClower --^
 
ok but that's a MUCH more native php installation than what I have, isn't it?
i'm running AMP from WAMP
so i'd have to radically redo my whole setup, am i right or am i way off?
 
6:29 AM
P is PHP, it comes with command line mode.
 
but how do i run the entire site from WAMP from that?
it's not going to recognize the WAMP version of things
is it? it doesn't seem like it
 
You don't, this is just the first step so that you learn something.
 
So you're saying i should setup my own server install
i'm not saying you're wrong....
there could be benefits
 
have you tried command prompt, and then "php -a" yet?
 
i'm just asking
there's nothing. php isn't a serivce
php is running in wamp, it isn't a windows service
 
6:32 AM
@ChrisClower There are benefits to using un-pre-packaged software, but there is a file called php.exe inside your WAMP installation. Find it.
 
@ChrisClower No, the answer is either no, or yes but it gave me command not found.
 
right, command not found. php isn't a service recognized by DOS because it has no environment var
my copy of php runs in WAMP which doesn't integrate the service with windows
 
@ChrisClower Change directory into the directory where php.exe is located, then execute that command.
 
i don't want to mess anything up. i need you guys to assure me that
i have my schemas and hundreds of sites under WAMP
i don't need to fuck it up
i'm not saying you would
i just need to know i'm not going to mess it up
 
@ChrisClower Investigate what we have told you, do it if you are happy with it, then come back.
 
6:37 AM
this can't be the only way to fix a 500
please understand, i don't want to mess with my OS and local server which is pretty much set in stone
in order to maybe get a debugging message
i'm NOT a server admin
i know nothing about servers, it's not my forte
 
@ChrisClower I am not trying to fix your problem. This is to teach you something that will help you fix your problem.
 
i build websites, that's all
i understand, and i appreciate that, but i'd have to change my local server, right?
i don't know if i can handle the consequences of trying that
 
Read what was suggested, if you are happy, do it, then come back. I am not interested in discussing this further.
 
that's ok, you don't have to. help is voluntary
what you suggested resulted in a result which led me to strongly believe that i needed to make changes in my server, and you didn't refute that
and i have a hard time risking that kind of change for some simple debugging that may or may not work, but may or may not fuck my setup over
surely that's understandable, am i right?
i have a lot of clients who depend on me daily
i can't really risk changing my setup, whether it might bring me a little closer to the answer or not (but who knows)
 
> I am not interested in discussing this further.
 
6:46 AM
as i said, help and discussion is voluntary here
you don't have to and i don't expect you to
thank you for the suggestion
unfortunately at this time, i can't risk sensitive data to drastically change my server setup. this is a relatively small issue i brought into question, and it's not work the risk. i'm sure i'll figure it out
"WAMP sucks you should use native installs", ok great. WAMP has worked for me for like 10 years, but i do get the point about flexibility. maybe i will change someday but menial problems with debugging code aren't going to make me take 2 weeks to do it at this time
it would definitely be a wise choice to change over to native. it would probably be even wiser to switch to linux while i'm at it. but it's not important enough
i have had linux boxes for probably over 15 years
that sit and collect dust for the most part
i can't use them for anything but curiously messing around with them for a week or two after a release
i don't run a hosting company
i need things like adobe CS.
nothing on linux can begin to compete
i love the underdog. hell, i'm an amd guy
even though i know intel is better, but i've been an amd guy for forever
i like supporting underdogs and being different
linux though? it's not a viable desktop OS
i've played a lot with it and sometimes even rooted for it for years
but no one makes software for it
 
@ChrisClower Well, Adobe CS apparently runs great under Wine...
 
yeah old versions MAYBE
i've been there and done that with WINE
it's a dead horse that doesn't need any more beatings
it has its merits, but it doesn't come close to helping Linux compete with windows for consumer use
 
Well, if you have Windows, there isn't really any reason to try to use Windows programs on Linux :-)
@ChrisClower True.
 
i agree
i WANT adobe to make CS for linux
i WANT to switch to linux. i do. really
but no one develops for it, i wish they would, and i know they could
but they don't, and i have to live int he real world
linux is a server os at the end of the day
 
Very funny, it switches between the ratings 'Garbage' and 'Gold': appdb.winehq.org/…
 
7:00 AM
bla bla bla and good morning.
 
and it's definitely making the college try at being a desktop os, but developers don't support them
 
If anyone is tempted to read the transcript for the last few hours, don't. It is a waste of time.
 
user50049
@ChrisClower My setup is pretty simple. I have an old core2 duo hanging on the network that I use for my local dev server, which basically matches the setup of my remote server. I hate those "works on WAMP but not remote" bugs, ugh
 
and as a developer, i have to go where the other devs go who make my tools
 
morning hakre
 
7:01 AM
@ChrisClower: you want to use adobe CS and that's it. If you want to have linux get you an apple device and run adobe on it.
 
user50049
I have never had WAMP live for more than a month without dying horribly due to .. well I'm not sure .. moon phases perhaps?
 
i have a macbook pro late 2011 model
 
@TimPost who needs WAMP?
 
it's nowhere near linux lol let alone windows
apple is a joke, come on
osx sucks
 
user50049
Just unlucky with it I suppose.
 
7:02 AM
i wasted $2,500 to find out osx is shit
 
@TimPost are you installing the components your own or are you using a pre-made collection?
 
user50049
@hakre I tried it a few times when I was on working vacations to kind of remote places (coding on an island basically) and wanted a local server (pre virtualbox days).
 
i use WAMP @hakre
 
user50049
Never did get it working quite right
 
since you asked
i like WAMP, it does what i need, in the past i've done native installs
 
user50049
7:04 AM
So it's cool, my little debian box handles php, python, node, redis, mongo, mysql, nginx, apache .. all the stuff I work with
 
and found WAMP the same but user friendly for what i've done
 
user50049
I went the native route too. I'm just unlucky with it I guess.
 
I'd do ubuntu, the last local server I did with linux with 9.10 server with no gui and SSH'd into it over the network
seemed at the time that it would just be easier to go back to wamp
 
@TimPost well that alltogether is a little bit too much for windows I'd say.
you can successful run apache + mysql + php on a windows box. you need to reboot from time to time or you should restart services at least
 
user50049
@hakre Yeah.. Once I got the debian box all set up I just created a VM for virtualbox on it, so I just boot it if I'm traveling and need access to my dev setup to try stuff
 
user50049
7:08 AM
It's like carrying around a shell if your a snail or a turtle. Home sweet home, just boot the VM and there's your lab just the way you left it.
 
@TimPost yeah, that's nice. I started to play with vagrant last week or so.
 
talk shit about windows all you want man, but as someone who's given linux (as a desktop OS and once as a "local remote" server over wamp), and used OSX for almost a year and invested thousands in apple, i can tell you that as sad as it really is, windows still stands on the top of the pile
 
user50049
Windows 7 isn't bad, I don't mind using it. Windows 8 looks like it might be a bit of an annoying leap though.
 
it's really sad to say that windows is the creme of the crop because it still sucks ass, but it really is the best imo, so...
and i've tried hard to reject windows and try the alternatives
 
@TimPost It's not so annoying once you get used to it. The only problem is, just about the only app that I use is called 'Desktop' :D
 
7:10 AM
it's just that there are no good alternatives lol
linux has the most potential
especially recently
but devs need to hop on board there and get to making linux apps
linux is better in ever way... except that it has no apps
and it has no apps because it has no user base...
and it has no user base because it has no apps
 
@ChrisClower Elementary OS looks hopeful (it's interface, I mean...)
 
user50049
@ChrisClower My primary language is C, and I do a lot of POSIX (Linux included) server development .. so it's more or less my primary OS. It does just what I want, just the way I want it and I like that. Windows is a better experience on my laptop, so I use it there. I only care about my OS not getting in my way.
 
it's a catch 22
 
user50049
Well, it used to be C, I've been working mostly with PHP for the last 1.5 years. That's probably why I'm getting better at it.
 
7:13 AM
@ShaquinTrifonoff their website doesn't provide too much info (very quickly), care to elaborate on why it's interesting?
 
@ChrisClower: I don't have any problems with my linux desktop OS.
It's just that I don't try to run adobe on it. Also there is no problem in having more than one OS.
 
@hakre You don't need things like Adobe CS and many others then
I do
 
@ChrisClower Well I have them but just not on the linux desktop.
 
@ChrisClower I saw a video, it's interface is great. Can't remember the URL, though.
I tried to install a nightly build, but it didn't work :D
 
I'm a graphic designer and I also occasionally (reluctantly) do flash, and i do video editing with premiere
there's nothing on linux that can BEGIN to compete with photoshop (don't say gimp), fireworks, illustrator, or premiere
gimp is garbage compared to photoshop, fireworks and illustrator, though i do respect its open source roots and capabilities considering
 
7:17 AM
@ChrisClower There is: VirtualBox :P
 
yeah but it doesn't support all the native hardware drivers, and doesn't run nearly as fast
though i think you were joking
 
@ChrisClower you forgot commandline. but well that's probably too much programming for you when it comes to video editing and graphic design. anyway, don't try to run the wrong OS for the tools you like to use.
 
when i am in design mode, no, i don't want to program my designs, sorry :P
i like to program when i program, and design when i design
and windows apps give me that ability without even trying :P
call it a luxury
 
@ChrisClower or call it conditioned. decide your own. but please stop complaining.
 
i can program when i want to program, and design when i want to design, and play games when i want to play games. it's great. you should try it sometime
i didn't compalin
 
7:21 AM
you were so disappointed that adobe does not port to linux. however you never contacted adobe about that, right?
 
i just said that i prefer windows after giving a more than fair chance to the others, and even said it's unfortunate that windows is the best there is because it still sucks
i thought i gave an unbiased opinion
it's not meant to offend, and linux is great
 
okay, I think we had the lol-moment now.
 
i hope one day it ends up on top, really
 
well first of all understand what an operating system is.
 
i do understand what an operating system is
go on
 
7:23 AM
and then when you get a little grab on what free software means you might understand why linux is that way, mac osx is that way and windows is the way it is.
 
@TimPost hmm, did two changes. Didn't turn CW :)
 
i know what free and open source software is, my projects are open source on github
 
what is on top of the pile depends purely on what you need and where you place yourself. in the end it is just a tool and you should choose the right one.
 
i like giving away my code to help people either expand on it and make their lives easier, or use it for something they need
it's a great concept
i fully support it
i don't know where you got that i don't
 
@TimPost I think I flagged this before but is there any chance to merge stackoverflow.com/questions/292926/… and stackoverflow.com/questions/3577641/…
 
7:26 AM
i'm talking about how viable a product is from a usability standpoint, and for what uses
like you said, "depends on what you need"
i happen to think windows is the most flexible for most consumers
 
user50049
@Gordon That's one of my least favorite 'features', it makes maintaining your content about as much fun as maintaining a rusty fully charged hand grenade.
 
@TimPost Damn! Fixed a typo and now it's a CW
 
user50049
link
 
linux is still primarily the best server and mobile OS
 
user50049
@Gordon click ... click .... boom!
 
7:28 AM
380
A: How to parse and process HTML with PHP?

GordonNative XML Extensions I prefer using one of the native XML extensions since they come bundled with PHP, are usually faster than all the 3rd party libs and give me all the control I need over the markup. DOM The DOM extension allows you to operate on XML documents through the DOM API with P...

 
i'm comin' at you with the new style cuz you know it's buck wild
i'm comin' at you from your stereo, meet me on the radio
 
user50049
 
click click BOOM!
 
@TimPost thanks <3
 
Tip: don't parse html with php
;)
and don't use xml at all lol
xml is that answer to a problem... that causes 10x more problems
 
user50049
7:31 AM
@ChrisClower The API I'm working against now offers everything but JSON
 
user50049
Depressing :( Makes ape sad.
 
json is a fucking necessity :O
that should be #1 in a parsing api
json is the answer to everything
json is the xml of the furure :O
so much simpler, yet so much more powerful
why do you think xhtml was abandoned before it was ever made a standard?
because. xml is shit. and html is html, not xml. lol
although to this day i still follow the xhtml 1.0 spec with html 4, which is still valid
and it's still very good practice imo
so one good thing came out of xml
one
lol
 
Json sucks as an XML replacement. The UseCases are just different.
 
oh god....
no, json rules
but you don't use it to communicate with php from a java (presumably desktop) app
that's what XMLRPC is for and one of the only uses for XML
java is what sucks here
as always. java is crap
 
less volume, more substance please.
 
7:41 AM
@ChrisClower the link has nothing to do with the whole XML/Json debate. I just want it closed cuz it's a dupe ;)
 
it has no way to deal with json because it's behind, as it always has been
java still has no way to deal with json
and saying json sucks as an xml replacement is null without an argument
to which you have none
 
The entire ecosystem around XML is vastly superior to Json. Json has it's niche as a small efficient transport format, but that's about it. XML can do much more than that.
 
you weren't referencing java, but java still can't handle json either way, and you'd have to use XMLRPC to communicate from php to java
that's funny dude. come on
 
I might be missing the reference what this has to do with communicating between PHP and Java. Why you keep mentioning that?
 
json does not even have comments. transport encoding is encoding and actually it's too complicated for a flaw-free implementation in PHP.
 
7:44 AM
json can do ANYTHING XML can do unless the language is too outdated to support it, and then some
wow, where did java come from there, hatred for java on the brain, sorry
XML*
 
for example as a PHP programmer, json is just too fragile. even if you get input to the standards, it's not guaranteed to be processed as that.
 
@ChrisClower then how do you implement a Hypermedia REST API with Json? Since when does Json have hypermedia controls? How do you implement Schemas? How do you query Json? How do you build your own markup from it? You can't.
 
where are namespaces in json?
how can I mix two or more documents in one?
 
Json and XML are two distinct techologies
 
exactly.
 
7:47 AM
i thought i already stated what it had to do with communicating between php and java (when i thought you were referencing a question about how), but java is too outdated to interpret json, that was the point
because java sucks. it's slow, and it's outdated
you can query json
 
you can create a json file on the server and ask it for whatever you want
how it it different from xml other than being thinner and even more powerful?
namespaces? other than in programming, you don't need them
 
@ChrisClower it does not have any comments.
 
this is markup, not programming
so what? it's generated
 
@ChrisClower uh? so what now, markup or programmed?
 
7:50 AM
why do you need to put comments in code that's generated from a database and not written by hand?
 
@ChrisClower well, so much for more powerful. you now tweak the other end if the outcome does not fit your bold statements.
 
I think that discussion is pointless
 
json is progrmatically generated, it's not markup, and it doesn't need comments or namespaces
what do you need namespaces in XML for? tell me. and how much xml do you code by hand? if you do, i feel sorry for you
 
hai
 
with json, you call an object, you don't need the namespace
 
7:54 AM
31 mins ago, by hakre
okay, I think we had the lol-moment now.
 
@raghulrnair can has stdio?
 
glad you're proud of your own comment, so let's move on to the question
 
@Paul no
 
i don't need to explain any more about the subject
anyone who thinks xml is better than json is a victim of xml who hasn't even bothered exploring json
 
7:58 AM
6 mins ago, by Gordon
I think that discussion is pointless
 

« first day (720 days earlier)      last day (4222 days later) »