Xibo - kit.class problem (related to #68188)

Asked by bede

Problem #68188 (Rob Robertson) said --->

I am getting errors when I am going through the installer. I am on Debian 4.0 and PHP 5.0. I get the following errors after the screen that asks you to authenticate with the mysql user (xibo default):

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/apache2-default/xibo/lib/app/kit.class.php on line 217

The above line repeats three times and then says: A field was blank. Please fill in all fields. xibo xibo

I entered all fields that I thought required information. I still have a blank password for the mysql user.
----------------
We (bede) are using Ubuntu server 6.06 and php5. (updated and upgraded to latest using apt-get)
Install check showed all green lights. (in Firefox)
Then got above same error.
Tried the kit.class download recommended in #68188
Then got error - saying could not connect to launchpad server and kit.class could not be found.
Replaced kit.class.php with original and tried IE (in case of obscure caching issue)
Same original error and then kit.class errors with change as above.

Any other ideas?
TIA

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
bede
Solved:
Last query:
Last reply:
Revision history for this message
bede (school-it) said :
#1

We definitely are confused!
We thought we were posting a question (as with the original I based it on).
Apparently it is now a bug with a long number.
Not sure it is a bug or not - no way for us to know other than it is a replicated issue.
So we are converting it to a question in the hope we get an answer sooner.
ie Not sure we find this Launchpad thing very friendly for less technical (non programmer/coder users.)

Apologies if we have breached any protocol and hope this finds its way the best place. Please advise how we should proceed in future if we have done wrong, knowing how some technical people can get sensitive about these things.

For now we just need some help trying to get Xibo to work.

TIA

Revision history for this message
Alex Harrington (alexharrington) said :
#2

Wow! You made that difficult for yourself!

It is a bug, it will be fixed in 1.0.1.

In the mean time, the same solution as Rob had should work. If you go to this link:
http://bazaar.launchpad.net/~xibo-maintainers/xibo/halley/annotate/34/server/lib/app/kit.class.php

At the top of the page, there's a "download file" link. Save that file and use it to replace kit.class.php in the lib directory of your Xibo installation.

If you think you might have done something odd on your initial tries, delete your whole Xibo installation and start from scratch. Before you run the installer, replace kit.class.php with this version.

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#3

Oh, and to address you're question about protcol, we're pretty easy about these things. The easiest thing would have been to add a comment on the end of Rob's question, or just ask a completely new question. There's no real need to delve in to the bug tracker. Dan or I will normally convert questions to bugs as required.

Cheers

Alex (also a School Techie ;) )

Revision history for this message
bede (school-it) said :
#4

Thanks for prompt and friendly response.

1 - We tried replacing the kit.class.php as suggested - but will now do so with clean reinstall and let you know.

2 - I did not add a comment as on the page it said it is best to start your own question - but after logging in the menu at top right appeared to show everything about questions (see own, answer etc ) except ask a new one - I suspect we missed a big green button somewhere obvious!

I am not clicking 'solved' yet until I get back to you with result of reinstall - hopefully tonight or tomorrow.

Revision history for this message
Alex Harrington (alexharrington) said :
#5

OK. No problem.

If it doesn't work for some reason, then exact error messages would be very helpful.

Cheers

Alex

Revision history for this message
bede (school-it) said :
#6

The penny dropped at 4.48am this morning - maybe there is another kit.class.php file!

In reading your solution to Rob's problem we saw the link ended in kit.class.php and pointed to a file called kit.class.php and followed normal procedure by right click then save as - not realising there are in fact 2 kit.class.php files. (confusing?)

The one we needed (and now have) was the one obtained by saving as per your instructions (to the letter).

Apologies for this - lesson learnt, but you can understand our actions we hope.

Later in process the install script refused to delete the install.php and upgrade files claiming insufficient access rights to unlink them. In file manager I changed the install.php to 0777 and still no go so I commented out that part of the script and it finished OK.

At least we are now logged in to Xibo. Might doing this stop something later? (I will manually rename the files initially, and later delete them - should that be sufficient or does something else have to be done eg delete install folder?)

We may have some questions re: client but not yet - this is a test install at this stage. If we do, then I anticipate the challenge of finding the 'ask question' button! ;-)

Thanks for your help.

Revision history for this message
Alex Harrington (alexharrington) said :
#7

Hi

There is only one kit.class.php in the distribution. The version I linked you to is from a previous version of Xibo which did not have the bug you encountered. It should be a simple job of deleting the version we shipped and replacing it with the version you downloaded. I can't see where or how you would have two copies simultaneously.

If you're running on Ubuntu, you almost certainly want to do:
sudo chown -R www-data.www-data /var/www/xibo

clearly, replace /var/www/xibo with the path to your installation.

Assuming your library directory is writable by the webserver, then you shouldn't run in to any problems until you upgrade (at which point you'll need to do the chown from above again).

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#8

Oh - OK - reading your description more carefully I see what you've done.

The link I gave you is to kit.class.php in Launchpad's code system - you'll see it there annotated with revision numbers of each line of code etc. That's why I put in that you need to go to that page and use the "download file" link.

Glad you got it sorted.

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#9

... and when it comes to asking another question, go to the Launchpad Answers section for Xibo here:

https://answers.launchpad.net/xibo

At the top there is a big blue button called "Ask a question". Press on that!
If you can't find it, the link you need is:

https://answers.launchpad.net/xibo/+addquestion

Cheers

Alex

Revision history for this message
bede (school-it) said :
#10

Thanks for the advice re questions - have found it now - we were looking on the general launchpad questions page - somehow got lost from the original xibo docs links etc.

From a brief initial play it looks good. Next step clients.

Thanks again.

Revision history for this message
Alex Harrington (alexharrington) said :
#11

Make sure to have a quick look at these points for client setup:
https://answers.launchpad.net/xibo/+faq/443

Revision history for this message
bede (school-it) said :
#12

We have spent some time this afternoon looking at the server and testing on a client.

A few things to iron out but this looks very impressive - we are looking forward to taking it further.

Thanks for the client pointer above - we found that OK and should be helpful in giving a more realist end user scenario.