Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000852 [CubeCart v4] Catalogue trivial always 2008-01-20 12:42 2008-02-20 11:01
Reporter kieran View Status public  
Assigned To martin
Priority normal Resolution fixed  
Status closed   Product Version 4.1.1
Summary 0000852: Undefined index and offset on index.php
Description index.php reports a few PHP errors, completely trivial.

Jan 20 12:40:02 fox httpd: PHP Notice: Undefined index: _a in index.php on line 30
Jan 20 12:40:02 fox httpd: PHP Notice: Undefined offset: 1 in index.php on line 34

It can be fixed by changing line 30 on index.php to

if (isset($_GET['_a']) AND $_GET['_a'] == 'search') {
Additional Information
Tags No tags attached.
Browser N/A
Install Method Clean Install
MySQL Version 5.1.x
PHP Version 5.2.x
Server OS Linux/Unix
Skin
Attached Files

- Relationships

-  Notes
User avatar (0001937)
martin (developer)
2008-01-21 09:13

fixed in version control
(0001942)
kieran (reporter)
2008-01-22 12:40

but...

I had to do it like this

if (isset($_GET['_a'])){
        if ($_GET['_a'] == 'search') {

        } else {
<snip>

in another store.

- Issue History
Date Modified Username Field Change
2008-01-20 12:42 kieran New Issue
2008-01-20 12:42 kieran PHP Version => 5.2.x
2008-01-20 12:42 kieran MySQL Version => 5.1.x
2008-01-20 12:42 kieran Install Method => Clean Install
2008-01-20 12:42 kieran Server OS => Linux/Unix
2008-01-20 12:42 kieran Browser => N/A
2008-01-21 09:13 martin Status new => resolved
2008-01-21 09:13 martin Fixed in Version => 4.1.2
2008-01-21 09:13 martin Resolution open => fixed
2008-01-21 09:13 martin Assigned To => martin
2008-01-21 09:13 martin Note Added: 0001937
2008-01-22 12:40 kieran Note Added: 0001942
2008-01-30 16:42 martin Target Version => 4.2.0 beta 1
2008-02-20 11:01 martin Status resolved => closed


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker