Mojo WP Plugin issue - cli-init.php error
up vote
1
down vote
favorite
I created a WP website and now locked out with the following error:
Parse error: syntax error, unexpected '.', expecting ')' in [my site]/wp-content/plugins/mojo-marketplace-wp-plugin/inc/cli-init.php on line 25. I have traced this back to my code. Here is what lines 20-35:
protected $commands = array(
array(
'cmd' => 'branding',
'class' => 'EIG_WP_CLI_Branding',
'shortdesc' => 'Control hosting branding and UX.',
'longdesc' => 'Control the admin interface, default modules and UX for an Endurance hosting brand.' .
PHP_EOL . 'Subcommands: update, remove',
),
array(
'cmd' => 'cache',
'class' => 'EIG_WP_CLI_Cache',
'shortdesc' => 'Control all forms of caching.',
'longdesc' => 'Control how browser cache, page cache and browser caching are configured.' .
PHP_EOL . 'Cache Types: browser, page, object (not functional yet)' .
PHP_EOL . 'Subcommands: add, update, status',
),
I am not seeing any issues although I am not super familiar with the code. Any thoughts on what can be going on? I am currently configured to use PHP Edge (7.1) Thanks in advance!
php wordpress
add a comment |
up vote
1
down vote
favorite
I created a WP website and now locked out with the following error:
Parse error: syntax error, unexpected '.', expecting ')' in [my site]/wp-content/plugins/mojo-marketplace-wp-plugin/inc/cli-init.php on line 25. I have traced this back to my code. Here is what lines 20-35:
protected $commands = array(
array(
'cmd' => 'branding',
'class' => 'EIG_WP_CLI_Branding',
'shortdesc' => 'Control hosting branding and UX.',
'longdesc' => 'Control the admin interface, default modules and UX for an Endurance hosting brand.' .
PHP_EOL . 'Subcommands: update, remove',
),
array(
'cmd' => 'cache',
'class' => 'EIG_WP_CLI_Cache',
'shortdesc' => 'Control all forms of caching.',
'longdesc' => 'Control how browser cache, page cache and browser caching are configured.' .
PHP_EOL . 'Cache Types: browser, page, object (not functional yet)' .
PHP_EOL . 'Subcommands: add, update, status',
),
I am not seeing any issues although I am not super familiar with the code. Any thoughts on what can be going on? I am currently configured to use PHP Edge (7.1) Thanks in advance!
php wordpress
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
1
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I created a WP website and now locked out with the following error:
Parse error: syntax error, unexpected '.', expecting ')' in [my site]/wp-content/plugins/mojo-marketplace-wp-plugin/inc/cli-init.php on line 25. I have traced this back to my code. Here is what lines 20-35:
protected $commands = array(
array(
'cmd' => 'branding',
'class' => 'EIG_WP_CLI_Branding',
'shortdesc' => 'Control hosting branding and UX.',
'longdesc' => 'Control the admin interface, default modules and UX for an Endurance hosting brand.' .
PHP_EOL . 'Subcommands: update, remove',
),
array(
'cmd' => 'cache',
'class' => 'EIG_WP_CLI_Cache',
'shortdesc' => 'Control all forms of caching.',
'longdesc' => 'Control how browser cache, page cache and browser caching are configured.' .
PHP_EOL . 'Cache Types: browser, page, object (not functional yet)' .
PHP_EOL . 'Subcommands: add, update, status',
),
I am not seeing any issues although I am not super familiar with the code. Any thoughts on what can be going on? I am currently configured to use PHP Edge (7.1) Thanks in advance!
php wordpress
I created a WP website and now locked out with the following error:
Parse error: syntax error, unexpected '.', expecting ')' in [my site]/wp-content/plugins/mojo-marketplace-wp-plugin/inc/cli-init.php on line 25. I have traced this back to my code. Here is what lines 20-35:
protected $commands = array(
array(
'cmd' => 'branding',
'class' => 'EIG_WP_CLI_Branding',
'shortdesc' => 'Control hosting branding and UX.',
'longdesc' => 'Control the admin interface, default modules and UX for an Endurance hosting brand.' .
PHP_EOL . 'Subcommands: update, remove',
),
array(
'cmd' => 'cache',
'class' => 'EIG_WP_CLI_Cache',
'shortdesc' => 'Control all forms of caching.',
'longdesc' => 'Control how browser cache, page cache and browser caching are configured.' .
PHP_EOL . 'Cache Types: browser, page, object (not functional yet)' .
PHP_EOL . 'Subcommands: add, update, status',
),
I am not seeing any issues although I am not super familiar with the code. Any thoughts on what can be going on? I am currently configured to use PHP Edge (7.1) Thanks in advance!
php wordpress
php wordpress
asked Nov 11 at 5:33
Ryan
61
61
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
1
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04
add a comment |
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
1
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
1
1
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
The constant PHP_EOL is not defined on your system for some reason.
Add the following to your wp-config.php file:
if(!defined("PHP_EOL")) {
define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "rn" : "n");
}
add a comment |
up vote
0
down vote
Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago
add a comment |
up vote
0
down vote
Found 2 of my sites with this same issue this morning. Going into the PHP settings for the hosts, it was parsing with php 5.4. highest I could set it to is 7.1, but that fixed it.
New contributor
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The constant PHP_EOL is not defined on your system for some reason.
Add the following to your wp-config.php file:
if(!defined("PHP_EOL")) {
define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "rn" : "n");
}
add a comment |
up vote
0
down vote
The constant PHP_EOL is not defined on your system for some reason.
Add the following to your wp-config.php file:
if(!defined("PHP_EOL")) {
define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "rn" : "n");
}
add a comment |
up vote
0
down vote
up vote
0
down vote
The constant PHP_EOL is not defined on your system for some reason.
Add the following to your wp-config.php file:
if(!defined("PHP_EOL")) {
define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "rn" : "n");
}
The constant PHP_EOL is not defined on your system for some reason.
Add the following to your wp-config.php file:
if(!defined("PHP_EOL")) {
define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "rn" : "n");
}
answered Nov 11 at 13:56
Jamie_D
39428
39428
add a comment |
add a comment |
up vote
0
down vote
Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago
add a comment |
up vote
0
down vote
Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago
add a comment |
up vote
0
down vote
up vote
0
down vote
Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago
Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago
answered Nov 18 at 22:29
Kennedy Chimwanda
11
11
add a comment |
add a comment |
up vote
0
down vote
Found 2 of my sites with this same issue this morning. Going into the PHP settings for the hosts, it was parsing with php 5.4. highest I could set it to is 7.1, but that fixed it.
New contributor
add a comment |
up vote
0
down vote
Found 2 of my sites with this same issue this morning. Going into the PHP settings for the hosts, it was parsing with php 5.4. highest I could set it to is 7.1, but that fixed it.
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
Found 2 of my sites with this same issue this morning. Going into the PHP settings for the hosts, it was parsing with php 5.4. highest I could set it to is 7.1, but that fixed it.
New contributor
Found 2 of my sites with this same issue this morning. Going into the PHP settings for the hosts, it was parsing with php 5.4. highest I could set it to is 7.1, but that fixed it.
New contributor
New contributor
answered 2 days ago
Jeff Miller
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246120%2fmojo-wp-plugin-issue-cli-init-php-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What server environment are you running (Linux/WIndows)?
– Jamie_D
Nov 11 at 13:46
The constant PHP_EOL is not defined on your system for some reason.
– Jamie_D
Nov 11 at 13:51
Thanks for your response. I am running windows which I assume using "WIN" is correct. I have done some searching around and I never see "PHP_EOL" being referenced in the "wp-config.php" file so I am wondering what is causing me to have the need to do this. Either way, I have added that code to the wp-config.php file without much luck.
– Ryan
Nov 11 at 14:35
Is this error occuring on your admin dashboard or the front end of the site, or both?
– Jamie_D
Nov 11 at 15:04
1
Update: this was being caused by the mojo-marketplace.php file which I don't have a use for so I disabled that and it cleared up my issue.
– Ryan
Nov 11 at 15:04