Okay
  Public Ticket #3064002
Error after upgrade
Closed

Comments

  • jordo9477 started the conversation

    After upgrading the theme with Magento 2.4.3 theme patch i got this error:


    Magento Version: 2.4.4


    On product page:

    Exception #0 (Exception): Deprecated Functionality: Optional parameter $data declared before required parameter $registry is implicitly treated as a required parameter in app/code/MGS/Protabs/Block/DetailsProtabs.php on line 11



  • [deleted] replied

    Hi jordo9477,

    Can you send me site info and SSH account to check this issue? Thanks

    Hyun

  •   jordo9477 replied privately
  • [deleted] replied

    Hi jordo9477,

    Here is my IP: 118.70.184.26

    Please add whitelist. Thanks

    Hyun

  • jordo9477 replied

    Hello,

    IP address 118.70.184.26 has been added to the list of trusted hosts.


    Please check now. 

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    I'm try to run some command but get stuck. Did you face this issue before?

    6413220030.png

    If no, please help me run setup:upgrade then deploy site. Thanks
    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun,

    No the setup:upgrade command was successfully executed before. Its stuck on indexing so i should re-index first then let you know.

    Is there anything other than this ?


    Thanks

  • [deleted] replied

    Hi jordo9477,

    No, I just want to run command for sure all content and code get lastest update. Then check your issue and how to fix it.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun,


    All of the indexes are ready except "catalogsearch_fulltext" and that is due that Smile Elastic Module included in the theme and while indexing the "catalogsearch_fulltext" i got this error:

    ***************

    Catalog Search index process error during indexation process:
    Deprecated Functionality: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /app/code/Smile/ElasticsuiteCatalog/Helper/AbstractAttribute.php on line 201

    ***************


    Please look into this and all those error on the website.


    Thank you.


  • [deleted] replied

    Hi jordo9477,

    I've checked and realized you are using claue theme v1 and magento version 2.4.4. Unfortunately, claue v1 don't have patch for 2.4.4 yet. Please downgrade magento version to 2.4.3-p1 for best working. 

    Regards,

    Hyun

  • jordo9477 replied

    So we can't fix these issues without downgrading the whole website? That's a lot of work to do again. 

  • [deleted] replied

    Hi jordo9477,

    Good new. Our dev was sent me a patch for claue v1. Please backup your old code first then try this: https://drive.google.com/file/d/1a94BPgTWKtZjdyCTjcA2GAAX5YPhIaua/view?usp=sharing

    I hope it work well in your site. 

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun, 

    Thanks a lot. 

    So should i just merge this patch with the current theme?  Is there any extra steps involved? 

    Thank You. 

  • [deleted] replied

    Hi jordo9477,

    No, just merge this patch in current theme. Remember to backup code first before merge.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun,

    I applied the patch you sent me after that run the setup:upgrade successfully and then reindex all of the indexes without any errors.

    Now its this single error on every page weather its homepage or product page or any category page:

    ********************

    Exception #0 (Exception): Deprecated Functionality: Optional parameter $perrow declared before required parameter $nb_item is implicitly treated as a required parameter in /app/code/MGS/Mpanel/Helper/Data.php on line 997
    

    ********************

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    I've fixed these issue and run upgrade again but stuck at reindex. Please help me run this command. Thanks!

    php bin/magento maintenance:enable;php bin/magento s:up;php bin/magento setup:static-content:deploy -f;php bin/magento indexer:reindex;php bin/magento c:f;php bin/magento maintenance:disable;

    6074520705.png

    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun, 

    Thank you for this.

    Please wait for sometime.. Category Product index may take 50-60 min to complete. 

    Or should i run this from my end? 

    Thanks. 

  • [deleted] replied

    Hi jordo9477,

    Yes, please. That the same.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun, 

    Indexes are ready and setup:upgrade as well but there are still errors.

    ArgumentCountError: Too few arguments to function MGS\Mpanel\Helper\Data::getStoreConfig(), 1 passed in /home/printart/public_html/printartm2/app/code/MGS/Blog/Helper/Data.php on line 10 and exactly 2 expected in app/code/MGS/Mpanel/Helper/Data.php:184
    

    Please check.

    Thanks.

  • [deleted] replied

    Hi jordo9477,
    This is new issue and I've fixed it too. Site working now.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun,

    Yes the homepage is working but there are still errors on category and product pages. And mini cart have some issues too.

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    I've fixed some issue conflict with php8. Also, please check again your minicart. I think this issue in your child theme make minicart get error.

    3204073905.png

    Regards,
    Hyun


  • jordo9477 replied

    Hi Hyun,

    The site is working now and there is no fatal error on any page. Thanks for that. But, category pages missing the pagination. There is no pagination or infinite scroll loaded on any category.


    Thanks.

  • [deleted] replied

    Hi jordo9477,

    I've checked and saw Ajax Scroll turn on. But it cannot load because there are 2 issue get site JS function cannot run. I think when you fixed all of this. Ajax Scroll will run normal.

    4513123961.png

    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun,

    Yes i checked that error and that is due to usage of some deprecated event listeners used in the Theme. I traced this and found that somewhere in the theme these event listeners are used.

    jQuery(window).load

    Thanks.


  • [deleted] replied

    Hi jordo9477,

    I've checked and fixed this issue. Now minicart work normal. Please review it.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun,

    Thanks for that. But the infinity scroll still not working. Can you please look into this.

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    Because the new magento version so code have a little different. I've fixed it. Please review again.

    Regards,

    Hyun

  • jordo9477 replied

    Thanks a lot Hyun. That was really great. There is just one more thing i can't see on product listing is Toolbar that contains listing view and sorting dropdown and a loader while infinite scrolling.

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    Can you send me some attachment about this problem? Thanks

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun, 

    Please check the attachment. And loader is working now.

    Thanks.

    Attached files:  toolbar.jpg

  • [deleted] replied

    Hi jordo9477,

    I've checked and saw your custom style hide toolbar. Also, when you turn on ajax scroll, the select product per page will cause ajax scroll error.

    7208111032.png

    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun,

    Yes one of the dropdown was hidden but that was not the problem, I'm checking the changes by removing any custom styles applied, so it should have shown before.

    And what thing causing this product per page error ? It should work with the ajax scroll.

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    Here, this function not work with ajax scroll. When ajax load infinity and product will show each ajax load done. Select product per page now does'nt mean anything. Maybe my explain not good but hope you undertand.

    4693340047.png

    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun,

    Okay got it, but I was thinking that this should set number of products to be loaded while ajax scrolling. Anyways thanks for the help. That's all I need for now. I will be in touch if any other problem shows up.

    Thanks.

  • [deleted] replied

    Hi jordo9477,

    Let me know if you have a problem.

    Regards,

    Hyun

  •   jordo9477 replied privately
  • [deleted] replied

    Hi jordo9744,

    I've check compile in system and found Smile module got error, I've fixed it but there is different error in third party module. Please check and fix it. Then try run upgrade and deploy.

    2551986037.png


    Regards,
    Hyun
  • jordo9477 replied

    Hi Hyun,

    I have fixed that 3rd party module error and successfully complied the code. Please check now and let me know if anything is to be done on my end.

    Thanks.

    Attached files:  complie-successful.jpg

  • [deleted] replied

    Hi jordo9477,

    I've check product_shape attr and product_color attr and re-config they as the same. Help me run reindex to test it. If color attr showd, that's good. If not, we need to check more.

    Regards,

    Hyun

  • jordo9477 replied

    Hi Hyun,

    I reindexed the site again and still the product_color and artist attribute missing.

    Thanks

  •   jordo9477 replied privately
  • jordo9477 replied

    Hi Hyun,

    Are you going to look into this ? its really urgent.