Hot answers tagged

52 votes
Accepted

Invalid template file magento2.3.0

Yes, This is the problem with windows. Windows uses "\" as separator, the array "directories" contains entries with "/" as separator, so the check will always fail. So you need to fix this by ...
Saurabh Dwivedi's user avatar
22 votes

Invalid template file magento2.3.0

For me, solution worked is by going to the file \vendor\magento\framework\View\Element\Template\File\Validator.php and replacing the below function definition as below: protected function ...
Tejas Vyas's user avatar
8 votes
Accepted

Magento 2: Unable to write file into directory. Access forbidden

I just updated to Magento 2.1.6 on Windows and had this same issue. I did a little searching and came across a post on Github here. In a nutshell you need to do two things in vendor/magento/module-...
Mike Levy's user avatar
  • 775
6 votes

Invalid template file magento2.3.0

Magento 2.3 does not support windows. You can find my solution here: enter link description here
Vincent's user avatar
  • 61
4 votes

Magento 2.3.0 - Multi Website Store URL Return 404 error

Check that you have enabled To include the store code in URLs as explained in user guide here. Try to either the .htaccess or index.php override. So you can remove, $params[\Magento\Store\Model\...
Milind Singh's user avatar
  • 1,554
4 votes

Invalid template file magento2.3.0

In Magento 2.2.9 replace /vendor/magento/framework/View/Element/Template/File/Validator.php isPathInDirectories function code with this code protected function isPathInDirectories($path, $directories)...
Sanaullah Ahmad's user avatar
3 votes

Invalid template file magento2.3.0

It's the core issue of not just Magento 2.3.0, but I faced that problem in Magento 2.2.7 as well. In order to make the code work on windows instead of using realpath just use the $path argument passed ...
Magebuddies's user avatar
3 votes
Accepted

WAMP error 500 when attempting to setup Magento2

you need to enable the IfVersion module on the server
Andrey Rad's user avatar
3 votes
Accepted

How can i solve Larger file import error in wamp - Out of memory

Try these different settings in C:\wamp\bin\apache\apache2.2.8\bin\php.ini Find: post_max_size = 8M upload_max_filesize = 2M max_execution_time = 30 max_input_time = 60 memory_limit = 8M Change to: ...
Ashar Riaz's user avatar
  • 1,025
2 votes
Accepted

Magento 2: SMTP Email gives error "Invalid sender data"

You have to replace ->setFrom('[email protected]', $storeScope) to ->setFrom('[email protected]') in above code, Becasue setFrom method is not supported two arguments. Check core function for this, ...
Rakesh Jesadiya's user avatar
2 votes

Magento 2: Unable to write file into directory. Access forbidden

There is a simple way to solve this issue: in vendor/magento/module-catalog/Model/View/Asset/Image.php:226 remove the 'DIRECTORY_SEPARATOR' private function getRelativePath($result) { $result = $this-...
Jitendra Mohanta's user avatar
2 votes

Deploying a Magento Store from a live server to XAMPP/WAMP

This YouTube tutorial might help: https://www.youtube.com/watch?v=OOIzGpXCuT4 Once you've copied all the files to your local htdocs folder, I believe you'll need to migrate your MySQL database from ...
mikekim85's user avatar
2 votes

WAMP error 500 when attempting to setup Magento2

IfVersion', perhaps misspelled or defined by a module not included in the server configuration This is the missing version_module from apache - it will be used to check your PHP version which for ...
Aravona's user avatar
  • 367
2 votes

How can I test GraphQL of magento 2.3.0 in Wamp Server?

You are on the right track but you can easily view Documentation when you click on Docs on the right top corner. See screenshot with an example for the Category Query and the Documentation in the ...
Mr. Lewis's user avatar
  • 1,901
2 votes

Invalid template file magento2.3.0

As mentioned the issue is Windows compatability. But I would recommend to change it a bit differently to work even when migrating systems, e.g. for local development on Windows and later deployment on ...
Christian's user avatar
2 votes

Catalog Search indexer process unknown error

Check your ElasticSearch version, it probably isn't the same selected in the Magento admin panel. This command will help you to check the version, you might change the host. curl http://elasticsearch:...
Rafael Corrêa Gomes's user avatar
2 votes

Magento 2.3.0 - Multi Website Store URL Return 404 error

You need to set the Base URL for the store view in the admin. I had the same issue until I did that.
mlunt's user avatar
  • 575
2 votes

Magento 2 Allowed Memory exhausted error in Magento 2.3/Wampp

You can try this way: php -dmemory_limit=-1 bin/magento setup:di:compile OR Edit PHP.ini settings, in this case is the memory_limit memory_limit = 768M max_execution_time = 18000 change memory ...
Pankaj Sharma's user avatar
1 vote

PHP Startup: Unable to load dynamic library - The specified module could not be found

The problem I had was very similar. The problem .dll existed but it had a dependency on another dll. I ran a dependency checker and found that it was dependent on the dll fbclient.dll which was not on ...
WiiBopp's user avatar
  • 111
1 vote

How can I test GraphQL of magento 2.3.0 in Wamp Server?

Make sure your storefront is working Switch to developer mode Set the GraphiQL client endpoint to hostname/graphql Does the Documentation Explorer (Docs tab) load? Do you still receive the error?
mkotov's user avatar
  • 416
1 vote

Invalid template file magento2.3.0

This probably happens when developing under Windows System. Go to line 140 in file Path /vendor/magento/framework/View/Element/Template/File/Validator.php Replace this code of line $realPath =...
Mubo's user avatar
  • 121
1 vote

Invalid template file magento2.3.0

Please See that,It should be double slash i.e "\\" $realPath = str_replace('\\\', '/', $this->fileDriver->getRealPath($path));
zuber bandi's user avatar
  • 1,052
1 vote

Magento 2 - How to create a calculator

Put that functions in a block instead model, then you can call them in your phtml like this : echo $block->divide($x, $y) or echo $this->divide($x, $y) Block path app/code/{Vendor}/{Module}/...
PЯINCƎ's user avatar
  • 11.6k
1 vote

Fatal error: Allowed memory size of 805306368 bytes exhausted

Just clear "Var" folder in magento root directory, then Delete all files from static folder except .htaccess file. Please dont delete .htaccess file in static folder. You can find Static folder in ...
Jassi BANga's user avatar
1 vote
Accepted

Why Magento is preferable with LAMP?

Magento itself officially only supports a Linux based stack - see the System Requirements here. I have heard of others using Windows for Magento so my suggestion is to go with whatever works best ...
Kristof at Fooman's user avatar
1 vote

Install Magento 2.1.4 on Wamp Server

http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html http://php.net/downloads.php This should get you going - these are the system requirement for magento 2 and the php ...
Rebel's user avatar
  • 305
1 vote

Magento 2: Admin listing take long loading time on WAMP

Set Magento to Developer mode (get details from here). Remove comment from magento 2 htaccess file from line (# SetEnv MAGE_MODE developer). make memory_limit = 2024mb for local Enable Cache. Please ...
Mohit Kumar Arora's user avatar
1 vote

Magento 2 ADMIN login issue

You should not install Magento on a top-level domain or IP address: https://github.com/magento/magento2/issues/2439
Dmitrii Fediuk's user avatar
1 vote

Magento 2 Installation - 503 (Service Unavailable) Error

I got the same error. Firstly to get rid of the 503 error: Clear var/cache, var/page_cache, var/generation. After that assign 777 permission to pub/, var/ and app/etc/ folders. Now, this type of ...
Reena Parekh's user avatar
  • 1,917

Only top scored, non community-wiki answers of a minimum length are eligible