1
Shine
Notice within userinfo.php
  • 2004/12/15 18:51

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


When I look within my userinfo (view account) all of a sudden I get two strange notice messages:

Notice [PHP]: Array to string conversion in file class/criteria.php line 345
Notice [PHP]: Array to string conversion in file class/criteria.php line 345


Can somebody inform/help me out in how this can happen and what they mean?
Thanks in advance.

Grtz., Shine

2
Shine
Re: Notice within userinfo.php when admin views his account
  • 2004/12/15 21:31

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


I couldn't find the 'edit topic' button....(where is it?), so I'll reply myself to add something:

I've forgot to mention that the above mentioned notices only appear when I, the admin, is looking at my own account. Other registered users don't get these notice messages.
Something weard is going on. Anybody got a clue and offcourse most of all, how to get rid of these?

Grtz., Shine

3
Shine
Re: Notice within userinfo.php when admin views account
  • 2004/12/20 14:09

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


I'll bump this question because it is getting weirder and weirder......I really hope someone can help me out on this. It's much appreciated!

I thought I'd solve the above problem by creating another admin account. In the beginning there are no notices, but as soon as the admin or whatever other webmaster with the same given adminrights adds something/installs a module and so on he/she also gets the same messages within the view account:
Notice [PHP]: Array to string conversion in file class/criteria.php line 345
Notice [PHP]: Array to string conversion in file class/criteria.php line 345
Notice [PHP]: Array to string conversion in file class/criteria.php line 345
Notice [PHP]: Array to string conversion in file class/criteria.php line 345
Notice [PHP]: Array to string conversion in file class/criteria.php line 345

The count of these same notices are different. Some admins have 3 other 2 and the main admin 5. It looks as if the list is getting longer after each 'doing something'.

No taking a look at those lines within the file: criteria.php
/**
     * Make a sql condition string
     * 
     * @return  string
     **/
    
function render() {
        if ( 
is_numeric($this->value) || strtoupper($this->operator) == 'IN') {
            
$value $this->value;
        } else {
            [
b]if ( '' === ($value trim($this->value)) ) {[/b]
                return 
'';
            }
            if ( (
substr($value01) != '`') && (substr($value, -1) != '`') ) {
                
$value "'$value'";
            }
        }
        
$clause = (!empty($this->prefix) ? "{$this->prefix}." "") . $this->column;
        if ( !empty(
$this->function) ) {
            
$clause sprintf($this->function$clause);
        }
        
$clause .= {$this->operator} $value";
        return 
$clause;
    }


I don't understand it, don't know what this all means and what should or can be done to solve it.
The only thing I do know is that within a clean XOOPS install and although the admin adds/installs something these msgs don't appear.


Grtz., Shine

Login

Who's Online

284 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 284


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits