Closed

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

Compétences : PHP, Architecture Logicielle, Hébergement Web, WordPress

en voir plus : I will transfer your website from old server to new server, wp-cli, i want to offer my translation services and get paid, wp cli yml, wp cli config, php, wordpress, 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, wp remix custom headers, wp ecommerce custom gateway, wp commerce custom theme

Concernant l'employeur :
( 0 commentaires ) Finland

Nº du projet : #17352311

5 freelance font une offre moyenne de €30 pour ce travail

ShrineWeb

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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 7 jours
(35 Commentaires)
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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(29 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(8 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(28 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(5 Commentaires)
3.3