After updating my project to Rails 6.1 I get this error:
NoMethodError:
undefined method `add_template_helper' for ApplicationMailer:Class
In the documentation does not seem to be deprecated.
So, apparently, this method was deleted without deprecation warning in this commit:
https://github.com/rails/rails/commit/cb3b37b37975ceb1d38bec9f02305ff5c14ba8e9
So, the fix for this issue is to replace:
class MyMailer < ApplicationMailer
add_template_helper MyHelper
With:
class MyMailer < ApplicationMailer
helper MyHelper
Related
I have tried repairing the cache using flutter pub cache repairand also cleaned the project cache using flutter clean.It still doesn't work.
/C:/Users/Phili/AppData/Local/Pub/Cache/hosted/pub.dev/pinput-2.2.20/lib/src/pinput_state.dart:339:14: Error: The method 'FocusTrapArea' isn't defined for the class '_PinputState'.
'_PinputState' is from 'package:pinput/src/pinput.dart' ('/C:/Users/Phili/AppData/Local/Pub/Cache/hosted/pub.dev/pinput-2.2.20/lib/src/pinput.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FocusTrapArea'.
child: FocusTrapArea(
^^^^^^^^^^^^^
Failed to compile application.
anyone answer please
sorry this is coming late! I experienced mine when I updated my Flutter version to 3.7 so what I did was to update the Piput package version to the latest version and that solved mine for me. I hope it helps. I could not fully figure out what happen why it broke my app the first time but it was intuitive for me to upgrade the pinput package.
I updated my MacBook and now I get this issue from Xcode about my project and can run it :
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:51:81:
error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:101:81:
error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
ANY IDEA WHAT CAN I DO???
Yeah it's actually a problem caused by updating the XCode.
There are some workarounds in here. One of them is the XCode downgrade :/
Same thing happened with me, I changed my macbook and now xcode is giving this weird issue. I followed this link and updated my 'Stripe' version.
'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
This is what i followed:
comment out pod 'stripe' line
run pod install
uncomment line
run pod install
I Just install lumen-passport using
composer require dusterio/lumen-passport
then after just running php artisan
I got this In PassportServiceProvider.php line 81:
Call to undefined method Laravel\Lumen\Application::configurationIsCached()
have you encounter the same?
What did you do to solve it?
The problem is related to this Passport 7.3.2 issue.
The solution is to downgrade to laravel/passport to version 7.3.1
Not a good idea but i think the issue is related to new release so for the main time for me to be able to execute php artisan command I just comment this lines
if (! $this->app->configurationIsCached()) {
$this->mergeConfigFrom(__DIR__.'/../config/passport.php', 'passport');
}
then good to go.. after that uncomment again
Another way to solve this is by using a laravel/lumen version above 5.8.11. Where the configurationIsCached method has been added.
I have just updated meteor to blaze and followed the instructions to update iron-router to 0.7.0.
I'm getting this error:
Uncaught TypeError: Cannot call method 'path' of undefined router.js:160
Any ideas on what may have gone wrong?
I think this was related to the event-hooks package I was using. Removed that and all seems fine.
When i want to run the GAE app, eclipse throw the following warnings:
26/01/2011 18:14:07
org.datanucleus.plugin.NonManagedPluginRegistry
registerExtensions
Warning: Extension
Point
"org.eclipse.core.resources.natures"
not registered, but plugin
"org.eclipse.jdt.core" defined in
file:/C:/------/workspaceAppEngine/----/war/WEB-INF/lib/core-3.1.1.jar
refers to it.
26/01/2011 18:14:07
org.datanucleus.plugin.NonManagedPluginRegistry
registerExtensions Warning: Extension
Point
"org.eclipse.core.resources.builders"
not registered, but plugin
"org.eclipse.jdt.core" defined in
file:/C:/----/workspaceAppEngine/-----/war/WEB-INF/lib/core-3.1.1.jar
refers to it.
26/01/2011 18:14:07
org.datanucleus.plugin.NonManagedPluginRegistry
registerExtensions Warning: Extension
Point
"org.eclipse.core.resources.markers"
not registered, but plugin
"org.eclipse.jdt.core" defined in
file:/C:/----------/workspaceAppEngine/-----/war/WEB-INF/lib/core-3.1.1.jar
refers to it.
26/01/2011 18:14:07
org.datanucleus.plugin.NonManagedPluginRegistry
registerExtensions Warning: Extension
Point
"org.eclipse.core.resources.markers"
not registered, but plugin
"org.eclipse.jdt.core" defined in
file:/C:/-----/workspaceAppEngine/----/war/WEB-INF/lib/core-3.1.1.jar
refers to it.
any idea?
Thanks
Are you using version 2.0.0.m3? Check this.
I solved this error, using Objectify instead of JPA. More info: http://code.google.com/p/objectify-appengine/