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;
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
add a comment |
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
add a comment |
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
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
magento-1.9 php error log ce-1.9.2.2
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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?
add a comment |
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
);
);
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%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
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?
add a comment |
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?
add a comment |
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?
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?
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
add a comment |
add a comment |
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.
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%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
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