Pearl Theme doesn't work with latest Magento 2.3.4 with cache enabled

Comments

10 comments

  • Official comment
    Avatar
    Support

    Hey guys! Nice to see you finding solutions together. 

    This issue has now been fixed. The fix was introduced in version 1.9.4 of the theme, so if you're experiencing this error, make sure you're using the latest version. The latest version currently stands at 1.9.5, and you can check out everything that was introduced/fixed in our Change Log article here: https://support.weltpixel.com/hc/en-us/articles/115002963573-WeltPixel-Product-Updates-Change-Log-and-New-Releases

    Comment actions Permalink
  • Avatar
    contact

    Hello
    It's the same with apache 2.4

    Fatal error: Uncaught Error: Call to undefined method WeltPixel\NavigationLinks\Plugin\Block\Topmenu::afterGetCacheKeyInfo() in /var/www/html/xxx/vendor/magento/framework/Interception/Interceptor.php:146 Stack trace: #0 /var/www/html/xxx/vendor/magento/framework/Interception/Interceptor.php(153):
    WeltPixel\NavigationLinks\Block\Html\Topmenu\Interceptor->Magento\Framework\Interception\{closure}() #1 /var/www/html/xxx/generated/code/WeltPixel/NavigationLinks/Block/Html/Topmenu/Interceptor.php(52): WeltPixel\NavigationLinks\Block\Html\Topmenu\Interceptor->___callPlugins('getCacheKeyInfo', Array, Array) #2 /var/www/html/xxx/vendor/magento/framework/View/Element/AbstractBlock.php(1038): WeltPixel\NavigationLinks\Block\Html\Topmenu\Interceptor->getCacheKeyInfo() #3 /var/www/html/xxx/vendor/magento/framework/View/Element/AbstractBlock.php(1132):
    Magento\Framework\View\Element\AbstractBlock->getCacheKey() #4 /var/www/html/xxx/vendor/magento/framework/View/Element/AbstractBlock.php(673):
    Magento\Framework\View\El in /var/www/html/xxx/vendor/magento/framework/Interception/Interceptor.php on line 146

    If you have the solution I am interested

    0
    Comment actions Permalink
  • Avatar
    Chris Badley

    Hi guys,

    I removed recently added code from a Magento file to get this working, until Weltpixel offer an official solution.

    Please see file /vendor/magento/module-catalog/Plugin/Block/Topmenu.php

    and remove or comment out  the following function:

    /**
    * Add active
    *
    * @param \Magento\Theme\Block\Html\Topmenu $subject
    * @param string[] $result
    * @return string[]
    */
    public function afterGetCacheKeyInfo(\Magento\Theme\Block\Html\Topmenu $subject, array $result)
    {
    $activeCategory = $this->getCurrentCategory();
    if ($activeCategory) {
    $result[] = Category::CACHE_TAG . '_' . $activeCategory->getId();
    }

    return $result;
    }

     

    Make sure you so not delete the last Curly Bracket in file!

    0
    Comment actions Permalink
  • Avatar
    Chris Badley

    Considering 2.3.4 is a security release, I believe it is far more damaging to expect customers to remain on previous versions of Magento that are publicly accessible.

    If they sit and wait for the release of the new Weltpixel pearl theme, their website is either vulnerable or non functioning, therefore I provided them with a simple fix that ensures their website is fully patched and they can continue trading.

    I would 100% agree it is never ideal to modifying Magento's core files, but as a temporary measure, I believe this will be a solution for your customers, they just have to remember to put in all back in place upon the release of pearl 1.9.3 

    0
    Comment actions Permalink
  • Avatar
    Pegame

    Hi,

    I also have big problems with Magento 2.3.4 and WeltPixel Theme.
    When regenerating the LESS and CSS files I get an Error 500 http://prntscr.com/r2s98o
    http://prntscr.com/r2s9ox
    http://prntscr.com/r2sbij

    - With setup: static-content: deploy, WeltPixel gives me a LESS error in every language. These errors are not displayed in Luna and blank Magento.
    http://prntscr.com/r2seml

    - The categories are no longer displayed. Blank page.

    I will revert to version 2.3.3. The theme still seems to have big problems, although WeltPixel has already written that is compatible with 2.3.4 !!!

    0
    Comment actions Permalink
  • Avatar
    Vladimir Chiveri

    I have same issue as Pegame. I'm on Magento 2.3.4 and have latest Pearl version. 

    Furthermore the Category Page on different store views is not working proprely if you have different layouts (ex. different product image size)

    0
    Comment actions Permalink
  • Avatar
    Pegame

    I'm back to version 2.3.3. Works without problems. Wait a few months, by then all bugs may have been fixed   :-)

    0
    Comment actions Permalink
  • Avatar
    Vladimir Chiveri

    Are you using latest Pearl Theme version with 2.3.3.?

    0
    Comment actions Permalink
  • Avatar
    Hyuckjin21

    When does the new version compatible with Magento 2.3.4 come out?

    0
    Comment actions Permalink
  • Avatar
    Pegame

    pearl 101.9.4

    magento 2.3.3

    0
    Comment actions Permalink

Please sign in to leave a comment.