| Index
» Projects
» phpMyEdit
» Forum
» Warning: array_keys() error |
 |
Daf
Joined: 29 Sep 2004
Posts: 3
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
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
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
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
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
|
|
|
|