Clicking album cover displays blank screen

Having trouble installing AmpJuke ?
Check this.

Clicking album cover displays blank screen

Postby Roger_Courtney on 10-09-2010 18:48

New install. Everything works except when I do any of the following;

1) Track: Select performer
2) Performer: Click on album cover
3) Album: Click on album cover
4) Year: Click on performer

All result in a blank screen. I can click on play all tracks or select a single track and the music playlist is sent to my browser just fine. Also, should hovering over an album cover highlight the entire row? I would expect a single album to be highlighted!

juke.n5rcs.com

guest/guest - for a limited time :D

Roger
Roger_Courtney
Newbie
Newbie
 
Posts: 6
Joined: 10-09-2010 18:26

Re: Clicking album cover displays blank screen

Postby Michael on 11-09-2010 11:13

Hi Roger,

Thanks for posting and welcome to the AmpJuke forum.

Tried & had the same experience as you described. Strange...

A couple of quick questions in order to try and narrow down the problem:
What environment is AmpJuke installed in ? Do you have access to Apache's error.log ? Would be interesting to see what's the showstopper on your box (and I'm sure there's something useful in the error.log).

Are there any permission issues ? (ie. sql.php is not readable by the user the webserver runs as).

Hope this helps to locate the issue. Feel free to post an update if anything is unclear (well...feel free to post an update no matter what).

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Clicking album cover displays blank screen

Postby Roger_Courtney on 12-09-2010 02:32

from the Apache error log

[Sat Sep 11 03:54:39 2010] [error] [client 85.81.168.86] PHP Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /var/www/html/ampjuke/disp.php on line 907, referer: http://juke.n5rcs.com/index.php?what=welcome
[Sat Sep 11 03:54:39 2010] [error] [client 85.81.168.86] PHP Fatal error: Call to undefined function filter_var() in /var/www/html/ampjuke/disp.php on line 908, referer: http://juke.n5rcs.com/index.php?what=welcome
[Sat Sep 11 03:54:43 2010] [error] [client 85.81.168.86] PHP Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /var/www/html/ampjuke/disp.php on line 907
[Sat Sep 11 03:54:43 2010] [error] [client 85.81.168.86] PHP Fatal error: Call to undefined function filter_var() in /var/www/html/ampjuke/disp.php on line 908
[Sat Sep 11 03:59:04 2010] [error] [client 85.81.168.86] PHP Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /var/www/html/ampjuke/disp.php on line 907, referer: http://juke.n5rcs.com/index.php?what=pe ... =performer
[Sat Sep 11 03:59:04 2010] [error] [client 85.81.168.86] PHP Fatal error: Call to undefined function filter_var() in /var/www/html/ampjuke/disp.php on line 908, referer: http://juke.n5rcs.com/index.php?what=pe ... =performer
[Sat Sep 11 03:59:33 2010] [error] [client 85.81.168.86] PHP Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /var/www/html/ampjuke/disp.php on line 907, referer: http://juke.n5rcs.com/index.php?what=tr ... esel=track
[Sat Sep 11 03:59:33 2010] [error] [client 85.81.168.86] PHP Fatal error: Call to undefined function filter_var() in /var/www/html/ampjuke/disp.php on line 908, referer: http://juke.n5rcs.com/index.php?what=tr ... esel=track
[Sat Sep 11 03:59:37 2010] [error] [client 85.81.168.86] PHP Notice: Use of undefined constant FILTER_SANITIZE_STRING - assumed 'FILTER_SANITIZE_STRING' in /var/www/html/ampjuke/disp.php on line 907
[Sat Sep 11 03:59:37 2010] [error] [client 85.81.168.86] PHP Fatal error: Call to undefined function filter_var() in /var/www/html/ampjuke/disp.php on line 908
Roger_Courtney
Newbie
Newbie
 
Posts: 6
Joined: 10-09-2010 18:26

Re: Clicking album cover displays blank screen

Postby Michael on 12-09-2010 08:51

Hi Roger,

This suggests that your're not running the 'correct' version of PHP.
The built-in filter_var() was introduced in PHP 5.2..

However, to 'downgrade' a little, you can open disp.php and replace the function 'my_filter_var' with the code found in this thread: http://www.ampjuke.org/forum/viewtopic.php?f=3&t=229&p=967&hilit=filter_var#p967.

Hope this helps.

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Clicking album cover displays blank screen

Postby Roger_Courtney on 12-09-2010 16:43

Spot on Michael! I updated to php 5.2.x and it now works. Thanks for the solution. This package rocks!
Roger_Courtney
Newbie
Newbie
 
Posts: 6
Joined: 10-09-2010 18:26

Re: Clicking album cover displays blank screen

Postby Michael on 12-09-2010 19:25

Hi Roger,

Great! Thanks for the feedback :)

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark


Return to Installation / support

Who is online

Users browsing this forum: No registered users and 2 guests

cron