I have not found any significant help regarding the "The template should be a string or extend TemplateReference" in my Symfony2 project, so I am wondering if there is someone around, who came across the above issue.
Stack Trace:
InvalidArgumentException: The template should be a string or extend TemplateReference
at n/a
in /home/test/apps/test_admin/dev/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/View.php line 178
at FOS\RestBundle\View\View->setTemplate(object(Template))
in /home/test/apps/test_admin/dev/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/ViewResponseListener.php line 128
at FOS\RestBundle\EventListener\ViewResponseListener->onKernelView(object(GetResponseForControllerResultEvent))
in line
at call_user_func(array(object(ViewResponseListener), 'onKernelView'), object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 460
at Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher->Symfony\Component\HttpKernel\Debug\{closure}(object(GetResponseForControllerResultEvent))
in line
at call_user_func(object(Closure), object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/app/cache/dev/classes.php line 1656
at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(Closure)), 'kernel.view', object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/app/cache/dev/classes.php line 1589
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/app/cache/dev/classes.php line 1753
at Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 139
at Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent))
in /home/test/apps/test_admin/dev/app/bootstrap.php.cache line 2906
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
in /home/test/apps/test_admin/dev/app/bootstrap.php.cache line 2877
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
in /home/test/apps/test_admin/dev/app/bootstrap.php.cache line 3006
at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
in /home/test/apps/test_admin/dev/app/bootstrap.php.cache line 2286
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
in /home/test/apps/test_admin/dev/web/app_dev.php line 28
UPDATE
I applied the following fix, but still no luck:
https://github.com/FriendsOfSymfony/FOSRestBundle/commit/d2e9aaca8128bfcbd7cd0cb8a80ae34ab71b0c7e
OK, I got this one sorted out.
So, the issue was that my FOSRestBundle dependency was not up-to-date. Therefore, as soon as I updated it the problem got resolved.
Thanks all for your interest to help me. :)
Related
I have updated from Prestashop 1.7.8.6 to 1.7.8.8, admin worked, but after I updated a translation in the Backoffice, the Backoffice got a 500 error and I can't access it anymore. This is the Debug message:
ServiceNotFoundException
The service "prestashop.adapter.product.options.redirect_target_provider" has a dependency on a non-existent service "prestashop.adapter.product.repository.product_preview_repository".
in CheckExceptionOnInvalidReferenceBehaviorPass.php line 31
at CheckExceptionOnInvalidReferenceBehaviorPass->processValue(object(Reference), false)
in AbstractRecursivePass.php line 60
at AbstractRecursivePass->processValue(array(object(Reference), object(Reference), object(Reference)), false)
in CheckExceptionOnInvalidReferenceBehaviorPass.php line 28
at CheckExceptionOnInvalidReferenceBehaviorPass->processValue(array(object(Reference), object(Reference), object(Reference)))
in AbstractRecursivePass.php line 67
at AbstractRecursivePass->processValue(object(Definition), true)
in CheckExceptionOnInvalidReferenceBehaviorPass.php line 28
at CheckExceptionOnInvalidReferenceBehaviorPass->processValue(object(Definition), true)
in AbstractRecursivePass.php line 60
I don't know how to proceed :( - any tips?
I have a Oracle Database 18c Standard Edition 2 Release 18.0.0.0.0 server with Oracle apex 19 running on a Linux box.
I am testing send emails with templates build on Apex. If I run the below code I get a error
begin
Apex_mail.send(p_application_id => 100,
p_to => 'demo#example.com',
p_from => 'demo_1#example.com',
p_template_static_id => 'TEST',
p_placeholders => '{"count":1}');
end;
ORA-06502: PL/SQL: error : invalid LOB locator specified: ORA-22275 numérico o de valor
ORA-06512: en "SYS.DBMS_LOB", línea 727
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 776
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 849
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 873
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL_API", línea 88
ORA-06512: en línea 3
I've tested same code in other Oracle server without problem.
If I call to the overloaded function of APEX_mai.send as bellow, it work fine.
begin
apex_mail.send(p_to => 'demo#example.com',
p_from => 'demo1#example.com,
p_body => 'Main email text goes here',
p_subj => 'APEX_MAIL - Plain Text message');
Apex_Mail.push_queue;
end;
Note:
Application 100 and template "TEST" exists in my apex workspace
My question, what is the problem in my code when I use template?
I have tried sending an empty placeholder, but I get the same result
I found the problem, For some strange reason, the "text plain" template should not be empty, I added a "."(yes, a simple dot) in the template with plain text and it started working.
I'm trying to update a working web site to bootstrap 5.1.3. This time around I would like to have the styles handled by Sass, and modify them myself somewhat. I have copied the .scss files to my _sass folder and when i make a change it's updating the .css file as it should. However I'm getting an error message and i can't see what's the matter with the code. (It's reporting an error in the files I downloaded from bootstrap that haven't been touched). Here's the error - I can't beleve that the bootstrap crew have allowed this error in their code, so i must surely have made some blunder in my setup. Can anyone see what this error means and where i ought to go looking for the cure?
"Invalid CSS after "...ass}: #{$value}": expected "{", was ";"
on line 55 of D:/Sites/Mysites/FoggyHollow/www/_scss/mixins/_utilities.scss
from line 21 of D:/Sites/Mysites/FoggyHollow/www/_scss/_mixins.scss
from line 12 of D:/Sites/Mysites/FoggyHollow/www/_scss/bootstrap.scss
50: /* rtl:begin:remove */
51: }
52:
53: #if $is-css-var {
54: .#{$property-class + $infix + $property-class-modifier} {
55: --#{$variable-prefix}#{$property-class}: #{$value};
56: }
57:
58: #each $pseudo in $state {
59: .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
60: --#{$variable-prefix}#{$property-class}: #{$value};"; }
Cheers
Mike Kear
Windsor, NSW, Australia
1.Create a controller.
php artisan make:controller PhotoController --resource
2.Add a route in /routes/web.php.
Route::resource('photos', 'PhotoController');
3.Open postman using the DELETE method.
MethodNotAllowedHttpException in RouteCollection.php line 218:
in RouteCollection.php line 218
at RouteCollection->methodNotAllowed(array('GET', 'HEAD', 'POST')) in RouteCollection.php line 205
at RouteCollection->getRouteForMethods(object(Request), array('GET', 'HEAD', 'POST')) in RouteCollection.php line 158
at RouteCollection->match(object(Request)) in Router.php line 766
at Router->findRoute(object(Request)) in Router.php line 621
at Router->dispatchToRoute(object(Request)) in Router.php line 607
at Router->dispatch(object(Request)) in Kernel.php line 268
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 150
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
at Kernel->handle(object(Request)) in index.php line 54
You are using the wrong HTTP method for the URI you are requesting. It is a simple as that.
What ever the VERB the ROUTE is defined as, is the VERB you have to use.
If a route is defined for POST, you have to use a POST method. If it is PUT you have to use PUT method, etc .....
I am trying to migrate from an old bugzilla to a newer one. I installed a newer one on a new server. I run ./checksetup.pl and this is the error:
A valid TYPE was not specified for this column (got $VAR1 = {'PRIMARYKEY' => 1,'ENGINE' => 'MEDIUMSERIAL','NOTNULL' => 1};
) at Bugzilla/DB/Schema.pm line 1975.
Bugzilla::DB::Schema::get_type_ddl('Bugzilla::DB::Schema::Mysql=HASH(0x8 120cd8)', 'HASH(0x8261308)') called at Bugzilla/DB/Schema/Mysql.pm line 380
Bugzilla::DB::Schema::Mysql::get_rename_column_ddl('Bugzilla::DB::Schema ::Mysql=HASH(0x8120cd8)', 'fielddefs', 'fieldid', 'id') called at Bugzilla/DB.pm line 1026
Bugzilla::DB::bz_rename_column('Bugzilla::DB::Mysql=HASH(0x7fed8c0)', 'f ielddefs', 'fieldid', 'id') called at Bugzilla/Install/DB.pm line 69
Bugzilla::Install::DB::update_fielddefs_definition() called at ./checkse tup.pl line 164