Member
Member
TeknoSmurf   2013-11-09, 16:02
#1

I am getting a 403 error whenever I try to update the plugin options on the Options > Plugin page (i.e. zp-core/admin-options.php?page=options&tab=plugin). I am able to update options in other pages and tabs without any problem. It's just in this one page where I'm getting the 403 error.

Does anybody know what's causing this? I've tried changing the permissions of the zp-core and zp-data folders but to no avail.

Any help or insight on this problem will be greatly appreciated.

Thanks.

Administrator
Administrator
acrylian   2013-11-09, 16:04
#2

As always: What do the ZP debug log and the server error log tell?

Member
Member
TeknoSmurf   2013-11-09, 16:31
#3

There were a bunch of entries there so I reset the log in order to get a clean slate. I can then see the specific errors that get logged when I do the update. However, when I went to recreate the error, the error did happen but there was nothing in the log. just a trash can labeled "Delete". So I clicked on it and it ended up deleting the "Debug" tab. Not what I was expecting it to do. I thought I was just clearing out the trash bin.

How do I get the Debug tab back in the Logs page? And more importantly, why wasn't the 403 Error logged in the debug log?

Member
Member
TeknoSmurf   2013-11-09, 16:35
#4

BTW, acrylian, thanks for replying back so quickly. :o)

Member
Member
TeknoSmurf   2013-11-09, 16:41
#5

The server log doesn't provide much info. Just the following:

"GET /gallery/zp-core/zp-extensions/zpCaptcha/c.php?i=f8d09c4b02 HTTP/1.1" 200 … zp-core/admin-options.php?page=options&tab=plugin...

"POST /gallery/zp-core/admin-options.php?action=saveoptions HTTP/1.1" 403 ...zp-core/admin-options.php?page=options&tab=plugin...

Administrator
Administrator
acrylian   2013-11-09, 18:01
#6

That is the access log, we need the debug log. The one from ZP and the server one.

Member
Member
TeknoSmurf   2013-11-09, 18:09
#7

If you are referring to the log that's displayed in the Logs > Debug tab, there is nothing there. The log is empty. Only the Security and the Setup tabs have any entry in there.

I'm not sure what you mean by the server log. Where would I find that? I am running zenphoto on a hosted site so I don't have free access to system files on the host server.

Member
Member
TeknoSmurf   2013-11-09, 18:10
#8

I have a copy of zenphoto running on my computer which I use for testing but I'm not having this issue on my computer, just on the hosted site.

Member
Member
sbillard   2013-11-09, 18:19
#9

"403" is an access denied error. So probably there is a file permissions issue, possibly with the plugin you are trying to set options on.

Member
Member
TeknoSmurf   2013-11-09, 18:26
#10

@sbillard: That's what I was thinking and I've checked just about all the files and folders and they are all set to chmod 755. If I knew which file was causing the issue, I can check that file specifically.

It looks like I'm getting this error only when I try to update the Options > Plugin page or edit any file of a duplicated theme in Themes page. What do these two pages have in common that could be causing the 403 error?

Administrator
Administrator
acrylian   2013-11-09, 18:51
#11

The plugins list needs to access the plugin files to load them when enabled.

In any case you should find the server error log for any future problems. Only your host can tell you were that is.

Member
Member
TeknoSmurf   2013-11-09, 19:03
#12

This is what's in the Error log for the hosting server:

[Sat Nov 09 13:01:08 2013] [error] [client 64.121.73.199] ModSecurity: Access denied with code 403 (phase 2). Operator GT matched 255 at ARGS. [file "/hsphere/local/config/httpd2/modsecurity-core-rules/modsecurity_crs_23_request_limits.conf"] [line "31"] [id "960335"] [rev "2"] [msg "Too many arguments in request"] [severity "WARNING"] [ver "OWASP_CRS/2.2.6"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/POLICY/SIZE_LIMIT"] [hostname "xxxx.com"] [uri "/gallery/zp-core/admin-options.php"] [unique_id "Un54ZH8AAAEABo3hJrQAAAAI"]

Administrator
Administrator
acrylian   2013-11-09, 19:09
#13

This is server security triggering. You have to ask your host to lower the rule involved. Or change the number of plugins per page on the options to workaround.

Member
Member
TeknoSmurf   2013-11-09, 19:24
#14

OK, thanks, Malte. I'll check with the provider tech support. I'll also look into the workaround option just to get around this issue for now. :o)

Member
Member
TeknoSmurf   2013-11-09, 19:43
#15

I have temporarily worked around the issue by removing a few plugins and was able to successfully apply the updates I wanted.

Thanks, Malte and sbillard, for your help and time. I truly appreciate it.

…Leo

Member
Member
sbillard   2013-11-09, 22:17
#16

You can also access the plugin options as an individual page by clicking on the "options" icon in the plugin selection.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.