Unable to delete images on Drupal 7 site after installing Letsencrypt


#1

I recently installed letsencrypt ssl on my vps server successfully. SSL is being used for 4 domains, all are running on Drupal 7 sites, ubuntu 16, nginx, php7fpm and mariadb.

Now the issue: Unable to delete any of the uploaded images from within drupal environment. There is no issue for uploading any number of images but when you try to delete, ajax seems to be activated but nothing happened after that. If I disable letsencrypt, issue also resolved.

I checked all logs of nginx, and drupal found nothing left with respect to this issues.

I don’t know whether the issue is with letsencrypt or others. Please excuse me if it’s not ssl issues.

Can someone advise how to resolve this issue. If it’s not because of ssl, please guide me where to turn.


#2

It is unlikely to be directly related to Let’s Encrypt, but some software needs a configuration change or something similar after HTTPS is deployed. As an example, a CMS might have some kind of base URL configuration setting that needs to be changed to use https://.

A good starting point would probably to enable the developer console in your browser and see if it observes any errors. In Chrome: right-click the page, use “Inspect” (“Inspect Element” in Firefox) and switch to the “Console” tab. Then try to delete an image and see if any errors appear. The error will hopefully point you in the right direction.


#3

Thank you very much for your immediate response.

I set base url but found no difference.

Then experimented your valuable advise on Chrome and revealed following 2 errors:

  1. /file/ajax/field_article_image/und/form-FnKNTs1RfzawWVBuKtc6g_SodEoo3HiODEgN1JBlYeE:1 Refused to display ‘https://www.mydomain.com/file/ajax/field_article_image/und/form-FnKNTs1RfzawWVBuKtc6g_SodEoo3HiODEgN1JBlYeE’ in a frame because it set ‘X-Frame-Options’ to ‘DENY’.
    js_LQnf-pbrVZaNUHjmPzunXW9CU-7XqCG2PB78ZEK7zoU.js:294

  2. Uncaught DOMException: Blocked a frame with origin “https://www.mydomain.com” from accessing a cross-origin frame.
    at HTMLIFrameElement.t (https://www.mydomain.com/sites/default/files/js/js_LQnf-pbrVZaNUHjmPzunXW9CU-7XqCG2PB78ZEK7zoU.js:294:344)
    t @ js_LQnf-pbrVZaNUHjmPzunXW9CU-7XqCG2PB78ZEK7zoU.js:294

It seems either nginx or PHP causing the deny permission.

Thank you once again for your time and advise.


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.