Encountered AttributeError: 'Permission' object has no attribute '_revisions' after upgrading Wagtail from 2.6.2 to 4.0.1 - wagtail

I encountered the following error when accessing Pages in Wagtail Admin:
File "C:\Users\env\lib\site-packages\wagtail\models_init_.py", line 983, in revisions
return self.specific_deferred._revisions
AttributeError: 'Permission' object has no attribute '_revisions'
It seems to be some conflicts in the wagtail model that caused the error, and it only occured after I upgrade wagtail from ver. 2.6.1 to 4.0.1.
Thanks

Related

Iam trying to automate the code using selenium python in pytest framework facing the Attribute error issue

def setUserName(self, username):
self.driver.find_element(By.ID, self.textbox_Username_ID).send_keys(username)
E AttributeError: 'NoneType' object has no attribute 'find_element'
AttributeError
You did not initialize driver object properly, currently it is not existing, 'NoneType' in Python

AttributeError: module 'mod_wsgi' has no attribute 'subscribe_events'

I am using django 2.0, python 3.5, apache2, mod_wsgi. But my site is performing very slow. For finding the cause of the issue, I have embedded script as suggested by Graham Dumpleton in this link https://github.com/GrahamDumpleton/mod_wsgi/issues/228#issuecomment-331365102
But I am facing following error:
AttributeError: module 'mod_wsgi' has no attribute 'subscribe_events'. Any help would be much appreciated

Failed to import extension kiln.py

Upgraded to Mercurial 4.7 and now I get "*** failed to import extension kiln from <....>: 'module' object has no attribute 'command'"
I have to enter id/password manually. What is wrong?
You're using Kiln Extensions and there are some changes in Mercurial 4.7 that break this.
In regards to the error you referenced, the Mercurial release notes indicate (Section 7, API Changes):
cmdutil: drop deprecated precursor of registrar.command
So you can resolve this specific issue by replacing cmdutil.command with registrar.command but that'll just expose other problems.
Personally, I didn't have any more time to mess around with this so I just downgraded to Mercurial 4.6.1.

Unknown server tag 'dnn:DNNGrid'

I installed the dotnetnuke Blog module and am getting an error when I try to manage it:
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unknown server tag 'dnn:DNNGrid'.
---> System.Web.HttpParseException: Unknown server tag 'dnn:DNNGrid'.
I looked on their site but couldn't find much of anything.
You likely need to upgraded to the latest DNN8 specific release of the Blog module.
https://github.com/DNN-Connect/DNN-Blog/releases
https://github.com/DNN-Connect/DNN-Blog/releases/tag/06.03.00
DNN8 had breaking changes, that required some modules to be recompiled.

AppEngine Error: java.lang.NoSuchMethodError: com.google.appengine.api.search.Index.add

Im using AppEngine SDK 1.7.0 in my webapp. Recently, errors was log as
Caused by: java.lang.NoSuchMethodError:
com.google.appengine.api.search.Index.add([Lcom/google/appengine/api/search/Document;)
Lcom/google/appengine/api/search/AddResponse;
The error just happened recently, it doesn't have the problem before.
I believe they(google) have changed Index.add() to Index.put(Document ...docs), regards to the latest version of API doc.
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index
AddResponse was deprecated and removed from the SDK.
http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
You need to remove all reference to that class and then redeploy.

Resources