Drupal-8 Call to a member function setRevisionable() on null - drupal-8

Currently I am working on Drupal-8.6.17 and Lightning 3.2.9
I am trying to update my lightning version 3.2.9 to 3.3.0(Core 8.6.17 to 8.7)
taxonomy_term_field_data table status value is already 1
Display the error while run drush updb
Error: Call to a member function setRevisionable() on null in
/var/www/mysite/docroot/core/modules/taxonomy/taxonomy.post_update.php
Reproduce Error Steps:
composer require acquia/lightning:~3.3.0 --no-update
composer update
drush updb
Please suggest me!

Now I am resolved this issue by checked not empty of description field.
Line no 172 on /docroot/core/modules/taxonomy/taxonomy.post_update
Actual Code:
$field_storage_definitions['description']->setRevisionable(TRUE);
Changed to
if(!empty($field_storage_definitions['description'])){
$field_storage_definitions['description']->setRevisionable(TRUE);
}
It's working good to me. Cheers!

Related

laravel 5.5 email-verification with josiasmontag package FatalThrowableError

I have installed laravel 5.5 and implementing
I have pulled in composer require josiasmontag/laravel-email-verification and everything seems to ok but when a user register or when I click the register I get
Type error: Argument 1 passed to
Lunaweb\EmailVerification\EmailVerification::createToken() must be an
instance of Lunaweb\EmailVerification\Contracts\CanVerifyEmail,
instance of App\User given, called in
/Users/sam/site/vendor/josiasmontag/laravel-email-
verification/src/EmailVerification.php on line 127
here is the link to the parkage
https://github.com/josiasmontag/laravel-email-verification
I am not really good at php, if anyone has experience with it, please help
ahh, I forgot to implements CanVerifyEmailContract in the User model.
now it works fine.

addCookie method throws 'addCookie called with non-cookie parameter'

I am struggling with this error message which has no direct forum discussion anywhere. From some of the things I saw around the web I tried:
Changing localhost to 127.0.0.1
Played around with browser.driver.manage() v/s browser.manage()
Cleaning out/updating my node modules
The same code runs on other machines with same configuration (Win 10, chromedriver 2 etc.)
The code essetially gets the cookie value through API calls before
and uses it as such:
browser.get(URL);
browser.manage().addCookie('cookie_name', value);
Any help would be appreciated!
Assumption that you are on Protractor 5.0.0. Adding cookies have been changed in selenium webdriver 3 and was noted as a breaking change in the Protractor changelog:
Before:
browser.manage().addCookie('testcookie', 'Jane-1234');
After:
browser.manage().addCookie({name:'testcookie', value: 'Jane-1234'});
The answer above did not work for me because i kept getting this error:
"Expected 2-6 arguments but got 1"
This is what I had to do to make it compile at least:
(browser.manage() as any).addCookie({name:'cookieName', value: 'cookieVal'});
Here is the thread I got this info from:
https://github.com/angular/protractor/issues/4148
It is still an open issue.

Getting error when trying to delete record from hasMany collection

ember-data#2.5.3
ember#2.4.3
I am getting the following error "Cannot set property 'jqXHR' of undefined" when attempting to delete a record. The item has already been deleted via model.deleteRecord, I am now trying to persist it to the server. I have tried this with both item.save() and item.destroyRecord() any ideas of what this message means? The request never actually reaches the server.
This is caused by a bug in v0.1.0 of the ember-data-has-many-query addon, which was fixed in v0.1.1. Updating to the latest version should fix it.

Redmine_RE plugin is not saving the data

i am using the Redmine.3.1.0.Then i have installed redmine_re plugin.But when i try to save the requirement using the Redmine_re plugin i am getting the following error
NameError (undefined local variable or method `connection' for #<ReArtifactRelationship:0x800ddb0>):
lib/plugins/acts_as_list/lib/active_record/acts/list.rb:220:in `bottom_item'
lib/plugins/acts_as_list/lib/active_record/acts/list.rb:214:in `bottom_position_in_list'
lib/plugins/acts_as_list/lib/active_record/acts/list.rb:205:in `add_to_list_bottom'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
pls suggest how to resolve this error
#ste26054
I did not develop this plugin, but I think the support for redmine 3.1.0 is only partial at the moment. (And you may get other errors even after fixing this).
I believe you are getting an error because of this: Deprecate #connection in favour of accessing it via the class
And your error is related to this file:
In this method:
def scope_condition()
"#{connection.quote_column_name("source_id")} = #{quote_value(self.source_id)}
AND
#{connection.quote_column_name("relation_type")} = #{quote_value(self.relation_type)}"
end
Try to add self.class. in front of connection
You may have to repeat this for other files in the code.
If your changes are working, I would suggest you to submit a pull request on their plugin github page :)

Twig template manager error on AWS Cloud

I hope I find somebody who knows the Twig in details. I've developed several sites with Twig and I'm really satisfied. Now I'm trying to put the website into an AWS cloud. Generally it works fine, but sometimes after a new deploy I get the following error message:
Fatal error: Class 'Twig_TokenParser_If' not found in /var/www/html/lib/twig/lib /Twig/Extension/Core.php on line 99 Call Stack: 0.0001 633192 1. {main}() /var/www/html/index.php:0 0.1184 1516544 2. Twig_Environment->render() /var/www/html/index.php:13 0.1184 1516544 3. Twig_Environment->loadTemplate() /var/www/html/lib/twig/lib/Twig/Environment.php:283 0.1186 1518664 4. Twig_Environment->compileSource() /var/www/html/lib/twig/lib/Twig/Environment.php:314 0.1228 1692688 5. Twig_Environment->parse() /var/www/html/lib/twig/lib/Twig/Environment.php:523 0.1231 1713752 6. Twig_Parser->parse() /var/www/html/lib/twig/lib/Twig/Environment.php:473 0.1231 1715296 7. Twig_Environment->getTokenParsers() /var/www/html/lib/twig/lib/Twig/Parser.php:74 0.1233 1731256 8. Twig_Extension_Core->getTokenParsers() /var/www/html/lib/twig/lib/Twig/Environment.php:694
If I set up a new environment in the cloud and I deploy exactly the same application(all files are the same), it works. I don't want to set everything on a new release.
If somebody knows what could be the error, please help me.
Thanks