I am new to Drupal and am facing an issue where any theme that I try to install will fail with the following message:
Installing light_skeleton
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=4&op=do_nojs&op=do
StatusText: Forbidden
ResponseText:
403 Forbidden
403 Forbidden
nginx/1.9.10
The root folder is owned by www-data:www-data
and I have given the directory 775 permissions. I have also tried to give it a full access using chmod 777
but without success.
I have checked the logs of nginx and php but there are no errors displayed. The site itself, using the standard theme, works without any issues.
After getting the error, I get:
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 291 of core/modules/update/update.authorize.inc).
Warning: Invalid argument supplied for foreach() in update_authorize_install_batch_finished() (line 291 of core/modules/update/update.authorize.inc).
Notice: Undefined index: log in update_authorize_install_batch_finished() (line 332 of core/modules/update/update.authorize.inc).
Notice: Undefined index: tasks in update_authorize_install_batch_finished() (line 333 of core/modules/update/update.authorize.inc).
Installation failed! See the log below for more information.
ini_set()
being disabled. Maybe that is the problem.ini_set()