Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
CircaCitadel Posted July 24, 2021 Posted July 24, 2021 I went to edit someone's post and I was met with this error: I've noticed this has happened on a few random posts but not all. Nothing in the content of the post seems out of the ordinary, it's just basic text. Any insight on how to fix this? May be worth noting that we don't have the time limit for post edits enabled, it's set to unlimited. SeNioR- 1
Marc Posted July 25, 2021 Posted July 25, 2021 If you are sure that there is no limit that has been set for the group that is trying to edit, then please submit a ticket and we can take a look for you to see what is happening
Afrodude Posted July 25, 2021 Posted July 25, 2021 1 hour ago, Marc Stridgen said: If you are sure that there is no limit that has been set for the group that is trying to edit, then please submit a ticket and we can take a look for you to see what is happening This happened to me too, and I reported the issue. You guys told me it's not related to IPS, and it could be a third-party plugin/ application issue which I don't believe so because I noticed this issue on sites who have zero third-party plugin/ application. This issue happened because of whenever you are trying to press on "Save" button after editing. The button keep saying "Saving....", and then this message show up. If you refresh the page you will notice that the post is already saved. SeNioR- 1
Marc Posted July 25, 2021 Posted July 25, 2021 17 minutes ago, Afrodude said: This happened to me too, and I reported the issue. You guys told me it's not related to IPS, and it could be a third-party plugin/ application issue which I don't believe so because I noticed this issue on sites who have zero third-party plugin/ application. This issue happened because of whenever you are trying to press on "Save" button after editing. The button keep saying "Saving....", and then this message show up. If you refresh the page you will notice that the post is already saved. We would generally advise on disabling all 3rd party items and testing, yes. However if you are still having issues the please respond back to the ticket
Afrodude Posted July 25, 2021 Posted July 25, 2021 2 minutes ago, Marc Stridgen said: We would generally advise on disabling all 3rd party items and testing I just said above I have tested other sites who have zero third-party plugin/ application, and yet it lead to the same results.
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 The easiest way to get the real error is edit a core file and change this error output to $e->getMessage() and try to edit the post again. Of course if you have FTP access to your server. You will get the exact reason. Then you revert back the edit after get the reason. Afrodude 1
opentype Posted July 25, 2021 Posted July 25, 2021 If it can be replicated for specific posts and users, isolating the problem through a ticket should be no problem.
Afrodude Posted July 25, 2021 Posted July 25, 2021 2 minutes ago, Adriano Faria said: The easiest way to get the real error is edit a core file and change this error output to $e->getMessage() and try to edit the post again. Of course if you have FTP access to your server. You will get the exact reason. Then you revert back the edit after get the reason. Does this include the status update? because this is where it happened more. Hisashi 1
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 3 minutes ago, Afrodude said: Does this include the status update? because this is where it happened more. Sure, any content item. I’m on a mobile device now. I’ll post the file and the required edit later. It may help someone in the future. Afrodude 1
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 18 minutes ago, Afrodude said: Does this include the status update? because this is where it happened more. Found it: https://invisioncommunity.com/forums/topic/431279-suggestion-content-controller-edit/ You will download the file. Change 'edit_no_perm_err' to $e->getMessage(). Save. Upload. Edit the post. The “real” error will be there. Revert the edit. Save. Upload the file. SeNioR- and Afrodude 2
Afrodude Posted July 25, 2021 Posted July 25, 2021 10 minutes ago, Adriano Faria said: Found it: https://invisioncommunity.com/forums/topic/431279-suggestion-content-controller-edit/ You will download the file. Change 'edit_no_perm_err' to $e->getMessage(). Save. Upload. Edit the post. The “real” error will be there. Revert the edit. Save. Upload the file. Alright now lets see what causing this issue really.
Afrodude Posted July 25, 2021 Posted July 25, 2021 @Adriano Faria sadly nothing has logged after editing this, and I still see the error whenever I edit that post.
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 Did you make the right edit, uploaded the edited file and tried to edit the content?
Afrodude Posted July 25, 2021 Posted July 25, 2021 2 minutes ago, Adriano Faria said: Did you make the right edit, uploaded the edited file and tried to edit the content? Yes. \IPS\Output::i()->error( $e->getMessage(), '1S136/17', 403, '' );
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 8 minutes ago, Afrodude said: Yes. No, your edit is wrong. See the code error that’s in the topic I linked: 2S136/E. You made the edit in the 1S136/17.
Afrodude Posted July 25, 2021 Posted July 25, 2021 (edited) 6 minutes ago, Adriano Faria said: No, your edit is wrong. See the code error that’s in the topic I linked: 2S136/E. You made the edit in the 1S136/17. \IPS\Output::i()->error( $e->getMessage() , '2S136/E', 404, '' ); I do have this as well, and no error logs have saved from the error I receive whenever I edit that post. Edited July 25, 2021 by Afrodude
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 45 minutes ago, Afrodude said: I do have this as well, and no error logs have saved from the error I receive whenever I edit that post. I see why. They changed it. Before it was redirected to a page and the error was there. Now it shows a JS alert. Anyway, the error is now logged: } catch ( \Exception $e ) { \IPS\Log::debug( $e, 'content_debug' ); \IPS\Output::i()->error( 'edit_no_perm_err', '2S136/E', 404, '' ); } See the debug there. So go to ACP -> System -> Support -> System Log and the error has to be there. I, for example, renamed the column forums_posts.post to forums_posts.postX then I got the alert but the error is in the log: Check your logs. abobader and SeNioR- 2
Afrodude Posted July 25, 2021 Posted July 25, 2021 (edited) 2 hours ago, Adriano Faria said: See the debug there. So go to ACP -> System -> Support -> System Log and the error has to be there. You are saying that the error must be there even without change 'edit_no_perm_err' to $e->getMessage(). If this is what you mean, then still no error logged at all about the edited post. Edited July 25, 2021 by Afrodude
Adriano Faria Posted July 25, 2021 Posted July 25, 2021 1 minute ago, Afrodude said: You are saying that the error must be there even without change 'edit_no_perm_err' to $e->getMessage(). Yes. In this case, submit a ticket. The error is now logged.
Afrodude Posted July 25, 2021 Posted July 25, 2021 52 minutes ago, Adriano Faria said: submit a ticket. The error is now logged. There is one already open, but IPS staff think it's not related to them even after testing by disabling all third-party stuff as suggested by them or testing on website that has zero third-party stuff installed.
opentype Posted July 25, 2021 Posted July 25, 2021 4 hours ago, Marc Stridgen said: However if you are still having issues the please respond back to the ticket ☝️ Marc 1
Afrodude Posted July 25, 2021 Posted July 25, 2021 (edited) 4 hours ago, opentype said: ☝️ I did that long time ago. Also, I opened another to report another bug, and IPS staff haven't looked at it yet since 28 hours ago. Edited July 25, 2021 by Afrodude
opentype Posted July 25, 2021 Posted July 25, 2021 (edited) 38 minutes ago, Afrodude said: I did that long time ago … Yes, you said that several times. We got that loud and clear. But you were asked by IPS staff to RESPOND AGAIN to that ticket if the issue persists and is apparently not caused by third-party code. Now please do that, as three people in this topic have advised. Adriano tried his best to help you here through the forums, but even he now suggests to go through a ticket as the issue apparently cannot be identified from a distance. And yes, tickets might take several days. Not hearing back about non-critical issues for 28 hours on a weekend is perfectly normal. Edited July 25, 2021 by opentype
Afrodude Posted July 25, 2021 Posted July 25, 2021 (edited) 14 minutes ago, opentype said: But you were asked by IPS staff to RESPOND AGAIN Which I have said that I did what he asked long time ago, and during the waiting for IPS staff to respond I was trying to solve or find what causing this issue with @Adriano Faria help. Edited July 25, 2021 by Afrodude
Recommended Posts