You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wed Nov 06 11:51:30.968799 2024] [proxy_fcgi:error] [pid 3934032] [client 127.0.0.1:52186] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught LogicException: To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead. in path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php:1296\nStack trace:\n#0 path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php(791): Symfony\Component\DomCrawler\Crawler->createCssSelectorConverter()\n#1 path-to-chamilo/main/inc/lib/pdf.lib.php(345): Symfony\Component\DomCrawler\Crawler->filter()\n#2 path-to-chamilo/certificates/index.php(84): PDF->html_to_pdf()\n#3 {main}\n thrown in path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php on line 1296', referer: https://yourwebsite/certificates/index.php?id=xxx&user_id=xxxxx&action=export
Expected behavior
A clear and concise description of what you expected to happen.
PDF Download
The text was updated successfully, but these errors were encountered:
The error you're seeing indicates that the CssSelector component from Symfony is missing, which is necessary for filtering with a CSS selector. Here's how to fix it:
Install the CssSelector component: Open a terminal in your project directory and run the following command to install the component
rm composer.lock
rm -rf web/ vendor/
composer clear-cache
composer update
Describe
A clear and concise description of what the bug is.
After migrating to 1.11.28
When I try to download a certificate in PDF i Get an error 500
generating html certificate is OK
Was working in 1.11.26
To Reproduce
Steps to reproduce the behavior:
logs
Wed Nov 06 11:51:30.968799 2024] [proxy_fcgi:error] [pid 3934032] [client 127.0.0.1:52186] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught LogicException: To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead. in path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php:1296\nStack trace:\n#0 path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php(791): Symfony\Component\DomCrawler\Crawler->createCssSelectorConverter()\n#1 path-to-chamilo/main/inc/lib/pdf.lib.php(345): Symfony\Component\DomCrawler\Crawler->filter()\n#2 path-to-chamilo/certificates/index.php(84): PDF->html_to_pdf()\n#3 {main}\n thrown in path-to-chamilo/vendor/symfony/dom-crawler/Crawler.php on line 1296', referer: https://yourwebsite/certificates/index.php?id=xxx&user_id=xxxxx&action=export
Expected behavior
A clear and concise description of what you expected to happen.
PDF Download
The text was updated successfully, but these errors were encountered: