• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • WordPress
  • Android
  • How to
  • About Me

Elementor Plugin and Nginx Configuration

June 17, 2020 by Gokul Deepak S 9 Comments

Error:

Permalinks for domain.com/post-name is working fine. All pages are working well and good. There was no other problem until I tried to edit a published page with Elementor.
The page isn’t loading and returns with the error
‘Preview Could Not Be Loaded’.

Search Hunt:

Elementor document asked me to try with safe mode. Even in safe mode, it is not working.
Finally, I have found another page asking me to make changes in .htaccess
As I’m using Nginx I have made this change into Nginx config file and it worked out.

Solution:

nginx config file location. It can be found in /etc/nginx/nginx.com or /etc/nginx/sites-available/domain.com.conf or /etc/nginx/conf.d/default.conf

sudo vi /etc/nginx/conf.d/default.conf

Find for the code

location /{
try_files $uri $uri/ /index.php?q=$uri$args;
}

Replace the above with

location /{
try_files $uri $uri/ /index.php$is_args$args;
}

save the configuration by pressing escape key and :wq

sudo systemctl restart nginx

In your WordPress admin panel of website go to Settings-> Permalinks

Change it to Plain and save. Again Change it to Post name and save.

Elementor Plugin and Nginx Configuration would work perfectly now.

Filed Under: Nginx Tagged With: Elementor, Wordpress plugin

Authored by Gokul Deepak S

Leave a Reply Cancel reply

9 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
pakhilnair
pakhilnair
2 years ago

Oh my god! I love you man!
You’re a life saver!! Thanks a lot. I’ve been pulling my hair out for the last two days!

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  pakhilnair
2 years ago

Glad that it helped you.

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  pakhilnair
8 months ago

Glad that it helped!

0
Reply
Ivan
Ivan
2 years ago

Yo are the man!! Thans so much

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  Ivan
8 months ago

My pleasure Ivan!

0
Reply
David
David
1 year ago

Thanks!! I spent hours looking for this!

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  David
8 months ago

Welcome David!

0
Reply
medinadato
medinadato
1 year ago

You saved my life. Many thanks for this post.

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  medinadato
8 months ago

Haha! My pleasure!

0
Reply

Primary Sidebar

Popular Pages

  • How to find the date of the Facebook group it was created
  • Home
  • How to add ads.txt on Bluehost
  • CORS error in Apache Tomcat - Solved
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • Elementor Plugin and Nginx Configuration
  • Combine two separate files line by line in Notepad++

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2023 ยท Maintained by GokulDeepak

wpDiscuz