Incompatibilty Weltpixel pearl with Magento 2.4.3
Error: Call to undefined method WeltPixel\CustomHeader\ViewModel\ConfigProvider::getSearchHelperData() in /vendor/magento/module-search/view/frontend/templates/form.mini.phtml:14
-
Official comment
Hi there. Thanks for reporting this! The current latest product release (1.10.11 from the 7th of July) is not confirmed for compatibility with the newly released Magento 2.4.3 version.
We're currently running tests and fixing any eventual compatibility issues and hope to have a new version out that confirms compatibility in the first half of September.
Comment actions -
edit this file: app/code/WeltPixel/CustomHeader/ViewModel/ConfigProvider.php
and make it like this. Tested and working.
<?php
namespace WeltPixel\CustomHeader\ViewModel;use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Store\Model\ScopeInterface;
use Magento\Search\Helper\Data as SearchHelper;/**
* Class ConfigProvider
* @package WeltPixel\CustomHeader\ViewModel
*/
class ConfigProvider implements ArgumentInterface
{
/**
* Suggestions settings config paths
*/
private const SEARCH_SUGGESTION_ENABLED = 'catalog/search/search_suggestion_enabled';/**
* @var ScopeConfigInterface
*/
private $scopeConfig;/**
* @param ScopeConfigInterface $scopeConfig
*//**
* @var SearchHelper
*/
private $searchHelper;public function __construct(
ScopeConfigInterface $scopeConfig,
SearchHelper $searchHelper
) {
$this->scopeConfig = $scopeConfig;
$this->searchHelper = $searchHelper;
}/**
* @return bool
*/
public function isSuggestionsAllowed()
{
return $this->scopeConfig->isSetFlag(
self::SEARCH_SUGGESTION_ENABLED,
ScopeInterface::SCOPE_STORE
);
}/**
* Retrieve search helper instance for template view
*
* @return SearchHelper
*/
public function getSearchHelperData(): SearchHelper
{
return $this->searchHelper;
}
} -
It is worth noting there is also an issue with pagination displaying when using the current Pearl (1.10.11) with magento 2.4.3.
The pagination does not show within the toolbar making it impossible for visitors to view the catalogue beyond the first page.
Although I appreciate the Weltpixel team repsonding to this thread, you guys must do better than making customers wait a month to update the pearl theme, people are upgrading their magento platform for security reasons, these things cannot wait.
-
Hi everyone! Thanks for your implication in this thread. We're glad to announce that our entire user base should now have access to the 1.10.15 release, which does indeed confirm compatibility with Magento 2.4.3 and 2.3.7-p1. The release should address both issues in this thread, although, if anyone finds any others, feel free to let us know!
In terms of the point raised with regards to the time it takes for us to release a new theme version, I'd like to mention that compatibility with the latest Magento releases is a top priority for us. Over the last few releases, we've had a new theme version out within a week or two of the General Availability date. We'll take, for example, the last two Magento releases and their Pearl Theme counterparts:
Magento 2.4.2 - Released Feb 9, 2021, Pearl Theme 1.10.5, released Feb 12, 2021
Magento 2.4.2-p1 - Released May 11, 2021, Pearl Theme 1.10.9, released May 19, 2021The theme's Change Log can be viewed here: Pearl Theme Change Log
Depending on the workload at hand, as well as other factors such as holiday periods, the release dates can be delayed a bit. This is not, however, a general rule and more of an exception! Moreover, if security is a concern, the official security-only patches can be installed instead of the full release until the Pearl Theme compatibility release is out, which should ensure no changes are made to the Magento core functionalities, thereby allowing you to use the currently released version of the theme while keeping your Magento instance secure.
Hopefully, this helps address the concerns raised above with regards to update frequency and Magento security! We do, however, very much appreciate the feedback and are thrilled to see the community work together to raise and even help address the issues that arise.
Please sign in to leave a comment.
Comments
10 comments