Where to find the wp-config.php in Database local adminer

I need to turn on Offline Mode by adding define( ‘JETPACK_DEV_DEBUG’, true ); to mywp-config. php file but I can’t find it

  • Where can I find the file?

I just click the Open Adminer in the Local in the desktop app and it redirects to the Database local adminer

System Details

  • I’m using version 6.1.0+5452

  • What Operating System (OS) and OS version is being used?
    -Windows 10

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:

@angel, Adminer is for database management. You’re looking to edit a PHP file.

From the list of sites on the left in Local, right click on the site in question and select “Show Folder”. This will open File Explorer, with the folder for the site in question highlighted in the right pane. Open that highlighted folder (the site’s name), then the ‘app’ folder, then the ‘public’ folder. You should now be seeing the wp-config.php file listed. Open and edit that file in your editor of choice.

Nutshell: the wp-config.php file for a site named “abc”, will typically be in the “C:\Users[your Windows user name]\Local Sites/abc/app/public” directory.

1 Like

Thank you so much for the help @burt I found the wp-config.php file

I added the **define( ‘JETPACK_DEV_DEBUG’, true ); using notepad https://prnt.sc/1m4gyzb but the Jetpack https://prnt.sc/1m4g5dv is still on Offline mode is there a way that I can correct this? Thank you

@angel, I don’t use Jetpack, so don’t have direct experience with what you’re doing here.

That said, this link (Offline Mode) includes this text:

You can turn on Offline Mode by adding define( 'JETPACK_DEV_DEBUG', true ); to your wp-config.php file.

So by adding that line, you’re doubling down in turning on offline mode, as it’s already enabled by detecting the hostname in your URL. Perhaps you should be setting it to false instead.

There also appears to be a filter that you can use to achieve the same, as covered here: How to get rid of Jetpack development mode | WordPress.org

Hope that helps!

Hi @burt I already tried changing it to false but it still doesn’t work. I don’t understand the instruction " You can also enable Jetpack’s Offline mode through a plugin, thanks to the jetpack_development_mode filter:

1 add_filter( 'jetpack_offline_mode', '__return_true' );"

about the jetpack filter, where should I add it?

Tried adding it in functions.php but still says Your site host “woolylux.local” is on a private network. Jetpack can only connect to public sites.

Thank you so much.

Yes, you would place it within your theme’s functions.php file typically – assuming that the “1” at the start of the line in your message, and the double quotes at the end are errant, as they shouldn’t be included.

That said, I’m not a Jetpack user, so can’t speak to what you’re trying to ultimately make work here. The one thing that I can say is that Jetpack’s servers will absolutely not be able to connect to a locally hosted site – a public server simply can’t find or reach a host named woolylux.local. Your site will be able to initiate connections to a public server (e.g. the Jetpack servers), but not the other way.

Perhaps if you outline what you’re trying to have work with Jetpack that isn’t currently, someone else with Jetpack experience might be able to chime in to help.

1 Like

thank you for the help @burt

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.