A little help please with wordpress php

Discussion in 'PHP' started by flippa, Nov 29, 2009.

Thread Status:
Not open for further replies.
  1. #1
    Hi

    And thankyou for viewing this post,

    i have not change any thing on my site,the front page works just great,but when i try to access the wp-admin area i get this:

    Warning: Invalid argument supplied for foreach() in /home/alans123/public_html/script-store.info/wp-admin/menu.php on line 129

    Warning: Invalid argument supplied for foreach() in /home/alans123/public_html/script-store.info/wp-admin/menu.php on line 172

    Fatal error: [] operator not supported for strings in /home/alans123/public_html/script-store.info/wp-admin/includes/plugin.php on line 603


    This is whats on the line above:

    line 129 foreach ($menu as $menu_page) {

    line 172 foreach ( $menu as $id => $data ) {

    plugin.php line 603 $menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );


    If any one has got any ideas,i would be greatful

    Thanks
     
    flippa, Nov 29, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds like you've had a problem with the install/upgrade process. Copy your wp-content folder, then delete everything and upload WP again. Set your details in wp-config.php to the database details you have now (or just don't delete the current wp-config.php file). then copy back your content for the wp-content folder
     
    JAY6390, Nov 29, 2009 IP
  3. flippa

    flippa Guest

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi

    Thanks for th responce,i will not what you say,and let you know how it go's

    thanks again
     
    flippa, Nov 29, 2009 IP
Thread Status:
Not open for further replies.