So my route is defined as:
Route::get('dashboard/upgrade/invoice/{code}',[PackageController::class,'invoice'])->name('user.invoice');
The visited url is:
https://examplewebsite.com/dashboard/upgrade/invoice/3SInyM0RwGkKz2vSYsqLxlfsL
now this url sometimes open without any error.
other times, it returns 500 SERVER ERROR
When I checked my laravel.log to see why, I see:
production.ERROR: Index invalid or out of range {"view":{"view":"/home/xx/xx/resources/views/dashboard/upgrade/invoice.blade.php","data":[]},"userId":xx,"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): Index invalid or out of range at /home/fewflyok/xxx/vendor/bacon/bacon-qr-code/src/Encoder/MaskUtil.php:134)
on the blade template, I have the qrcode line called with:
{!! QrCode::color(34, 27, 114)->size(150)->generate($invoice->address ) !!}
Now I want I am not using the bacon-qr-code on this particular blade. I have a different qrCode package (SimpleSoftwareIO) which I already set up on my config/app.
I then discover that the stacktrace traces to the qrcode I am using. So here is an extended log:
[stacktrace]
#0 xx/vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php(197): BaconQrCode\\Encoder\\MaskUtil::applyMaskPenaltyRule3()
#1 xxx/vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php(244): BaconQrCode\\Encoder\\Encoder::calculateMaskPenalty()
#2 xxx/vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php(135): BaconQrCode\\Encoder\\Encoder::chooseMaskPattern()
#3 xxx/vendor/bacon/bacon-qr-code/src/Writer.php(54): BaconQrCode\\Encoder\\Encoder::encode()
.
.
#4 xxx/vendor/simplesoftwareio/simple-qrcode/src/Generator.php(171): BaconQrCode\\Writer->writeString()
#5 xxx/resources/views/dashboard/upgrade/invoice.blade.php(31): SimpleSoftwareIO\\QrCode\\Generator->generate()
.
.
#6 xxx/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(109): require('/home/fewk/...')
#7 xxx/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(110): Illuminate\\Filesystem\\Filesystem::Illuminate\\Filesystem\\{closure}()
#8 xxx/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire()
#9 xx/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath()
#10 xxx/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\\View\\Engines\\CompilerEngine->get()
Have a look at https://github.com/Bacon/BaconQrCode/issues/92
seems it's related to php8.1 opcache and jit=tracing
switching to jit=function helps...
Related
I just tried to make my own wiki-extension following these tut: Mediawiki - Develop Extensions
The Extensions has a SpecialPage and when i visist the mediawiki - SpecialPages Site i get the following error:
[cb6b6dfb1a33d10f07bcbc44] /index.php/Spezial:Spezialseiten Wikimedia\Assert\ParameterAssertionException from line 63 of D:\Wiki\mediawiki\wiki\vendor\wikimedia\assert\src\Assert.php: Bad value for parameter $dbkey: should not be empty
Backtrace:
#0 D:\Wiki\mediawiki\wiki\includes\title\TitleValue.php(82):Wikimedia\Assert\Assert::parameter(boolean, string, string)
#1 D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPage.php(100): TitleValue->__construct(integer, string, string)
#2 D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPage.php(84): SpecialPage::getTitleValueFor(string, boolean, string)
#3 D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPage.php(629): SpecialPage::getTitleFor(string, boolean)
#4 D:\Wiki\mediawiki\wiki\includes\specials\SpecialSpecialpages.php(70): SpecialPage->getPageTitle()
#5 D:\Wiki\mediawiki\wiki\includes\specials\SpecialSpecialpages.php(42): SpecialSpecialpages->getPageGroups()
#6 D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPage.php(522): SpecialSpecialpages->execute(NULL)
#7 D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPageFactory.php(576): SpecialPage->run(NULL)
#8 D:\Wiki\mediawiki\wiki\includes\MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
#9 D:\Wiki\mediawiki\wiki\includes\MediaWiki.php(851): MediaWiki->performRequest()
#10 D:\Wiki\mediawiki\wiki\includes\MediaWiki.php(512): MediaWiki->main()
#11 D:\Wiki\mediawiki\wiki\index.php(43): MediaWiki->run()
#12 {main}
with the Debug-notice:
Notice: Did not find alias for special page ''. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in D:\Wiki\mediawiki\wiki\includes\specialpage\SpecialPageFactory.php at line 691] in D:\Wiki\mediawiki\wiki\includes\debug\MWDebug.php on line 311
So why does it search for an empty alias '' when trying to build my SpecialPage?
Could sth gone wrong with my MyExtensions.i18n.alias.php?
or Does any1 know if this kind of error has a deeper meening?
It sounds like an issue with the definition of your special page alias.
Make sure your alias for your SpecialPage is defined correctly, and that the alias page itself is properly attached in your extension in 'ExtensionMessagesFiles' (so it's being read).
See https://www.mediawiki.org/wiki/Manual:Special_pages#The_aliases_file for more information.
Also, you can use https://tools.wmflabs.org/mwstew/ tool to create an extension boilerplate with your special page name and alias generated for you.
When I've gone through the installation steps for Anchor CMS, I'm getting an error (after final step):
Uncaught Exception
Undefined variable: vars
Origin
install/routes.php on line 183
Trace
#0 /home/.../anchor-cms/install/routes.php(183): System\error::native(8, 'Undefined varia...', '/home/...', 183, Array)
#1 [internal function]: {closure}()
#2 /home/.../anchor-cms/system/route.php(165): call_user_func_array(Object(Closure), Array)
#3 /home/.../anchor-cms/system/router.php(158): System\route->run()
#4 /home/.../anchor-cms/system/start.php(46): System\router->dispatch()
#5 /home/.../anchor-cms/install/index.php(33): require('/home/...')
#6 {main}
Any suggestions? I'm running Linux 64bit (elementaryOS).
You may have already resolved this, but the way I got around this was to remove the undefined variable from line 183 of the install/routes.php file completely.
return Layout::create('account' $vars);
So it then looked like this:
return Layout::create('account');
Refreshing the page will then allow you to create an account and login to the admin interface etc.
I am newbie with zf2 framework. For example, now I get this error:
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ZfcUserOverride) could not be initialized.' in F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php:189 Stack trace:
#0 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(163): Zend\ModuleManager\ModuleManager->loadModuleByName(Object(Zend\ModuleManager\ModuleEvent))
#1 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(90): Zend\ModuleManager\ModuleManager->loadModule('ZfcUserOverride')
#2 [internal function]: Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent))
#3 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent))
#4 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('loadModules', Object(Zend\ModuleManager\ModuleEvent), NULL)
#5 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(109): Zend\EventManager\EventManager->trigger('loadModules', Object(Zend\ModuleManager\ModuleManager), Object(Zend\ModuleManager\ModuleEvent))
#6 F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(252): Zend\ModuleManager\ModuleManager->loadModules()
#7 F:\Server\domains\zf2-skeleton\public\index.php(17): Zend\Mvc\Application::init(Array)
#8 {main} thrown in F:\Server\domains\zf2-skeleton\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php on line 189
I formatted it manually, so you can read correct error.
It is hard to do it all time I get some error. How I can make zf2 to output such errors correctly?
I need something like this:
The ZendSkeletonApplication comes with a template that reports errors in a readable format. If you install the ZendSkeletonApplication and build your application off of it, you’ll benefit from this template and other conveniences. Alternatively, you can use just the standard error template or create your own.
I have the following appearing in my log files and being a new comer to Laravel, I'm not sure where to start debugging. Any assistance would be appreciated.
[2013-12-23 01:04:41] log.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /home/ulti/laravel4/bootstrap/compiled.php:5125
Stack trace:
#0 /home/ulti/laravel4/bootstrap/compiled.php(4970): Illuminate\Routing\Router->handleRoutingException(Object(Symfony\Component\Routing\Exception\ResourceNotFoundException))
#1 /home/ulti/laravel4/bootstrap/compiled.php(4958): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 /home/ulti/laravel4/bootstrap/compiled.php(534): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#3 /home/ulti/laravel4/bootstrap/compiled.php(521): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#4 /home/ulti/public_html/index.php(49): Illuminate\Foundation\Application->run()
#5 {main} [] []
All this means is that you visited a route that doesn't exist.
This means you have an invalid route. This is saying "Hey this page doesn't exist!". The page might exist but due to how routes are defined, and that controllers aren't routed automatically, it may not function as you expect. Can you post the code that has your routes, and also the URL you're trying to go to on site? That would be a start to help you with debugging! :)
I am trying to create sample project in yii but I am having this problem while trying to run my code:
CHttpException
The system is unable to find the requested action "error". (C:\wamp\www\yii\framework\web\CController.php:484)
#0 C:\wamp\www\yii\framework\web\CController.php(271): CController->missingAction('error')
#1 C:\wamp\www\yii\framework\web\CWebApplication.php(276): CController->run('error')
#2 C:\wamp\www\yii\framework\base\CErrorHandler.php(310): CWebApplication->runController('site/error')
#3 C:\wamp\www\yii\framework\base\CErrorHandler.php(183): CErrorHandler->render('error', Array)
#4 C:\wamp\www\yii\framework\base\CErrorHandler.php(108): CErrorHandler->handleException(Object(CHttpException))
#5 C:\wamp\www\yii\framework\base\CApplication.php(713): CErrorHandler->handle(Object(CExceptionEvent))
#6 [internal function]: CApplication->handleException(Object(CHttpException))
#7 {main}
Can anyone tell me the reason ? As I think this is not the problem of my code.
An exception has occurred (most likely due to a bug or misconfiguration) and Yii attempted to run the error handler, which in this case is the error action on the site controller.
The error occurs because you do not have a site controller, or it does not have an error action.