• WolfDJ 3.0 - Stream music to players. Includes web-code
    236 replies, posted
  • Avatar of mr.wolf
  • [QUOTE=mr.wolf;28889641]Common Issues Internal Server Error You messed up the htaccess file. The most common problem is an invalid path to the htpasswd file. It must be an absolute path from the root. Jailed users may have trouble with this, but it is usually /home/your-username/path/to/wolfdj/admin/.htpasswd[/QUOTE]
  • Avatar of Ragarnoy
  • Well, i have an internal error but my path can't be wrong... /root/www/wolfdj/admin
  • Avatar of metrotyranno
  • [QUOTE=Tiagos360;31350903]Well, i have an internal error but my path can't be wrong... /root/www/wolfdj/admin[/QUOTE] Ok try this one [html]AuthType Basic AuthName "WolfDJ Admin Area" AuthUserFile /.htpasswd Require valid-user [/html] and do this, the htpasswd goes to your wwroot and the .htacces stays in admin. [editline]trolol[/editline] Now my problem :3 when i auth'd i get a error that there is something wrong with auth file [url]http://www.avatargamingcommunity.com/wolfdj/admin/index.php[/url] login is the default
  • Avatar of mr.wolf
  • If you're sure your path is accurate, then it's probably something else wrong with the htaccess file. Try deleting things from it until it doesn't 500 anymore. Some hosts are very strict in what they will allow in the htaccess, and they will just 500. Some hosts even don't even allow htaccess files at all! You can check your error logs if you have access to them, and that will tell you exactly what the problem is. Some server hosts will just throw a 500 error on an innocent PHP error as well.
  • Avatar of Ragarnoy
  • [QUOTE=mr.wolf;31354534]If you're sure your path is accurate, then it's probably something else wrong with the htaccess file. Try deleting things from it until it doesn't 500 anymore. Some hosts are very strict in what they will allow in the htaccess, and they will just 500. Some hosts even don't even allow htaccess files at all! You can check your error logs if you have access to them, and that will tell you exactly what the problem is. Some server hosts will just throw a 500 error on an innocent PHP error as well.[/QUOTE] What do you mean ? Deleting what ? WolfDJ ? And no i don't have access to the error logs.
  • Avatar of lorde banana
  • 500 internal error can be caused by some hosts not allowing files/folders being chmod'd to 777
  • Avatar of mr.wolf
  • Make a copy of the .htaccess and then delete the file. If it works now, then your host doesn't allow htaccess files, or something in my htaccess file, and you'll have to find other methods of authentication. I might write up a PHP version at some point, but I've been really busy, and it's not really a priority right now.
  • Song appears to upload then when its done it shows that the upload failed. In the Java Console it shows the following error: [url]http://pastebin.com/4ddYiBBV[/url] Specific Error: failed for uploadThread_0 I have tried this: [url]http://jumploader.com/forum/viewtopic.php?t=2431[/url] Probably did it wrong but: archive="lib/jumploader_z.jar,lib/sanselan_z.jar,lib/mediautil_z.jar" Sanselan_z.jar and mediautil_z.jar was downloaded and put in the lib folder also, it didn't help. I have also applied the Windows fix that was previously mentioned.
  • Avatar of mr.wolf
  • [quote]Error:Can't move uploaded file[/quote] Sounds like a permission problem. Be sure the webserver can write to the directory.
  • [QUOTE=mr.wolf;31378814]Sounds like a permission problem. Be sure the webserver can write to the directory.[/QUOTE] The IIS user has write permission to that directory. It made the sqlite db so it does indeed have write.
  • [QUOTE=Banana Lord.;31378953]Be sure your web host allows files/folders to be 666/777[/QUOTE] I'm on windows server but it write permission it created the sqlite database and had no problems. I am using IIS, its not a permission problem :/ It does appear to be a permission problem but I checked and it isn't ;P
  • [QUOTE=mr.wolf;31382551]I'm afraid I'm not experienced enough with IIS to help much.[/QUOTE] Darn, alright i'll try and figure it out.
  • Avatar of cyw960517
  • It works very well, but have a problem with installing Flash player. It seems to be not installed If someone type "wolfdj-debug" and press the download button. This way, it was not installed ,
  • Avatar of lorde banana
  • You can't install it from the HTML panels, you have to install it from Chrome/Firefox or select "Other Browsers" on the download page (out of game)
  • Avatar of cyw960517
  • [QUOTE=Banana Lord.;31390885]You can't install it from the HTML panels, you have to install it from Chrome/Firefox or select "Other Browsers" on the download page (out of game)[/QUOTE] Yep, I see . i confused because In the video, It seems to be installed while playing game. anyway thanks.
  • Avatar of mr.wolf
  • Yeah, I already had flash installed for firefox, so it worked for me already. I'm not actually sure if installing it for chrome works, or just firefox. Chrom SHOULD work, because it's webkit based, but then FF is gecko and it works.... Idk I know that firefox works though. [editline]28th July 2011[/editline] The wolfdj-debug command was just to see if you had flash or not. If you had flash and still couldn't hear, then there is a bigger problem. Otherwise go get flash and restart gmod.
  • Avatar of lorde banana
  • One thing that I've found to be a pain is that even though everything is protected by htaccess, the media files are not supposed to be. With NGINX and Lighttpd I can password protect a directory, but then the music becomes password-protected too. My solution was moving everything to /music instead of /admin/music, but now the uploader won't work. And yes, I updated everything so it moves to ../music instead of ./music [editline]28th July 2011[/editline] I'd also like to mention that you picked a really bad uploader. Instead of telling the error or why it fails to upload half-way through the upload, it just has a little yellow exclamation point and absolutely no error messages. It's literally impossible to debug the issue..
  • Avatar of mr.wolf
  • First, only .php files are protected by htaccess, not the music files. Learn to FilesMatch. Second, if you don't like the uploader, then use a different one. No one is stopping you. It works out of the box, and if you set this system up as it is meant to, then there are no errors. It looks good, and it's easy to use and set up. But hey, if you don't like it, instead of complaining about it, plug in a different one. Third, have you ever heard of error logs? [url]http://pastebin.com/4ddYiBBV[/url] Looks like it does spit out errors, just not to the end-user. Which is how it's supposed to be. if you're spitting out errors to users, ( especially ones that contain absolute paths ), you're setting yourself up for attacks. Hide the errors, display a generic error sign to end users ( who don't need to know why it didn't work, just that it didn't ), and check the error logs to find out what happened.
  • Avatar of Blasphemy
  • Uh, it won't allow me to delete this file, so it is stuck in limbo. When I try to delete it, it gives me the error: Warning: unlink(limbo/01 Rock N\\\' Roll (Will Take You to the Mountain).mp3) [function.unlink]: No such file or directory in /home/leaduorg/public_html/subs/blasphemy/music/wolfdj/admin/process.php on line 12 Warning: Cannot modify header information - headers already sent by (output started at /home/leaduorg/public_html/subs/blasphemy/music/wolfdj/admin/process.php:12) in /home/leaduorg/public_html/subs/blasphemy/music/wolfdj/admin/process.php on line 23 EDIT: It seems to have issues with songs that have an apostrophe in their name. Blah, I can't remove the files because they're write protected in the limbo folder :\
  • Avatar of mr.wolf
  • You have Magic Quotes enabled, as it specifically warns against in the instructions in the OP. Reset the permissions on the limbo directory and disable magic quotes.
  • Avatar of ChubZz
  • Hello, i downloaded wolf dj via svn and installed it as in the video. It used to work fine but now i get this error when i try to confirm files. [code] [h=1]Internal Server Error[/h] The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@ta1pgaming.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. [HR][/HR] Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at ta1pgaming.co.uk Port 80 [/code] Additionaly i get this error in my cpannel, error log [code] [Tue Aug 09 22:13:56 2011] [error] [client 109.145.8.70] File does not exist: /home/tapgamin/public_html/500.shtml, referer: http://ta1pgaming.co.uk/radio/admin/limbo.php [Tue Aug 09 22:13:54 2011] [error] [client 109.145.8.70] File does not exist: /home/tapgamin/public_html/404.shtml, referer: http://ta1pgaming.co.uk/radio/admin/limbo.php [Tue Aug 09 22:13:54 2011] [error] [client 109.145.8.70] File does not exist: /home/tapgamin/public_html/radio/admin/js, referer: http://ta1pgaming.co.uk/radio/admin/limbo.php [/code] And in wolfdj error log i get this [code] [09-Aug-2011 18:39:20] PHP Warning: Invalid argument supplied for foreach() in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 7 [09-Aug-2011 18:39:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/tapgamin/public_html/test/wolfdj/admin/process.php:7) in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 23 [09-Aug-2011 18:39:48] PHP Warning: Invalid argument supplied for foreach() in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 7 [09-Aug-2011 18:39:48] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/tapgamin/public_html/test/wolfdj/admin/process.php:7) in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 23 [09-Aug-2011 18:40:37] PHP Warning: Invalid argument supplied for foreach() in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 7 [09-Aug-2011 18:40:37] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/tapgamin/public_html/test/wolfdj/admin/process.php:7) in /home/tapgamin/public_html/test/wolfdj/admin/process.php on line 23 [/code] Can anyone help me? Thanks in advance
  • Avatar of mr.wolf
  • The File does not exist is harmless. The second error is your problem. It's saying the $_POST['File'] array is empty, which means you are trying to process when there are no files. What kind of server are you using?
  • Avatar of ChubZz
  • [QUOTE=mr.wolf;31654470]The File does not exist is harmless. The second error is your problem. It's saying the $_POST['File'] array is empty, which means you are trying to process when there are no files. What kind of server are you using?[/QUOTE] Im using xenons hosting Its linux os, wolf dj used to work but not anymore. thanks
  • Avatar of mr.wolf
  • If it used to work and now it doesn't then it must be something your host changed. I haven't updated the web code in months. You can check the SVN log if you don't believe me.
  • Avatar of ChubZz
  • My host's apache configeration does not support multiviews, is this why? Thanks regards karl