- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bonjour,
je suis entrain d'installé magento 2.3.5 sous xamp v3.2.2 avec:
- PHP mis à jour vers 7.3.0 / 7.2.13 / 7.1.25 / 7.0.33 / 5.6.39 - MariaDB mise à jour vers 10.1.37 - Mise à jour d'OpenSSL vers 1.0.1q (uniquement Unix) - PhpMyAdmin mis à jour en 4.8.4
j'ai modifié le fichier php.ini comme suit:
max_execution_time = 1800 max_input_time = 1800 memory_limit = 1024M
en étape 6 d'installation j'ai ce problème:
Module 'Magento_Theme':
[ERROR] InvalidArgumentException: Wrong file in C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Image\Adapter\Gd2.php:64 Stack trace: #0 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Image.php(55): Magento\Framework\Image\Adapter\Gd2->open('C:/xampp/htdocs...') #1 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Image.php(36): Magento\Framework\Image->open() #2 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(121): Magento\Framework\Image->__construct(Object(Magento\Framework\Image\Adapter\Gd2), 'C:/xampp/htdocs...') #3 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #4 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\ObjectManager\ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array) #5 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Image\Factory.php(47): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #6 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\View\Design\Theme\Image.php(127): Magento\Framework\Image\Factory->create('C:/xampp/htdocs...') #7 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\module-theme\Model\Theme\Registration.php(135): Magento\Framework\View\Design\Theme\Image->createPreviewImage('C:/xampp/htdocs...') #8 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\module-theme\Model\Theme\Registration.php(114): Magento\Theme\Model\Theme\Registration->_savePreviewImage(Object(Magento\Theme\Model\Theme\Data)) #9 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\module-theme\Model\Theme\Registration.php(73): Magento\Theme\Model\Theme\Registration->_registerThemeRecursively(Object(Magento\Theme\Model\Theme\Data)) #10 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\module-theme\Setup\Patch\Data\RegisterThemes.php(47): Magento\Theme\Model\Theme\Registration->register() #11 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Setup\Patch\PatchApplier.php(162): Magento\Theme\Setup\Patch\Data\RegisterThemes->apply() #12 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(1023): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Theme') #13 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(890): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array) #14 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array) #15 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(371): call_user_func_array(Array, Array) #16 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Controller\Install.php(109): Magento\Setup\Model\Installer->install(Array) #17 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Controller\AbstractActionController.php(83): Magento\Setup\Controller\Install->startAction() #18 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #19 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #20 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Controller\AbstractController.php(115): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #21 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\DispatchListener.php(117): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #22 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #23 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #24 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Application.php(339): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #25 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\index.php(39): Laminas\Mvc\Application->run() #26 {main} Next Magento\Framework\Setup\Exception: Unable to apply data patch Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme. Original exception message: Wrong file in C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\magento\framework\Setup\Patch\PatchApplier.php:170 Stack trace: #0 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(1023): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Theme') #1 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(890): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array) #2 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array) #3 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Model\Installer.php(371): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\src\Magento\Setup\Controller\Install.php(109): Magento\Setup\Model\Installer->install(Array) #5 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Controller\AbstractActionController.php(83): Magento\Setup\Controller\Install->startAction() #6 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #7 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #8 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Controller\AbstractController.php(115): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #9 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\DispatchListener.php(117): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #10 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #11 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #12 C:\xampp\htdocs\magento-ce-2.3.5-p1\vendor\laminas\laminas-mvc\src\Application.php(339): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #13 C:\xampp\htdocs\magento-ce-2.3.5-p1\setup\index.php(39): Laminas\Mvc\Application->run() #14 {main}
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check below shared links it seems same issue as yours. validateURLScheme function return false always because it checking 'URL' format but local files not valid for this format, so it returns false.
https://github.com/magento/magento2/issues/28055
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pleasure to help you here.
Navigate to #/vendor/magento/framework/View/Element/Template/File/Validator.php:114
Find the below string:
$realPath = $this->fileDriver->getRealPath($path);
and replace it with:
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
or check this:
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By running this command:
php bin/magento module:disable Magento_Csp
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
j'ai utilisé la solution de Base de Donnés, vu que j'ai pas compris la première, mais le problème est le même. si possible je vous invite à un partage d'écran via skype
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check below shared links it seems same issue as yours. validateURLScheme function return false always because it checking 'URL' format but local files not valid for this format, so it returns false.
https://github.com/magento/magento2/issues/28055
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
Hello allaguirana77f
Check if gd is enable in your Xamp environment.
Stef
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
Bonjour,
merci pour votre aide, le problème est résolu et j'ai réussi a terminer l'installation de magento.
après l’installation j'ai un autre problème d’accès au back-office magento, une fenêtre noir s'affiche
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pleasure to help you here.
Navigate to #/vendor/magento/framework/View/Element/Template/File/Validator.php:114
Find the below string:
$realPath = $this->fileDriver->getRealPath($path);
and replace it with:
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
or check this:
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
onjour,
Bonne réponse @Manish Mittal, Cela fonctionne pour moi. mais le chargeur coincé sur le chargement et ne pouvait rien faire d'autre. voir l'image:
@Manish Mittal a écrit :
Pleasure to help you here.
Navigate to #/vendor/magento/framework/View/Element/Template/File/Validator.php:114
Find the below string:
$realPath = $this->fileDriver->getRealPath($path);
and replace it with:$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));or check this:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
Can you refresh your page or try to check error in browser console. Please share if you find any error in console.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
Bonjour,
erreur console:
Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 09:22:46.614 (index):1 [Report Only] Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Work+Sans:400,700.less' because it violates the following Content Security Policy directive: "style-src getfirebug.com 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. 609:34:45.368 [Report Only] Refused to load the font '<URL>' because it violates the following Content Security Policy directive: "font-src 'self' 'unsafe-inline'". 09:22:48.722 requirejs-config.js:18 Uncaught TypeError: require.config is not a function at requirejs-config.js:18 at requirejs-config.js:19 at requirejs-config.js:643 09:22:48.797 (index):45 Uncaught TypeError: require.config is not a function at (index):45 09:22:48.798 (index):94 Uncaught TypeError: require is not a function at (index):94 09:22:48.800 (index):145 Uncaught TypeError: require.config is not a function at (index):145 09:22:48.859 (index):396 Uncaught TypeError: require is not a function at (index):396 09:22:48.867 (index):508 Uncaught ReferenceError: define is not defined at (index):508 09:22:49.000 (index):572 Uncaught TypeError: require is not a function at (index):572 09:22:49.013 (index):627 Uncaught TypeError: require is not a function at (index):627 09:22:49.015 (index):668 Uncaught TypeError: require is not a function at (index):668 09:22:49.015 (index):691 Uncaught TypeError: require is not a function at (index):691 09:22:49.037 (index):714 Uncaught TypeError: require is not a function at (index):714 09:22:49.608 (index):1 [Report Only] Refused to load the image 'https://www.gstatic.com/images/branding/product/2x/translate_24dp.png' because it violates the following Content Security Policy directive: "img-src widgets.magentocommerce.com www.googleadservices.com www.google-analytics.com t.paypal.com www.paypal.com www.paypalobjects.com fpdbs.paypal.com fpdbs.sandbox.paypal.com *.vimeocdn.com s.ytimg.com 'self' 'unsafe-inline'". 09:22:50.154 (index):1 [Report Only] Refused to load the image 'http://amcglobal.sc.omtrdc.net/b/ss/amc.global.prod,amc.mag.admin.prod/1/JS-2.15.0-LAR3/s29563394663004?AQB=1&ndh=1&pf=1&t=17%2F5%2F2020%209%3A22%3A50%203%20-60&mid=11716562097051007492391591840638310621&aamlh=6&ce=UTF-8&cdp=1&fpCookieDomainPeriods=1&g=http%3A%2F%2Flocalhost%2Fmagento-ce-2.3.5-p1%2Fadmin_yy59ef%2Fadmin%2Fdashboard%2Findex%2Fkey%2F266ccc271daa5eead468ae0de0644be97d1bdc510b43bf639ce39aa832a7ae64%2F&r=http%3A%2F%2Flocalhost%2Fmagento-ce-2.3.5-p1%2Fadmin_yy59ef%2Fadmin%2Findex%2Findex%2Fkey%2F...shboard&hierarchy=dashboard&solution.&name=magento&version=2.3.5-p1&mode=default&edition=Community%20Edition&.solution&env=production&.page&user.&id=a11d6468c692fc5cb961d70cee75b59c3ad3be7e25b3e8edc0fc9a9cb7c1d5b6f54258c8625483928f92f430e2956579349cee2902becc057773fb5ace8e4808&language=fr&accountType=admin&authSystem=magento&corpId=unknown&.user&.c&cc=USD&aamb=6G1ynYcLPuiQxYZrsz_pkqfLG9yMXBpb2zX5dvJdYQJzPXImdj0y&s=1366x768&c=24&j=1.6&v=N&k=Y&bw=1366&bh=657&mcorgid=8F99160E571FC0427F000101%40AdobeOrg&AQE=1' because it violates the following Content Security Policy directive: "img-src widgets.magentocommerce.com www.googleadservices.com www.google-analytics.com t.paypal.com www.paypal.com www.paypalobjects.com fpdbs.paypal.com fpdbs.sandbox.paypal.com *.vimeocdn.com s.ytimg.com 'self' 'unsafe-inline'". 09:34:42.486 (index):1 [Report Only] Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Work+Sans:400,700.less' because it violates the following Content Security Policy directive: "style-src getfirebug.com 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. 09:34:42.487 (index):1 [Report Only] Refused to load the stylesheet 'https://translate.googleapis.com/translate_static/css/translateelement.css' because it violates the following Content Security Policy directive: "style-src getfirebug.com 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
Try to disable this module: Magento_Csp
bin/magento module:disable Magento_Csp
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Erreur lors de l'installation ma 2.3.5
stp comment faire pour désactiver le module ?