最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WordPress Nexus Theme front-end editor broken because cannot find wp-load.php

programmeradmin0浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 5 years ago.

Improve this question

I’ve got a Nexus Theme (/) that stopped allowing me to edit through the frontend. Gives an “Error transferring data. Please try again later.” Console reports “Could not find wp-load.php (//) (), see nxs-ajax.php”“. It’s also breaking the theme’s contact form from submitting.

This started happening ever since the site was moved to Flywheel’s new cloud platform (Google Cloud). Now with the cloud platform, they move wp-admin and wp-includes into /.wordpress/. So the theme can no longer locate wp-load.php.

The theme file that looks for wp-load.php, is nxs-ajax.php (located in sftp.flywheelsites/clientname/clientsite/wp-content/themes/themename/nexusframework/stable/nexuscore/webservices/)

The nxs-ajax.php:

I’ve been working with Flywheel support and they first suggested changing the WP_LOAD_PATH to “require_once(“../../../../.wordpress/wp-load.php”);” That did not help. They also suggested just removing that line entirely, but that didn't help either.

The nxs-ajax.php file has a bunch of if statements depending on where your files are located.

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 5 years ago.

Improve this question

I’ve got a Nexus Theme (https://nexusthemes/) that stopped allowing me to edit through the frontend. Gives an “Error transferring data. Please try again later.” Console reports “Could not find wp-load.php (//) (), see nxs-ajax.php”“. It’s also breaking the theme’s contact form from submitting.

This started happening ever since the site was moved to Flywheel’s new cloud platform (Google Cloud). Now with the cloud platform, they move wp-admin and wp-includes into /.wordpress/. So the theme can no longer locate wp-load.php.

The theme file that looks for wp-load.php, is nxs-ajax.php (located in sftp.flywheelsites/clientname/clientsite/wp-content/themes/themename/nexusframework/stable/nexuscore/webservices/)

The nxs-ajax.php: https://gist.github/petebocken/90ca0099d1f48f6f08fbfab0d0235d49

I’ve been working with Flywheel support and they first suggested changing the WP_LOAD_PATH to “require_once(“../../../../.wordpress/wp-load.php”);” That did not help. They also suggested just removing that line entirely, but that didn't help either.

The nxs-ajax.php file has a bunch of if statements depending on where your files are located.

Share Improve this question asked May 20, 2019 at 20:38 petebockenpetebocken 1111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

Here was the fix supplied by Flywheel support. They went above and beyond to help me figure this out. Amazing!

<?php

    // let's load WordPress
    require_once(ABSPATH . 'wp-load.php');
    require_once(ABSPATH . 'wp-admin/includes/admin.php');

    //send_nosniff_header();

    nxs_ajax_webmethods();

    die();
?>
发布评论

评论列表(0)

  1. 暂无评论