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!










share|improve this question






















  • 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















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!










share|improve this question






















  • 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













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!










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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












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");
}





share|improve this answer




























    up vote
    0
    down vote













    Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago






    share|improve this answer




























      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.






      share|improve this answer








      New contributor




      Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.


















        Your Answer






        StackExchange.ifUsing("editor", function () {
        StackExchange.using("externalEditor", function () {
        StackExchange.using("snippets", function () {
        StackExchange.snippets.init();
        });
        });
        }, "code-snippets");

        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "1"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        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

























        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");
        }





        share|improve this answer

























          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");
          }





          share|improve this answer























            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");
            }





            share|improve this answer












            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");
            }






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 11 at 13:56









            Jamie_D

            39428




            39428
























                up vote
                0
                down vote













                Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago






                share|improve this answer

























                  up vote
                  0
                  down vote













                  Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago






                  share|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago






                    share|improve this answer












                    Deleting the /mojo-marketplace-wp-plugin/ directory worked for me a few minutes ago







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 18 at 22:29









                    Kennedy Chimwanda

                    11




                    11






















                        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.






                        share|improve this answer








                        New contributor




                        Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          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.






                          share|improve this answer








                          New contributor




                          Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.




















                            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.






                            share|improve this answer








                            New contributor




                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            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.







                            share|improve this answer








                            New contributor




                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            share|improve this answer



                            share|improve this answer






                            New contributor




                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered 2 days ago









                            Jeff Miller

                            1




                            1




                            New contributor




                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            Jeff Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                Florida Star v. B. J. F.

                                Error while running script in elastic search , gateway timeout

                                Adding quotations to stringified JSON object values