Open

wp-cli with custom core folder and config names.

I try change wopdpress folder name to core and wp-content to content, it's works perfectly from browser, but don't works with wp cli.

public_html content: core / content / [login to view URL] / [login to view URL] /

[login to view URL]

...

define( 'WP_HOME', '[login to view URL]' );

define('WP_CONTENT_DIR', '/content');

define('WP_CONTENT_URL', '[login to view URL]');

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

require_once(ABSPATH . '[login to view URL]');

wp debug:

vagrant@wpconf:/www/wpconf$ wp config path --debug

Debug (bootstrap): Using default global config: /home/vagrant/.wp-cli/[login to view URL] (0.169s)

Debug (bootstrap): No project config found (0.171s)

Debug (bootstrap): argv: /usr/local/bin/wp config path --debug (0.171s)

Debug (bootstrap): ABSPATH defined: /www/wpconf/public_html/core/ (0.172s)

Debug (bootstrap): Running command: config path (0.173s)

/www/wpconf/public_html/core/[login to view URL]

core/[login to view URL]:

<?php

$config = '[login to view URL]';

$filepath = dirname(__DIR__) . '/';

echo $filepath . '/' . $config ;

if( file_exists( $filepath . '/' . $config ) ){

define( 'FILEPATH', $filepath );

require_once( FILEPATH . '/' . $config);

}else{

die('not found');

}

require_once(ABSPATH . '[login to view URL]');

but core install:

/www/wpconf$ wp core install

PHP Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /www/wpconf/public_html/core/wp-includes/[login to view URL]) in /www/wpconf/public_html/core/wp-includes/[login to view URL] on line 21

config get also doesn't works: vagrant@wpconf:/www/wpconf$ wp config get

PHP Warning: Cannot modify header information - headers already sent by (output started at phar:///usr/local/bin/wp/vendor/wp-cli/config-command/src/[login to view URL](345) : eval()'d code:3) in /www/wpconf/public_html/core/wp-includes/[login to view URL] on line 1210

Need to fix it

Skills: PHP, Software Architecture, Web Hosting, WordPress

See more: wp cli yml, wp cli config, wp-cli, where can i find domestic programmers that don t cost too much, i want to write a book but don t know where to start, i need a data entry job online where i don t have to pay to register, i need 7 pages to be converted from psd to html no need to be responsive i need it to be done in 1 days please share your skype , i need 7 pages to be converted from psd to html (no need to be responsive) i need it to be done in 1 days please share your skyp, hi i am looking for someone to craft our pdf documents in word we will send you 200 k version of documents hi i am looking for s, wp thesis custom layout pages, wp remix custom headers, wp ecommerce custom gateway, wp commerce custom theme, custom core commerce sites, custom pocket folder enclosure

About the Employer:
( 0 reviews ) Finland

Project ID: #17352311

5 freelancers are bidding on average €30 for this job

ShrineWeb

I think I know solution to this problem. I ran across this same problem long ago and I solved it. Is it urgent?

€50 EUR in 7 days
(33 Reviews)
5.3
JakimOFF

Hello, I'm an expert in this kind of tasks, so I'm sure I can fix this very quickly. All I need is an ftp access to the site and I can start working on it right away. Best regards, Vitaliy Yakymenko.

€25 EUR in 1 day
(29 Reviews)
5.0
appdesign786

Hello, hope you are having a good day. I read your description, I am more than ready to work on this. I can design & develop an elegant & eye-catching site for your business that will professionally reflect your agen More

€23 EUR in 1 day
(8 Reviews)
4.6
sitwebsolution

Hello Sir/Madam, I have read your project details and i have a proposal for you.I would like to tell you that i have some developers and designers who are well skilled and experience More

€22 EUR in 1 day
(28 Reviews)
5.0
sachin963

Dear Employer, Hope you are doing well!! Thanks for the wonderful job opprutunity!! I understand your job post and 100 % confident that I can wp-cli with custom core folder and config names. I a More

€30 EUR in 1 day
(4 Reviews)
2.7