Page 1 of 1

B3 support questions: php issues & migration B2 -> B3

Posted: 16 Oct 2010, 06:14
by essoussi
Hi,
Just got my B3 up and running.
Since there is no B3 support forum, I take my chances on this one.
I am missing the old user manual from B2 all I can find is the getting started, which I have already :wink:

Now to my problem.
The web interface throws the follwing at me :

"A PHP Error was encountered
Severity: Notice
Message: Undefined variable: browsers
Filename: libraries/Browscap_raw.php
Line Number: 381

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: userAgents
Filename: libraries/Browscap_raw.php
Line Number: 382

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: patterns
Filename: libraries/Browscap_raw.php
Line Number: 383

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: properties
Filename: libraries/Browscap_raw.php
Line Number: 384

A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: libraries/Browscap_raw.php
Line Number: 257

A PHP Error was encountered
Severity: Notice
Message: Undefined index: Browser
Filename: default/main_view.php
Line Number: 22 "

1) Is this a known problem?
2) How can I get the errors corrected?
3) Any ideas of how to copy the content on B2 to my B3 in the easiest and quickest(!) way?

Otherwise very pleased with the B3, it's much faster and better performing.
I have a feeling it gets a little more warmer than my B2 but I might be mistaken.

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 20 Oct 2010, 15:10
by essoussi
No one having the same issue?

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 20 Oct 2010, 15:31
by jallee
Which webb reader do you use?
I had something like this on the LVM menu on the B2, but it was self configured..
So if you only use the standard config.. Then do a reinstall.

Regards // Jalle

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 21 Oct 2010, 02:26
by essoussi
[quote="jallee"]Which webb reader do you use?
I had something like this on the LVM menu on the B2, but it was self configured..
So if you only use the standard config.. Then do a reinstall.]

Hi Jalle,
Thanks for replying,
Both Chromium and firefox throws the errors.
I am using it out-of-the-box installation
How do a reinstall?
//Hans

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 21 Oct 2010, 03:24
by jallee
This is for B2 http://download.excito.net/web/BubbaTwo ... ndex.html# and scroll down to reinstalling software. It's the same procedure for B3, use this img for B3. http://update.excito.net/install/latest/b3/
And this is how you make the USB-stick. http://forum.excito.net/viewtopic.php?f=8&t=1347
MVH // Jalle

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 21 Oct 2010, 12:44
by essoussi
Jalle,
Thanks for your rapid replies, but I am baffled by your suggestion of reinstalling the server :shock: , I have made no major changes to it. I thought you were talking about reinstalling the php and/or apache SW.
I can probably live with the annoyance until an update of the bubba-frontend is released given no one else is having these issues.
But it's a bit weird unless it was a installation error at Excito in the first place.

Anyone at Excito that can take a shot? It looks as a programming error in on or two php-files .....
//Hans

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 21 Oct 2010, 13:12
by jallee
essoussi wrote:Jalle,
Thanks for your rapid replies, but I am baffled by your suggestion of reinstalling the server :shock: , I have made no major changes to it. I thought you were talking about reinstalling the php and/or apache SW.
I can probably live with the annoyance until an update of the bubba-frontend is released given no one else is having these issues.
But it's a bit weird unless it was a installation error at Excito in the first place.
I believe that something is wrong whit your box. Therefore, I gave the proposal on reinstalling the server.
Before you have tweaked it to much..
Regards // Jalle

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 23 Oct 2010, 12:09
by essoussi
So, for anyone having the same problems here is how I got rid of the errors.
I have not seen any immediate problems, the gui seems to be working for the activities I perform ...

1) For the first 4 errors :
In the file /usr/share/web-admin/admin/libraries/Browscap_raw.php
Change the following lines in the function _loadCache
$this->_browsers = $browsers;
$this->_userAgents = $userAgents;
$this->_patterns = $patterns;
$this->_properties = $properties;
to
$browsers = $this->_browsers;
$userAgents = $this->_userAgents;
$patterns = $this->_patterns;
$properties = $this->_properties;
2) For the last error
Comment the following in /usr/share/web-admin/admin/views/default/main_view.php
(unless you use a safari browser which I don't :mrgreen: )
<!-- The following 3 lines throws an error in admin web
<?if($browser['Browser'] === 'Safari'):?>
<link rel="stylesheet" type="text/css" href="<?=FORMPREFIX.'/views/'.THEME?>/_css/Safaristyles.css" />
<?endif?>
-->
3) restart the apache server (# /etc/init.d/apache2 restart)

//Hans

Re: B3 support questions: php issues & migration B2 -> B3

Posted: 25 Oct 2010, 10:14
by johannes
essoussi, did you get the problem solved? If not, what in earth did you do to make this happen?

If you can reproduce the problem, an email to [email protected] describing the bug is appreciated, so we can fix it. :)

Thanks,