LinuxMCE Forums
May 20, 2013, 08:47:16 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: PHP error on templates?  (Read 810 times)
PeteK
Guru
****
Posts: 408


View Profile
« on: September 16, 2009, 05:53:19 am »

Hi gang.  I've noticed I've got some strange behavior with one of the templates I developed and checked in.  It's repeatable for me and I wanted to see if that's the case for everyone.  If you open up the Olevia TV template (1950) from a fresh sqlCVS update, then click on 'Edit Ruby Codes,' the code page pops up with no commands populated.  However, if you then click 'Update,' the commands appear, along with what appear to be IR codes.  Some of the commands have multiple copies, and those copies can't be deleted.

Both the 'Clear Code' and 'Delete Code' buttons remove the codes inside the box, but neither removes the Command.  Selecting 'Add/Remove Command' and unchecking commands no longer seems to remove the unchecked commands from the command set.

Clearing the IR codes (and fixing the syntax error noted below), gets the template working, even if multiple, blank commands are present.

P.S.
The sharp ones out there looking at the template may have noticed my bone-headed mistake in Ruby Syntax.  I've corrected the '$' placement on my machine and will check in once I figure out what's going on with the command display.
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #1 on: September 16, 2009, 09:52:11 pm »

isn't this the old, old problem with templates when hitting edit ruby codes that makes entering the ruby difficult/impossible, and is what has prevented hari from updating the Marantz template? This was a problem in 0710, but I thought I remembered someone looking into it....
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #2 on: September 16, 2009, 10:00:59 pm »

I've noticed I've got some strange behavior with one of the templates I developed and checked in.

Could you check if this problem still occurs? We had some network problems with the LinuxMCE servers on Tuesday CET, so it might be, that the servers were not available.
Logged

PeteK
Guru
****
Posts: 408


View Profile
« Reply #3 on: September 16, 2009, 10:11:14 pm »

posde--

OK, I'll do that, but I checked this in a while ago.

http://trac.linuxmce.org/trac.cgi/ticket/112

Sqlcvs seemed to be operating correctly when I updated on Tuesday, but I'll check again.
Logged
PeteK
Guru
****
Posts: 408


View Profile
« Reply #4 on: September 18, 2009, 11:02:11 pm »

Posde-

I reverted everything via sqlCVS and I'm still getting the same issue.  This looks to be a real bug with the database editor.

-Peter
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #5 on: September 19, 2009, 12:38:16 pm »

*grml*

This was working. do you have any idea, since when this has stopped working?
Logged

posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #6 on: September 19, 2009, 01:17:41 pm »

PeteK,

I have checked some other templates. Other templates work as expected. This indicates that something is broken with your specific template. Please rename the current template to broken or something, and create a new template.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!