Error: Strict Notice: Only variables should be passed by referenceMagento Generates System.log as Only variables should be passed by referenceError help neededError 500 for product pageError processing request => Magento admin page => Illegal scheme supplied, only alphanumeric characters are permittedSystem log giving Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_ImageMagento Error: “Illegal scheme supplied, only alphanumeric characters are permitted”Magento error logHow to fix the error “Notice: Undefined variable: storeId in /catalog/product/special.phtml”How to solve Script timeout passed errorMagento 1.9.3.9 MySQL Database error

Is there a reason why I should not use the HaveIBeenPwned API to warn users about exposed passwords?

How much were the LMs maneuvered to their landing points?

How can religions be structured in ways that allow inter-faith councils to work?

Are there any examples of technologies have been lost over time?

TSA asking to see cell phone

The best place for swimming in Arctic Ocean

What to do when you reach a conclusion and find out later on that someone else already did?

How many oliphaunts died in all of the Lord of the Rings battles?

How to store my pliers and wire cutters on my desk?

Examples of simultaneous independent breakthroughs

Converting 8V AC to 8V DC - bridge rectifier gets very hot while idling

Why force the nose of 737 Max down in the first place?

Why can't my huge trees be chopped down?

Make AES more secure by randomising the blocks in an encrypted file

Can you type a tilde on the key under ESC on a European ISO keyboard set to US

Suggestions for protecting jeans from saddle clamp bolt

Please explain joy and/or the Kimatthiyasutta

Is a fighting a fallen friend with the help of a redeemed villain story too much for one book

How could Nomadic scholars effectively memorize libraries worth of information

Character is called by their first initial. How do I write it?

Isolated audio without a transformer

How to apply the changes to my `.zshrc` file after edit?

What is the use of で in this sentence?

Why isn't there a ";" after "do" in sh loops?



Error: Strict Notice: Only variables should be passed by reference


Magento Generates System.log as Only variables should be passed by referenceError help neededError 500 for product pageError processing request => Magento admin page => Illegal scheme supplied, only alphanumeric characters are permittedSystem log giving Recoverable Error: Argument 1 passed to Mage_Catalog_Helper_ImageMagento Error: “Illegal scheme supplied, only alphanumeric characters are permitted”Magento error logHow to fix the error “Notice: Undefined variable: storeId in /catalog/product/special.phtml”How to solve Script timeout passed errorMagento 1.9.3.9 MySQL Database error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















My log file show error:



2016-02-19T04:20:31+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/..../controllers/IndexController.php on line 17

2016-02-19T04:20:31+00:00 ERR (3): Warning: explode() expects parameter 2 to be string, array given in /home/.../controllers/IndexController.php on line 18


$path=explode('index/index/path/',array_shift(explode('?',@$_SERVER['REQUEST_URI'])));<br>
$ex = explode('/id/', $path);


Please tell me how can fix!










share|improve this question






























    0















    My log file show error:



    2016-02-19T04:20:31+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/..../controllers/IndexController.php on line 17

    2016-02-19T04:20:31+00:00 ERR (3): Warning: explode() expects parameter 2 to be string, array given in /home/.../controllers/IndexController.php on line 18


    $path=explode('index/index/path/',array_shift(explode('?',@$_SERVER['REQUEST_URI'])));<br>
    $ex = explode('/id/', $path);


    Please tell me how can fix!










    share|improve this question


























      0












      0








      0








      My log file show error:



      2016-02-19T04:20:31+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/..../controllers/IndexController.php on line 17

      2016-02-19T04:20:31+00:00 ERR (3): Warning: explode() expects parameter 2 to be string, array given in /home/.../controllers/IndexController.php on line 18


      $path=explode('index/index/path/',array_shift(explode('?',@$_SERVER['REQUEST_URI'])));<br>
      $ex = explode('/id/', $path);


      Please tell me how can fix!










      share|improve this question
















      My log file show error:



      2016-02-19T04:20:31+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/..../controllers/IndexController.php on line 17

      2016-02-19T04:20:31+00:00 ERR (3): Warning: explode() expects parameter 2 to be string, array given in /home/.../controllers/IndexController.php on line 18


      $path=explode('index/index/path/',array_shift(explode('?',@$_SERVER['REQUEST_URI'])));<br>
      $ex = explode('/id/', $path);


      Please tell me how can fix!







      magento-1.9 php error log ce-1.9.2.2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 19 '16 at 8:50









      Raphael at Digital Pianism

      56.1k22 gold badges132 silver badges295 bronze badges




      56.1k22 gold badges132 silver badges295 bronze badges










      asked Feb 19 '16 at 4:38









      ShadowShadow

      436 bronze badges




      436 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          you also should explain what you want to achieve actually, but I can at least try to resolve your errors:



          you are not allowed to pass the explode result directly to the array_shift function. This is because array_shift manipulates the array and using the result of explode, there is no variable where this change can be saved in.



          $requestUri = explode('?', $_SERVER['REQUEST_URI']);
          $path=explode('index/index/path/',array_shift($requestUri);


          The second error is simply that $path is an array, but explode needs a string. To solve this I would need to know what you are trying to do here?






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fmagento.stackexchange.com%2fquestions%2f102447%2ferror-strict-notice-only-variables-should-be-passed-by-reference%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            you also should explain what you want to achieve actually, but I can at least try to resolve your errors:



            you are not allowed to pass the explode result directly to the array_shift function. This is because array_shift manipulates the array and using the result of explode, there is no variable where this change can be saved in.



            $requestUri = explode('?', $_SERVER['REQUEST_URI']);
            $path=explode('index/index/path/',array_shift($requestUri);


            The second error is simply that $path is an array, but explode needs a string. To solve this I would need to know what you are trying to do here?






            share|improve this answer



























              0














              you also should explain what you want to achieve actually, but I can at least try to resolve your errors:



              you are not allowed to pass the explode result directly to the array_shift function. This is because array_shift manipulates the array and using the result of explode, there is no variable where this change can be saved in.



              $requestUri = explode('?', $_SERVER['REQUEST_URI']);
              $path=explode('index/index/path/',array_shift($requestUri);


              The second error is simply that $path is an array, but explode needs a string. To solve this I would need to know what you are trying to do here?






              share|improve this answer

























                0












                0








                0







                you also should explain what you want to achieve actually, but I can at least try to resolve your errors:



                you are not allowed to pass the explode result directly to the array_shift function. This is because array_shift manipulates the array and using the result of explode, there is no variable where this change can be saved in.



                $requestUri = explode('?', $_SERVER['REQUEST_URI']);
                $path=explode('index/index/path/',array_shift($requestUri);


                The second error is simply that $path is an array, but explode needs a string. To solve this I would need to know what you are trying to do here?






                share|improve this answer













                you also should explain what you want to achieve actually, but I can at least try to resolve your errors:



                you are not allowed to pass the explode result directly to the array_shift function. This is because array_shift manipulates the array and using the result of explode, there is no variable where this change can be saved in.



                $requestUri = explode('?', $_SERVER['REQUEST_URI']);
                $path=explode('index/index/path/',array_shift($requestUri);


                The second error is simply that $path is an array, but explode needs a string. To solve this I would need to know what you are trying to do here?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 19 '16 at 4:55









                David VerholenDavid Verholen

                5,5561 gold badge12 silver badges31 bronze badges




                5,5561 gold badge12 silver badges31 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • 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%2fmagento.stackexchange.com%2fquestions%2f102447%2ferror-strict-notice-only-variables-should-be-passed-by-reference%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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림