Server 1.2.0rc1 - php errors on maintenance task

Bug #624663 reported by Hubert Haneke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Low
Alex Harrington

Bug Description

http://www.xxxxxx.de/xibo/maintenance.php?key=changeme

Notice: Undefined variable: argv in D:\htdocs\variantimage\xibo\maintenance.php on line 119
E-Mail Benachrichtigungen
..
Ausführliche Logs

Warning: Missing argument 2 for Kit::ValidateParam(), called in D:\htdocs\variantimage\xibo\maintenance.php on line 200 and defined in D:\xampp\htdocs\variantimage\xibo\lib\app\kit.class.php on line 201

Notice: Undefined variable: type in D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 210

Notice: Undefined variable: type in D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 222

Notice: Undefined variable: type in D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 234

Notice: Undefined variable: type in D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 238

Notice: Undefined variable: type in D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 251

and more like this ...

Related branches

Revision history for this message
Alex Harrington (alexharrington) wrote : Re: [Bug 624663] [NEW] Server 1.2.0rc1 - php errors on maintenance task

What os? What webserver? What version of PHP?

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Hubert Haneke (error3) wrote : Re: [Bug 624663] [NEW] Server 1.2.0rc1 - php errors on maintenance task

Am Do, 26.08.2010, 16:40, schrieb Alex Harrington:
> What os? What webserver? What version of PHP?

Windows NT BERLIN 5.2 build 3790 (Windows Server 2003 Enterprise Edition
Service Pack 2) i586

Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l
mod_autoindex_color PHP/5.3.1

PHP Version 5.3.1

>
> This email carries a disclaimer, a copy of which may be read at
> http://learning.longhill.org.uk/disclaimer
>
> --
> Server 1.2.0rc1 - php errors on maintenance task
> https://bugs.launchpad.net/bugs/624663
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Xibo Open Source Digital Signage: New
>
> Bug description:
> http://www.xxxxxx.de/xibo/maintenance.php?key=changeme
>
>
> Notice: Undefined variable: argv in
> D:\htdocs\variantimage\xibo\maintenance.php on line 119
> E-Mail Benachrichtigungen
> ..
> Ausführliche Logs
>
> Warning: Missing argument 2 for Kit::ValidateParam(), called in
> D:\htdocs\variantimage\xibo\maintenance.php on line 200 and defined in
> D:\xampp\htdocs\variantimage\xibo\lib\app\kit.class.php on line 201
>
> Notice: Undefined variable: type in
> D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 210
>
> Notice: Undefined variable: type in
> D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 222
>
> Notice: Undefined variable: type in
> D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 234
>
> Notice: Undefined variable: type in
> D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 238
>
> Notice: Undefined variable: type in
> D:\htdocs\variantimage\xibo\lib\app\kit.class.php on line 251
>
> and more like this ...
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/xibo/+bug/624663/+subscribe
>

Revision history for this message
Hubert Haneke (error3) wrote :

Windows NT BERLIN 5.2 build 3790 (Windows Server 2003 Enterprise Edition Service Pack 2) i586

Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1

PHP Version 5.3.1

Revision history for this message
Alex Harrington (alexharrington) wrote :

* "Notice: Undefined variable: argv in D:\htdocs\variantimage\xibo\maintenance.php on line 119"

Looks like PHP on windows doesn't setup the argv variable when called as a CGI script. That's easy enough to fix.

* "Warning: Missing argument 2 for Kit::ValidateParam(), called in D:\htdocs\variantimage\xibo\maintenance.php on line 200 and defined in D:\xampp\htdocs\variantimage\xibo\lib\app\kit.class.php on line 201"

Now that's baffling. There is no call to ValidateParam() on line 200 of maintenance.php. Have you modified that file at all?

Alex

Revision history for this message
Alex Harrington (alexharrington) wrote :

Hi Hubert

http://bazaar.launchpad.net/~alexharrington/xibo/624663/annotate/head%3A/server/maintenance.php

Please go to that page and download the updated version of maintenance.php using the Download File link and replace the version in your current install.

Please can you let me know if that solves the problem for you.

Alex

Changed in xibo:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Alex Harrington (alexharrington)
milestone: none → 1.2.0-rc2
Revision history for this message
Hubert Haneke (error3) wrote :

Size of maintenance_original.php: 8,01 KB (8.206 Bytes)
Size of maintenance_download_today.php: 119 KB (122.483 Bytes)

But I have nothing modified.

Revision history for this message
Alex Harrington (alexharrington) wrote :

Thinking about it I made some modifications for 1.2.0-rc2 to change the way alerts work. That will explain the change in size.

It may also mean that the file you downloaded won't work in your installation as it relies on database settings that won't be present. You can still try though.

Alex

Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.