spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


gd error (no background pic) - 2008/09/16 15:05 Dear all,

I recently picked up an old showcenter 1000 and first installed swisscenter on my local server (i.e. on my LAN) . My local server is running ubuntu and everything worked fine.

Now I have installed swisscenter on my remote (WAN) server. After some struggle I managed to get swisscenter to connect to my remote server and after some more php rebuilds it started to work almost ok. However I have a strange problem:

While playing music there is no background image (and also internet radio). I checked the log file and it shows that my showcenter is repeating a request for a background image:

[2008.09.16 12:14:15] ------------------------------------------------------------------------------
[2008.09.16 12:14:15] Page Requested : http://AAA.BBB.CCC.DDD/playing_image.php?session_id=bcb12cee6d758195ce15a906825d68ee&type=.jpg by client (83.254.29.185)
[2008.09.16 12:14:16] ------------------------------------------------------------------------------
[2008.09.16 12:14:16] Page Requested : http://AAA.BBB.CCC.DDD/playing_image.php?session_id=bcb12cee6d758195ce15a906825d68ee&type=.jpg by client (83.254.29.185)

where (AAA.BBB. ...) is my remote servers ip.

I went on to investigate the playing_image.php script and it turns out that the now_playing_image() function called on line (+- a small integer) 28

$image = now_playing_image( $tracks[$idx], $prev_info, $next_info, ($idx+1).' / '.count($tracks) );

never returns. Investigating this function in turn shows that the

$image->text(str('NOW_PLAYING'),$title_x, $title_y, $title_text_col, $title_text_size);

call on line (+- a small integer) 166 does not return.

This is as far as I got. I conclude that it must be a problem with php and or gd. I have tried compiling php with both gd external and "internal" not it does not help. A phpinfo(-1) dump is given below.

I have a few other problems which might be related:
1) Configystem Tests does not work at all (no output)
2) Config:Miscellaneous, saving setting does not work at all (no output, and no change)
3) It appears that swedish characters are not displayed properly

My guess is that their is a misconfiguration of php, the character set in mysql is wrong. The latter is just I wild guess. Somebody that can help me?

phpinfo dump is attached.

regards

P4th
File Attachment:
File name: 9cec2fc8b5924d6ab81faf778d33b178.
File size:18046 bytes
--
Showcenter 1000 on Ubuntu (local) and Gentoo (remote)
  | | The administrator has disabled public write access.
Re: gd error (no background pic) - 2008/09/17 08:42 I'll answer this myself, pehaps it will help somebody in the future.

I had forgotten to set the truetype use flag when building php. My working php use flags for php are:

USE="apache2 berkdb crypt gd-external gdbm hash iconv mysql nls pcre pic readline session ssl threads truetype unicode xml xmlrpc zip zlib"

regards

P4th
--
Showcenter 1000 on Ubuntu (local) and Gentoo (remote)
  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer