Hello all,

I am wondering why I get this error as I am trying to install a theme:

An error has occurred.
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /core/authorize.php/core/authorize.php?batch=1&id=3&op=do_nojs&op=do
StatusText: Forbidden
ResponseText:
403 Forbidden
403 Forbidden
nginx/1.6.3

This is Drupal 8 running on nginx v1.6.3 on Centos 7.

Thanks in advance for any and all help.

Cheers,

Boris.

Comments

borepstein’s picture

Here is the one, it appears:

Type php
Date Sunday, August 7, 2016 - 10:07
User admin
Location http://borisepstein.info/core/authorize.php/?batch=1&id=2&op=finished
Referrer http://borisepstein.info/core/authorize.php?batch=1&id=2&op=start
Message Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 293 of /usr/share/nginx/html/drupal-8.1.7/core/modules/update/update.authorize.inc).
Severity Warning

Also, the same happens when you upload the theme package:

An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /core/authorize.php/core/authorize.php?batch=1&id=4&op=do_nojs&op=do
StatusText: Forbidden
ResponseText:
403 Forbidden
403 Forbidden
nginx/1.6.3

Also, the following appears to potentially be related:

https://www.drupal.org/node/2583799

Anybody got any perspective on it?

Thanks,

Boris.

samhaldia’s picture

Update to true allow_authorize_operations in your settings.php Drupal 8

    $settings['allow_authorize_operations'] = FALSE; #set it to True

alejandropriv’s picture

rewrite ^/core/authorize.php/core/authorize.php(.*)$ /core/authorize.php$1;