Kapalı

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

Beceriler: PHP, Yazılım Mimarisi, Web Hosting, WordPress

Daha fazlasını gör: wp cli yml, wp cli config, I will transfer your website from old server to new server, wp-cli, i want to offer my translation services and get paid, i need a web developer for my server i will pay, i have to register on freelancing websites to get projects, where can i work at 15, 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

İşveren Hakkında:
( 0 değerlendirme ) Finland

Proje NO: #17352311

Bu iş için 5 freelancer ortalamada €30 teklif veriyor

ShrineWeb

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

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(35 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(29 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(8 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(28 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% EUR
(5 Değerlendirme)
3.3