WordPress.org

Ready to get started?Download WordPress

Forums

Nav-menus.php claims no wp-config.php file on NearlyFreeSpeech (6 posts)

  1. Luke Rumley
    Member
    Posted 4 years ago #

    On NaerlyFreeSpeech only (which makes me think permissions / PHP security from past issues), after upgrading to WordPress 3.0, when I navigated to Appearance -> Menus (nav-menus.php), I get this odd error:

    There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

    It is odd because I do have a wp-config.php file and everything else on the site works, admin and front-end.

  2. Andrew Nacin
    Lead Developer
    Posted 4 years ago #

    Could you try something for me? The first actual line of code of wp-admin/nav-menus.php is:

    require_once( 'admin.php' );

    Can you change that to:

    require_once( './admin.php' );

    Even if this works, can you provide your include_path setting? Also your PHP version and OS.

  3. Luke Rumley
    Member
    Posted 4 years ago #

    That didn't work, unfortunately. I am using NearlyFreeSpeech.net hosting, PHP Version 4.4.9, OS: FreeBSD c14 7.3-RELEASE FreeBSD 7.3-RELEASE #12 r205715M, and my include_path is ".:/nfsn/apps/php/lib/php/".

    That said, I just went to my host, and upgraded my server to PHP 5.2.12, and it didn't work. Set the file back to "require_once( 'admin.php' );" and it worked! Thanks for pointing me in the right direction!

  4. Andrew Nacin
    Lead Developer
    Posted 4 years ago #

    We'll be changing it to ./admin.php in 3.1 (as it should be that). I imagine it'll work -- think you could try again?

  5. Luke Rumley
    Member
    Posted 4 years ago #

    OK, tried it both ways and it worked. Bah. :)

    Seems my issue was mostly to do with PHP versions. Thanks!

  6. Andrew Nacin
    Lead Developer
    Posted 4 years ago #

    Thanks for testing that out! ./admin.php is faster hence why we opt for that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.