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 ...
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 ...
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-...
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
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\...
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)...
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 ...
3
votes
Accepted
WAMP error 500 when attempting to setup Magento2
you need to enable the IfVersion module on the server
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:
...
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, ...
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-...
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 ...
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 ...
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 ...
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 ...
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:...
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.
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 ...
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 ...
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?
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 =...
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));
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}/...
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 ...
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 ...
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 ...
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 ...
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wamp × 64magento2 × 26
localhost × 11
magento-1.9 × 8
php × 8
database × 7
error × 7
installation × 6
windows × 6
magento2.3 × 3
admin × 3
magento-enterprise × 3
reindex × 3
magento2.3.0 × 3
cli × 3
multi-website × 3
magento-1.7 × 2
magento-1.8 × 2
magento-2.0 × 2
magento-community × 2
magento2.3.3 × 2
server-setup × 2
permissions × 2
magento2.4.2 × 2
apache × 2