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.
Related
I using HMVC of Codeigniter first time.
From application\third_party\MX\Router.php file view this error!
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: core/Router.php
Line Number: 268
Backtrace:
File: F:\server\htdocs\HMVC_Task\application\third_party\MX\Router.php
Line: 190
Function: _set_request
File: F:\server\htdocs\HMVC_Task\index.php
Line: 315
Function: require_once
404 Page Not Found
The page you requested was not found.
Codeigniter version is 3.1.11.
Now I'm trying to fix it by googling.
If any one have any suggestion please share.
That was version related error.
**Now I understand the solution.**
**When you use: codeigniter V2:**
In CI v2.x finished with $this->_set_request($this->uri->segments);
**When you use: codeigniter V3:**
whereas CI v3.0-dev finishes with $this->_set_request(array_values($this->uri->segments));
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.
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}\"");
}
My site become completely inaccesible. Opening both frontend and backend gives same error message..
Fatal error: Call to a member function getAllOptions() on a non-object in /home/decoplan/public_html/includes/src/Mage_Core_Model_Cache.php on line 434
Site: decoplanters.co.uk
Magento 1.5.1 Error -
I have cleared the var/cache however the problem still exists.
I hope someone can help as all 4 sites are down.
Kind regards
Prano
Try empty database cache by running this sql statement
TRUNCATE TABLE `core_cache`
I hope it will work.
after uploading a file in joomla site this error come
Fatal error: Cannot call overloaded function for non-object in /webcorp1/www/corpusers/p/u/punjabtourism.gov.in/libraries/joomla/utilities/simplexml.php on line 607
Fatal error: Class 'JLoader' not found in /webcorp1/www/corpusers/p/u/punjabtourism.gov.in/libraries/loader.php on line 161
anybody have solution please help
Disable caching and see if that helps the problem - or, if you're using APC caching, then switch to just simple file caching.