- Posts: 30
COMMUNITY FORUM
403 error when edit item or new item in front end.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
4 years 5 months ago #176135
by Chris
403 error when edit item or new item in front end. was created by Chris
Hi, getting a 403 error when trying to edit existing items or adding new items when logged in at the front end.
K2 User is added to a group that has all editing permissions in all categories. Front end editing is enabled in K2 settings as well.
Any idea what to check next?
Thanks
K2 User is added to a group that has all editing permissions in all categories. Front end editing is enabled in K2 settings as well.
Any idea what to check next?
Thanks
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 5 months ago #176137
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic 403 error when edit item or new item in front end.
Check if you have a leftover itemform.php template override anywhere inside html/com_k2/* in your template and delete it.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176142
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
Hi, there was an itemform.php in the folder which I renamed but no difference.
Adding an item gives
The url I get is www.example.com/item/add?template=system&tmpl=component
Editing gives the same but with ?edit
Viewing the page source it seems that the error is being raised by Admin Tools.
Have allowed Allow Site Templates under Cloaking and the error message has changed to
errorCode: '0',
errorMsg: 'Call to a member function isSite() on null',
Oddly I can edit modules from the front end.
Adding an item gives
The url I get is www.example.com/item/add?template=system&tmpl=component
Editing gives the same but with ?edit
Viewing the page source it seems that the error is being raised by Admin Tools.
Have allowed Allow Site Templates under Cloaking and the error message has changed to
errorCode: '0',
errorMsg: 'Call to a member function isSite() on null',
Oddly I can edit modules from the front end.
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176143
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
It's the Anagram template btw.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 5 months ago #176147
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic 403 error when edit item or new item in front end.
Joomla/K2 versions?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176149
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
Joomla 3.9.19
K2 2.10.3
Have discovered the same issue on another site with the Anagram template which was working with front-end editing before I installed AdminTools so pretty certain this is an AdminTools configuration causing the error, have posted a private ticket with them.
Thanks
K2 2.10.3
Have discovered the same issue on another site with the Anagram template which was working with front-end editing before I installed AdminTools so pretty certain this is an AdminTools configuration causing the error, have posted a private ticket with them.
Thanks
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176155
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
Have disabled Admin Tools on the new site and the old site, also replaced htaccess for stock. Still getting the error:0 so likely not admin tools.
Any thoughts?
Any thoughts?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 5 months ago #176166
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic 403 error when edit item or new item in front end.
Switch error reporting to maximum in Joomla's Global Configuration. The issue may be related to some 3rd party plugin that's killing the entire output.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176170
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
Hi, max error reporting gives an occasional error on normal page views.
When I try to edit from the front end then I still get the same.
Page output is 'Loading....' and 0 | Error: 0 in the browser tab.
This is the page source, minus some of the meta info when trying to edit item 36.
<script type="text/javascript">
var errorMessages = {
siteName: 'Example',
siteUrl: 'www.example.com/',
baseUrl: '/',
currentUrl: 'www.example.com/edit/36?template=system&tmpl=component',
resultsContainer: 'googleSearchResults',
errorCode: '0',
errorMsg: 'Call to a member function isSite() on null',
googleResultsTitle: 'We couldn\'t find what you were looking for, but you may be interested in the following:',
formTitle: 'Alternatively, you can search our site:',
formAction: '/k2',
formSubmit: 'SEARCH',
returnTo: 'or return to the',
returnLinkTitle: 'Return to the home page',
returnLinkText: 'home page'
}
</script>
<script type="text/javascript" src="cdn.nuevvo.net/templates/error.js">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<![endif]-->
</head>
<body class="errorWrapper">
<div id="loadErrorPage">Loading...</div>
</body>
When I try to edit from the front end then I still get the same.
Page output is 'Loading....' and 0 | Error: 0 in the browser tab.
This is the page source, minus some of the meta info when trying to edit item 36.
<script type="text/javascript">
var errorMessages = {
siteName: 'Example',
siteUrl: 'www.example.com/',
baseUrl: '/',
currentUrl: 'www.example.com/edit/36?template=system&tmpl=component',
resultsContainer: 'googleSearchResults',
errorCode: '0',
errorMsg: 'Call to a member function isSite() on null',
googleResultsTitle: 'We couldn\'t find what you were looking for, but you may be interested in the following:',
formTitle: 'Alternatively, you can search our site:',
formAction: '/k2',
formSubmit: 'SEARCH',
returnTo: 'or return to the',
returnLinkTitle: 'Return to the home page',
returnLinkText: 'home page'
}
</script>
<script type="text/javascript" src="cdn.nuevvo.net/templates/error.js">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<![endif]-->
</head>
<body class="errorWrapper">
<div id="loadErrorPage">Loading...</div>
</body>
Please Log in or Create an account to join the conversation.
- Chris
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
4 years 5 months ago #176173
by Chris
Replied by Chris on topic 403 error when edit item or new item in front end.
I'm also getting this error on other sites using K2, even where front end editing has worked in the past. These sites have various templates.
Please Log in or Create an account to join the conversation.