-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better config for admin RSS links #4243
Conversation
) { | ||
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS')); | ||
if (Mage::helper('sales')->isModuleOutputEnabled('Mage_Rss')) { | ||
$filterString = $this->getParam($this->getVarNameFilter()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be null and it triggers a null parameter warning in prepareFilterString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sreichel Can you fix:
[type] => 8192:E_DEPRECATED
[message] => base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated
[file] => app\code\core\Mage\Adminhtml\Helper\Data.php
[line] => 108
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. PR comming. How to reproduce?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go to the sales->order backend page...
$filter = Mage::helper('adminhtml')->prepareFilterString($filterString); | ||
$storeId = array_key_exists('store_id', $filter) ? $filter['store_id'] : null; | ||
|
||
if (Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($storeId && Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$storeId is used one line later and default view (when i remember right?)
if (Mage::helper('rss')->isRssAdminOrderNewEnabled($storeId)) {
$slug = $storeId ? '/store/' . $storeId : '';
$this->addRssList('rss/order/new' . $slug, Mage::helper('sales')->__('New Order RSS'));
}
… string is deprecated - OpenMage#4243 (comment)
* PHP8: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated - #4243 (comment) * refactor * refactor * refactor * refactor [skip ci] * Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
* PHP8: base64_decode(): Passing null to parameter MahoCommerce#1 ($string) of type string is deprecated - OpenMage/magento-lts#4243 (comment) * refactor * refactor * refactor * refactor [skip ci] * Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
* PHP8: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated - OpenMage/magento-lts#4243 (comment) * refactor * refactor * refactor * refactor [skip ci] * Update app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
Description (*)
Description here: #2760
Related Pull Requests