Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2013-11-26 14:52:43
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
[solved] Plugin code is not saved after editing
I want to change the code of the plugin – but it is not saved.
Forbidden
Offline
Re: [solved] Plugin code is not saved after editing
Hi
Are you trying to install or save a plugin. If it is to install it you may have to find the compressed version
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2013-11-26 16:13:35
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [solved] Plugin code is not saved after editing
Hi
I’m not talking about it. The plugin is already installed and running. I want not much change the plugin code. But I can not save the modified code.
Offline
Re: [solved] Plugin code is not saved after editing
Have you tried doing it in plugin composer?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2013-11-26 19:58:05
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [solved] Plugin code is not saved after editing
I installed the plugin lam_image_uploader
then edit plugin code
But, i’m can’t save. Forbidden
Last edited by alivato (2013-11-26 19:59:53)
Offline
#6 2013-11-26 23:44:33
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [solved] Plugin code is not saved after editing
It might be caused by code injection prevention software (?) on the host. When you edit a plugin, its source code is passed as POST data and if there’s anything in there that the host doesn’t like it’ll prevent the save operation completing.
I’ve noticed this recently and it was caused by URLs in the source code which included “http://” – I see this is the case with lam_image_uploader too. Rather than saving the edit I was getting redirected to a 404 – not found page.
Workarounds:
- re-engineer the plugin to avoid it containing anything with “http://”
- edit the plugin offline & upload to the website
Have also seen a similar problem in the Article Edit tab – I erroneously had a “http://blah.blah.com” in one of the custom fields & I wasn’t able to save the article edit. “http://” links in article bodies don’t seem to cause the same issue.
Offline
#7 2013-11-27 07:34:58
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [solved] Plugin code is not saved after editing
hmm
how I can edit plugin offline and upload
Offline
#8 2013-11-27 11:43:08
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [solved] Plugin code is not saved after editing
Maybe it has something to do with .htaccess
?
Offline
Re: [solved] Plugin code is not saved after editing
Contact your hosting service provider’s support, and ask what’s up, whether they are filtering requests. Politely state your issue in details, and explain that your own legitimate HTTP requests are blocked due to potential security filtering and request whether they can disable, or loosen, those rules for you.
Offline
Re: [solved] Plugin code is not saved after editing
gomedia wrote:
I’ve noticed this recently and it was caused by URLs in the source code which included “http://” – I see this is the case with lam_image_uploader too. Rather than saving the edit I was getting redirected to a 404 – not found page.
Thanks a lot for this. I’ve been getting the same errors for ages. Each time I would contact my hosting company and they would usually do something to stop it happening, but only for the specific instance I was dealing with. But then the last time I tried to do it, they told me that they had no idea what was generating the error and I was stuck.
Now I at least have something to try.
Offline
#11 2013-11-28 03:09:22
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [solved] Plugin code is not saved after editing
alivato wrote:
how I can edit plugin offline and upload
The idea is that you edit the plugin’s “original” source code, compile it & install it as you would normally. However it’s a bit fiddly … I’ve never worked out a way of reverse-compiling a plugin which includes the textile formatted help. If you can get the original source code from the developer, it would be a way around this. Perhaps the TXP devs might be able to advise?
The other option is to dump the whole website database, restore it on a host that doesn’t have security paranoia (e.g. your local development Mac/PC), edit the plugin, and then dump again & restore onto the live site.
Life’s never simple!
EDIT: I’ve found an online decompiler
Last edited by gomedia (2013-11-28 04:09:45)
Offline
#12 2013-11-28 03:12:32
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [solved] Plugin code is not saved after editing
alivato wrote:
Maybe it has something to do with .htaccess?
I don’t think so. For many of my websites I have exact duplicates – one on my Mac & one online – the .htaccess files are essentially the same but I only see this problem online. I’ve been able to work around the issue because I can edit to my heart’s content locally, then dump & restore online.
Offline