Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Warning: array_keys() error

phpMyEdit General     Warning: array_keys() error
Post new topic   Reply to topic    
 
Daf     Joined: 29 Sep 2004   Posts: 3  
Post Posted: 2004-09-29 09:18
Back to top  Reply with quote     

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     Joined: 29 Sep 2004   Posts: 3  
Post Posted: 2004-10-05 11:29
Back to top  Reply with quote     

Dead forum? Or did I not supply enough info?

Thanks
Daf

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-10-05 22:30
Back to top  Reply with quote     

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     Joined: 29 Sep 2004   Posts: 3  
Post Posted: 2004-10-06 06:10
Back to top  Reply with quote     

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     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-10-07 17:09
Back to top  Reply with quote     

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)

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy