spark22 Posted August 20, 2021 Share Posted August 20, 2021 since one mont i get this error when i activate the filter module Notice: Undefined index: url_name in /var/www/vhosts/ivoirshop.ci/httpdocs/src/Core/Product/Search/Filter.php on line 99 filter code here, iI use prestashop 1.7 version <?php /** * 2007-2018 PrestaShop. * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ namespace PrestaShop\PrestaShop\Core\Product\Search; class Filter { private $label; /** * Internal type, used by query logic. */ private $type; /** * Whether or not the filter is used in the query. */ private $active; /** * Whether or not the filter is displayed. */ private $displayed = true; private $properties = []; private $magnitude; private $value; private $nextEncodedFacets; public function toArray() { return [ 'label' => $this->label, 'type' => $this->type, 'active' => $this->active, 'displayed' => $this->displayed, 'properties' => $this->properties, 'magnitude' => $this->magnitude, 'value' => $this->value, 'nextEncodedFacets' => $this->nextEncodedFacets, ]; } public function setLabel($label) { $this->label = $label; return $this; } public function getLabel() { return $this->label; } public function setType($type) { $this->type = $type; return $this; } public function getType() { return $this->type; } public function setProperty($name, $value) { $this->properties[$name] = $value; return $this; } public function getProperty($name) { return $this->properties[$name]; } public function setValue($value) { $this->value = $value; return $this; } public function getValue() { return $this->value; } public function setMagnitude($magnitude) { $this->magnitude = (int) $magnitude; return $this; } public function getMagnitude() { return $this->magnitude; } public function setActive($active = true) { $this->active = $active; return $this; } public function isActive() { return $this->active; } public function setDisplayed($displayed = true) { $this->displayed = $displayed; return $this; } public function isDisplayed() { return $this->displayed; } public function setNextEncodedFacets($nextEncodedFacets) { $this->nextEncodedFacets = $nextEncodedFacets; return $this; } public function getNextEncodedFacets() { return $this->nextEncodedFacets; } } Link to comment Share on other sites More sharing options...
endriu107 Posted August 20, 2021 Share Posted August 20, 2021 This is not error it's just notice, if you turn off debug mode you sholdn't see that. Link to comment Share on other sites More sharing options...
Shabab Posted August 20, 2021 Share Posted August 20, 2021 Hi, Can you send us the file here ? Thanks Link to comment Share on other sites More sharing options...
spark22 Posted August 20, 2021 Author Share Posted August 20, 2021 5 hours ago, Shabab said: Hi, Can you send us the file here ? Thanks I attached the code, thanks alot Code.txt Link to comment Share on other sites More sharing options...
spark22 Posted August 20, 2021 Author Share Posted August 20, 2021 6 hours ago, endriu107 said: This is not error it's just notice, if you turn off debug mode you sholdn't see that. the debug mode is already off, I don't think that is the problem Link to comment Share on other sites More sharing options...
Shabab Posted August 20, 2021 Share Posted August 20, 2021 31 minutes ago, spark22 said: I attached the code, thanks alot Code.txt 3.78 kB · 0 downloads There is no variable with this name "url_name" in your file. Link to comment Share on other sites More sharing options...
spark22 Posted August 20, 2021 Author Share Posted August 20, 2021 6 hours ago, Shabab said: There is no variable with this name "url_name" in your file. [No no ] I attached again the files filter.html filter.php Link to comment Share on other sites More sharing options...
spark22 Posted August 20, 2021 Author Share Posted August 20, 2021 6 hours ago, Shabab said: There is no variable with this name "url_name" in your file. No I don't have Url_name in my files [ do you found the error ? ] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now