**** BEGIN LOGGING AT Wed Jan 16 02:59:59 2013 Jan 16 04:51:30 * phil_bw wanders by Jan 16 04:51:47 hey phil_bw Jan 16 04:51:56 evenin' patrick Jan 16 04:52:09 how goes things? Jan 16 04:52:38 things go well actually Jan 16 04:52:52 that's good Jan 16 04:52:55 * PatrickC|School hates PHP Jan 16 04:53:02 just getting cozy in bed and writing some code Jan 16 04:53:05 you hate PHP? Jan 16 04:53:12 atm i do lol Jan 16 04:53:17 of programming languages PHP is like english to me Jan 16 04:53:23 screwed up my wiki and idk how Jan 16 04:53:23 I consider it my native programming language Jan 16 04:53:51 i added two lines, two lines from copy/paste on the mediawiki site.. and now i'm getting a 500 error at my wiki :S Jan 16 04:54:28 are you able to get the actual error message (through the terminal) Jan 16 04:54:34 how would i? Jan 16 04:54:39 i have root ssh Jan 16 04:54:46 depends on how php is configured Jan 16 04:54:54 heh. that i don't know Jan 16 04:55:18 let me look at something on my own server for a sec, might have a cheat for ya Jan 16 04:55:25 sweet lol Jan 16 04:55:27 thanks phil_bw Jan 16 04:56:57 so if you go the php file (assuming index.php) and run php -l index.php what happens? Jan 16 04:57:01 hmm, i've got it back up Jan 16 04:57:08 removed the two lines of text i added Jan 16 04:57:11 lets try that again Jan 16 04:57:58 and now a 500 error Jan 16 04:58:02 so it's something with the new code Jan 16 04:58:05 though it all looks right Jan 16 04:58:20 yeah the 500 error is generic, means there's a real code problem underneath Jan 16 04:58:26 did you try what I said? Jan 16 04:58:31 i found the code error Jan 16 04:58:36 but i'll try that :) Jan 16 04:58:49 No syntax errors detected in LocalSettings.php Jan 16 04:59:18 try php -ddisplay_errors=on -l file.php Jan 16 04:59:43 that's a temporary switch btw and only turns that on for that particular execution Jan 16 04:59:49 patrickc@simonsickle:/var/www/wiki$ php -ddisplay_errors=on -l LocalSettings.php Jan 16 04:59:49 No syntax errors detected in LocalSettings.php Jan 16 05:00:02 lemme check the file i reference Jan 16 05:00:09 weird Jan 16 05:00:21 nope, no errors in the file i reference either Jan 16 05:00:52 must be a runtime issue Jan 16 05:01:16 as in synataxically it's correct, but whatever you did doesn't settle well with some other code Jan 16 05:01:59 eah Jan 16 05:02:01 yeah* Jan 16 05:02:43 there's another trick Jan 16 05:04:13 what's that? Jan 16 05:04:19 lookin for it Jan 16 05:05:05 can you edit your php.ini file? Jan 16 05:06:15 like, the regular php file? Jan 16 05:06:18 or something local? Jan 16 05:06:25 on your server Jan 16 05:06:39 don't think so Jan 16 05:06:44 oh Jan 16 05:06:50 well, i probably can Jan 16 05:06:55 but it isn't my server Jan 16 05:07:00 oh Jan 16 05:07:01 so i try not to edit config files heh Jan 16 05:07:32 can you at least look at it? Jan 16 05:07:43 probably Jan 16 05:07:48 where is it normally located? Jan 16 05:08:00 which distro are you on? Jan 16 05:08:16 ubuntu 12.10 iirc Jan 16 05:08:20 it's either 04 or 10 Jan 16 05:08:30 hm, don't know ubuntu Jan 16 05:08:43 mine's at /etc/php5/apache2/php.ini Jan 16 05:08:48 on debian 6 Jan 16 05:09:01 mines there Jan 16 05:09:16 what am i looking for in that file? Jan 16 05:09:18 do a search for the word error_log Jan 16 05:09:46 ok Jan 16 05:09:48 https://www.sourcedrop.net/4Pv6361a4e5e4 Jan 16 05:10:08 theres several sections that reference it Jan 16 05:10:12 want me to paste them all? Jan 16 05:10:16 no Jan 16 05:10:29 just the one that says error_log = Jan 16 05:10:32 and isn't commented out Jan 16 05:10:59 do a search for syslog Jan 16 05:11:07 that should drop you in the right section Jan 16 05:11:46 ;error_log = syslog Jan 16 05:11:47 that? Jan 16 05:11:50 (it's commented out Jan 16 05:11:51 ) Jan 16 05:12:01 are any of them not commented out? Jan 16 05:12:17 like = php_errors.log, etc Jan 16 05:13:03 define_syslog_variables = Off Jan 16 05:13:03 error_reporting = E_ALL & ~E_DEPRECATED Jan 16 05:13:12 display_errors = Off Jan 16 05:13:30 no, I only care about error_log Jan 16 05:13:31 log_errors = On Jan 16 05:13:34 oh ok Jan 16 05:13:50 ;error_log = php_errors.log Jan 16 05:13:51 (commented out) Jan 16 05:13:55 if there's an instance of it that's not commented out that could give you some clues Jan 16 05:14:04 i see none that are not commented Jan 16 05:14:07 if it's not your server you probably should leave it along Jan 16 05:14:09 alone* Jan 16 05:14:17 lemme ask him (he's on) Jan 16 05:14:29 I leave mine set to syslog and just look in my normal system log for errors Jan 16 05:15:45 he said i can edit the php.ini Jan 16 05:16:09 ok, uncomment out error_log = syslog Jan 16 05:16:20 (i've had mixed luck with logging to a file) Jan 16 05:17:00 ok Jan 16 05:17:04 done Jan 16 05:17:15 run it in your browser and let it error Jan 16 05:17:53 ok Jan 16 05:18:00 done Jan 16 05:18:03 then I think it's in dmesg Jan 16 05:18:07 type dmesg Jan 16 05:18:17 command not found Jan 16 05:18:29 are you root? Jan 16 05:18:33 nvm, misspelled Jan 16 05:18:38 lemme do it again with sudo Jan 16 05:18:43 no output Jan 16 05:19:11 do tail /var/log/messages Jan 16 05:19:53 er maybe it's tail /var/log/syslog Jan 16 05:19:57 one of those Jan 16 05:20:08 lemme install pastebinit heh Jan 16 05:20:32 it should give you a pretty obvious php error Jan 16 05:21:34 blah Jan 16 05:21:52 I think I have the wrong error logs, lemme make a file with an error Jan 16 05:22:08 ok Jan 16 05:25:58 try tail /var/log/user.log Jan 16 05:26:32 http://paste.ubuntu.com/1536558/ Jan 16 05:27:44 * phil_bw sighs Jan 16 05:27:48 where is it.... Jan 16 05:33:34 try tail /var/log/apache2/error.log Jan 16 05:34:28 http://paste.ubuntu.com/1536596/ Jan 16 05:35:06 bingo Jan 16 05:35:11 lol Jan 16 05:35:24 [Wed Jan 16 09:17:51 2013] [error] [client 98.87.82.2] PHP Fatal error: Call to undefined method Parser::strip() in /var/www/wiki/extensions/WYSIWYG/CKeditor.body.php on line 90 Jan 16 05:35:36 that could be an issue Jan 16 05:38:09 also when looking for fatal errors you can use tail /var/log/apache2/error.log | grep PHP Fatal error Jan 16 05:38:20 ok cool Jan 16 05:38:29 or just grep PHP for all php errors and warnings Jan 16 05:38:57 ok cool Jan 16 05:38:59 brb real quick Jan 16 05:39:03 thanks for the help btw Jan 16 05:39:24 no prob Jan 16 05:40:45 phil_bw: that line is $text = $parser->strip($text, $stripState); Jan 16 05:40:46 but brb