• 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
1 year 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
1 year ago

Glad that it helped you.

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  pakhilnair
1 month ago

Glad that it helped!

0
Reply
Ivan
Ivan
1 year ago

Yo are the man!! Thans so much

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  Ivan
1 month ago

My pleasure Ivan!

0
Reply
David
David
11 months ago

Thanks!! I spent hours looking for this!

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  David
1 month ago

Welcome David!

0
Reply
medinadato
medinadato
10 months ago

You saved my life. Many thanks for this post.

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  medinadato
1 month ago

Haha! My pleasure!

0
Reply

Primary Sidebar

Popular Pages

  • How to find the date of the Facebook group it was created
  • Home
  • Combine two separate files line by line in Notepad++
  • Can't connect to Ubuntu with SSH
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • How to Display only Title in Category page Genesis
  • Elementor Plugin and Nginx Configuration
  • CORS error in Apache Tomcat - Solved
  • How to block access to the wp-content uploads folder

Archives

Categories

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

Tags

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

Copyright © 2022 ยท Maintained by GokulDeepak

wpDiscuz