- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2019
06:21 AM
06-24-2019
06:21 AM
Cant access admin panel on new installation
I have just installed Magento 2.3, hosting on local server us XAMPP, i get the following message when i try to log on to admin.
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\xampp\htdocs\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 2
My code in the file reads <?php namespace
I have no white space before <?php which is the only fix i can find?
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2019
08:24 AM
06-24-2019
08:24 AM
Re: Cant access admin panel on new installation
Hey @mark_huyton,
Try once namespace in next line:
for example:
<?php namespace/module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2019
03:25 AM
07-02-2019
03:25 AM
Re: Cant access admin panel on new installation
Hi
Thanks for the advice, this still showed an error, so i Changed the Validator.php file from UTF-8 to ANSI and it seems to be working,
thanks