Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Warning: array_keys() error

phpMyEdit General     Warning: array_keys() error
Odoslať novú tému   Odpovedať na tému    
 
Daf     Založený: 29.09.2004   Príspevky: 3  
Príspevok Zaslal: 2004-09-29 09:18
Návrat hore  Odpovedať s citátom     

Hi,

After deleting an entry, or sometimes refreshing the page I get this error:

Warning: array_keys(): The first argument should be an array in /home/smoaky/public_html/winners/phpMyEdit.class.php on line 2476.

Any ideas what the problem might be?

Here is the system info:
========================================
Apache version 1.3.31 (Unix)
PHP version 4.3.8
MySQL version 4.0.20-standard


Thanks!
Daf

 
Daf     Založený: 29.09.2004   Príspevky: 3  
Príspevok Zaslal: 2004-10-05 11:29
Návrat hore  Odpovedať s citátom     

Dead forum? Or did I not supply enough info?

Thanks
Daf

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-10-05 22:30
Návrat hore  Odpovedať s citátom     

i'm not sure which version of pme you use. but that warning is probably pointing to
$changed = array_keys($oldvals);

with information provided i have no clue what can be wrong.

try to upgrade to cvs version.
if that doesn't help, a lot more information needed (enough to reproduce this warning on my server) to properly solve.
or a workaround with deleting code producing warning (if you don't need it - triggers and mail notification)

 
Daf     Založený: 29.09.2004   Príspevky: 3  
Príspevok Zaslal: 2004-10-06 06:10
Návrat hore  Odpovedať s citátom     

Thanks for the reply, Michal.

I'm using version 5.4.

I'm not sure I can provide the info needed for you to recreate the problem without actually sending you the script and database access.

I made very little changes to the setup file as I know very little about php or MySQL. The script works well - just have that error show up after deletions. Even with the error the command (delete) works so I think I will learn to live with it. :)

Thanks
Daf

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-10-07 17:09
Návrat hore  Odpovedať s citátom     

as a quick workaround, i would try removing the line. maybe it's not important (if it's pointing to $changed = array_keys...). and test if it works. (if you don't use triggers or mail notification)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov