• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Worpdress: Dashboard not working in preview mode

Eg0

New Pleskian
Hello,

I'm quite new with Plesk and I'm currently facing an issue with a wordpress website.
Before posting here, I read the Plesk documentation and looked other website which could help me.

I setup a wrodpress on an existant domain without changing the DNS. So I can only use the preview mode.

This is what I have

From here I can also access to the dashboard (wp-admin), log it and navigate between page.
When I check the settings page, home and site url are like this this in preview mode:

'http://xxx.xxx.x.xxx/plesk-site-preview/domain.com/http/xxx.xxx.x.xxx/'

and in the DB, we only have this
'Website Domains Names & Hosting | Domain.com'

Until here I suppose everything looks correct and works, BUT

My issue is if I want to work with this version of wordpress from the dashboard , nothing works.

I can't add any pages, I can't add/update any plugin, if the theme provide DEMOS, I can't download them too.

When I check the console, it display me these error:

i.e when I want to update a plugin:
'http://xxx.xxx.x.xxx/wp-admin/admin-ajax.php (404)'

The url should be 'http://xxx.xxx.x.xxx/plesk-site-preview/domain.com/http/xxx.xxx.x.xxx/wp-admin/admin-ajax.php' I guess.

It point my plesk url and not the preview mode url evne it is setted in the settings.

In summary, all action url is incorrect.

I already follow some fix provided from other forum even it is not the same issue, none of them worked.

I also add the "plesk-preview" url on the DB and end up with a 502 error when trying to access wp-admin.

At the end, I decided to post here my issue if I can find a solution.

Thanks in advance for the help.

Here some url I looked but didn't help me much:

 
i think its because its another domain than the domainname thats configure in wordpress self
i recommend that you create a subdomain like dev.yourdomain.tld , do everything until its finished.
that move your wordpress to yourdomain.tld with plugins like updraft plus, duplicator etc.
 
Thanks for the reply.

@Rasp I thought that solution in first place but I'm not the only one who will work on the website and the others doesn't know about tech stuff (even if it's quite easy to modify the hosts file) without thinking sharing the website with the client.

@BNO I also thought it (and tested it also) without success. In most case, it's the client who own the domain and they do the swith to our server when it's done. Using the dev subdomain means that the client need to create it and point our server.

Is it an "issue" (maybe a common) with Plesk (or Wordpress) or expected behavior from Plesk. Is there way to configure Plesk or Worpdress to "override" the path ?

Because, for now, we can't work with the preview mode and developping a wordpress website with Plesk (not the managing part) is not very useful for us.

Thanks again for the help.

Edit:

I didn't think it at a first place but @BNO solution couldn't work in client side but with creating the subdomain with our own domain (our website) as a workplace, it could work and which is the case.
 
Last edited:
Back
Top