Getting error when deploying Laravel code - laravel

trying to deploy locally first, then to Heroku code following tutorial provided by class professor. Followed video to the T but his deploys and mine doesn't. I am code-dumb so please be as basic as possible. https://www.youtube.com/watch?time_continue=1583&v=8NOslcDSIoI
Using Laravel with PhpStorm.
Could not find resource 'views/layouts.html.php' in any resource paths.(searched: C:\Users\{MY NAME}\PhpstormProjects\is601webpage\vendor\filp\whoops\src\Whoops\Handler/../Resources)
(1/1) RuntimeException
Could not find resource 'views/layouts.html.php' in any resource paths.(searched: C:\Users\{MY NAME}\PhpstormProjects\is601webpage\vendor\filp\whoops\src\Whoops\Handler/../Resources)
in PrettyPageHandler.php line 621
at PrettyPageHandler->getResource('views/layouts.html.php')
in PrettyPageHandler.php line 170
at PrettyPageHandler->handle(object(ErrorException))
in Run.php line 320
at Run->handleException(object(ErrorException))
in Handler.php line 343
at Handler->renderExceptionWithWhoops(object(ErrorException))
in Handler.php line 322
at Handler->renderExceptionContent(object(ErrorException))
in Handler.php line 306
at Handler->convertExceptionToResponse(object(ErrorException))
in Handler.php line 285

File name should be layouts.blade.php.

Related

Magento Migration 1.9.2.0 to Magento 2.3.2 from CLI

I am trying to migrate website from Magento 19.2.0 to Magento 2.3.2 using CLI. I have made all changes in config.xml file with path to both database and here is the command i am trying to execute to apply settings.
php bin/magento migrate:settings --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.0/config.xml
would be great if someone suggest the fix for this error.
In Dom.php line 455:
AttValue: " or ' expected Line: 110
attributes construct error Line: 110
Couldn't find end of Start Tag database line 110 Line: 110
AttValue: " or ' expected Line: 113
attributes construct error Line: 113
Couldn't find end of Start Tag database line 113 Line: 113
Had a similar error, check your config.xml in line 110, I just forget a closing "
I solved this problem changing the database password.
I removed all special characters from the password and the import worked fine! There is some password field at the config.xml in my case

NotFoundHttpException in RouteCollection.php line 179

I got this error to load my assets:
NotFoundHttpException in RouteCollection.php line 179
http://tahrircenter.com/assets/frontend/_img/_svg/chart.svg
I think its due to case Sensitivity issue replace your url with
http://tahrircenter.com/assets/frontend/_img/_SVG/Chart.svg
Try above url hope it will work for you.

Filesystem.php - failed to open stream

I made multiple web-applications using Laravel so this is not my first production deply. However - I've bumped into a weird issue that I can't seem to find the answer for. As with all applications I've done so far - I copy/pasted all the files to the production server, set up the .env file, edited app.php and database.php in the config folder but i keep getting this error:
ErrorException in ClassLoader.php line 412:
include(/home/xxxxx/public_html/appname/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php):
failed to open stream: No such file or directory
in ClassLoader.php line 412
at HandleExceptions->handleError('2', 'include(/home/xxxxx/public_html/appname/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php): failed to open stream: No such file or directory', '/home/xxxxx/public_html/appname/vendor/composer/ClassLoader.php', '412', array('file' => '/home/xxxxx/public_html/appname/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php')) in ClassLoader.php line 412
at Composer\Autoload\includeFile() in ClassLoader.php line 412
at Composer\Autoload\includeFile('/home/xxxxx/public_html/appname/vendor/composer/../laravel/framework/src/Illuminate/Filesystem/Filesystem.php') in ClassLoader.php line 301
at ClassLoader->loadClass('Illuminate\Filesystem\Filesystem')
at spl_autoload_call('Illuminate\Filesystem\Filesystem') in Application.php line 539
at Application->registerConfiguredProviders() in RegisterProviders.php line 17
at RegisterProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 253
at Kernel->bootstrap() in Kernel.php line 144
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 54
Now... I've tried everything i found on the web so far. Clearing cache, checking file permissions, running composer dump autoload, reuploading all the files - but nothing seems to help. It's a shared hosting with PHP v5.6 which already has several laravel applications running and they work perfectly. The only difference is that this one is laravel 5.3 and the other are 5.2.
I have no errors on my local dev machine.
Any ideas!?
This might happen due to some security features that are active on the web hosting itself. The mentioned class gets flagged as malware and the AV keeps deleting it upon upload/reupload. Since the whole file/class is missing - the application throws the mentioned error.
If you don't run your own server and can't white-list the file, just contact your hosting provider to do it for you.
I found the solution here https://laracasts.com/discuss/channels/laravel/filesystemphp .
It may be because of the exec function that is used in function link. Just remove this part:
/**
* Create a hard link to the target file or directory.
*
* #param string $target
* #param string $link
* #return void
*/
public function link($target, $link)
{
if (! windows_os()) {
return symlink($target, $link)
}
$mode = $this->isDirectory($target) ? 'J' : 'H';
exec("mklink /{$mode} \"{$link}\" \"{$target}\"");
}

Class 'Mage' not found in /usr/share/php/SOAP/WSDL.php on line 214

I am receiving this error...
Class 'Mage' not found in /usr/share/php/SOAP/WSDL.php on line 214
...and have tracked it down to the line
require_once('Zend/Log.php');
Can any one advise me on how to debug this so I can find out where the class causing this error is as I am at a loss.

Magento: Using APC leads to SimpleXML PHP error

I want to use APC with Magento. I added the folling code in app/etc/local.xml:
<cache>
<backend>apc</backend>
<prefix>MAGE_</prefix>
</cache>
but I am getting the error below.
APC is already enabled on the server and working with other sites.
The error message
Warning: simplexml_load_file()
[function.simplexml-load-file]:
Entity: line 58: parser error :
expected '>' in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Warning: simplexml_load_file()
[function.simplexml-load-file]:
in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Warning: simplexml_load_file()
[function.simplexml-load-file]: ^ in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
What could lead to this error?
I'm use memcache to provider back cache
that magento can not read config file please makesure you config is correct
BTW:apc is not compatible X64 OS
Make sure your LAMP stack has all of the requirements being met:
http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
Particularly SimpleXML.

Resources