Skip to content
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

PageBuilder Internal Server Error when adding Products #5

Open
memen45 opened this issue Feb 28, 2024 · 3 comments
Open

PageBuilder Internal Server Error when adding Products #5

memen45 opened this issue Feb 28, 2024 · 3 comments

Comments

@memen45
Copy link

memen45 commented Feb 28, 2024

After some testing I found a weird bug with the PageBuilder when this module is enabled.

Steps to reproduce

  • install the package using composer. Then run the usual upgrade and compile commands.
composer require "web200/magento-seo"
bin/magento setup:upgrade && bin/magento setup:di:compile && bin/magento indexer:reindex && bin/magento cache:flush
sudo chgrp -H -R www-data var pub/media pub/static generated
  • now open the admin > content > pages and select a page and choose Edit.
  • if it does not already have it, add a "Add content" > "Products" block to the pagebuilder and click settings of the Products block, then Save the block.
  • if it already has the Products:
  • observe the following error: "A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later."
  • Observe in the browser console a failed request:
XHRPOST
http://ubuntu-container.lxd/admin_/pagebuilder/stage/preview/key/bf8605a97faf8b3f048d3e070f21f911d636cc428e95a71f6fd4c3bc7469c18f/?isAjax=true
[HTTP/1.1 500 Internal Server Error 146ms]
  • after removing and upgrading magento again, the error disappears and everything works fine
composer remove "web200/magento-seo"
bin/magento setup:upgrade && bin/magento setup:di:compile && bin/magento indexer:reindex && bin/magento cache:flush
sudo chgrp -H -R www-data var pub/media pub/static generated

Logs

Nothing to be found in the exception/system/debug logs that is related to this.

Any idea where the error could be coming from or where to look?

@memen45
Copy link
Author

memen45 commented Sep 2, 2024

Still present in Magento 2.4.7-p2

Would be happy to help, but I am not sure what would help you reproduce and find the cause of the bug!

@memen45
Copy link
Author

memen45 commented Sep 2, 2024

System Info:

  • Ubuntu 24.04.1 LTS
  • Magento 2.4.7-p2
  • PHP 8.1
  • Mariadb 10.11.8

This is a development system, not in production mode.

@memen45
Copy link
Author

memen45 commented Sep 2, 2024

Adding a di.xml file to the adminhtml directory with the following contents seem to have solved the issue:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Web200\Seo\Api\CmsPageUrlRetrieverInterface" type="Web200\Seo\Service\HrefLang\CmsPageUrlRetriever" />
    <preference for="Web200\Seo\Api\CategoryUrlRetrieverInterface" type="Web200\Seo\Service\HrefLang\CategoryUrlRetriever" />
    <preference for="Web200\Seo\Api\ProductUrlRetrieverInterface" type="Web200\Seo\Service\HrefLang\ProductUrlRetriever" />
</config>

Should there be more used from the frontend/di.xml file?

Also, are you open to receive and merge pull requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant