admin管理员组文章数量:1316523
I have changed my WordPress site url in wp-config.php by adding this two lines:
define( 'WP_HOME', 'http:// $new url' );
define( 'WP_SITEURL', 'http:// $new url' );
almost everything working fine, but I have some plugins that still trying to get data from the old url, for example:
https://OLD URL/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.3.0
there is another place that I should update the new url for the plugins?
thanks
I have changed my WordPress site url in wp-config.php by adding this two lines:
define( 'WP_HOME', 'http:// $new url' );
define( 'WP_SITEURL', 'http:// $new url' );
almost everything working fine, but I have some plugins that still trying to get data from the old url, for example:
https://OLD URL/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.3.0
there is another place that I should update the new url for the plugins?
thanks
Share Improve this question asked Sep 22, 2019 at 13:02 chelemchelem 211 bronze badge3 Answers
Reset to default 0No, that should be enough.
- Elementor sets its base URL
ELEMENTOR_URL
fromplugins_url
plugins_url
uses WP_PLUGIN_URL which is set in default-constants.php- WP_PLUGIN_URL is constructed from WP_CONTENT_URL which is constructed from
get_option('siteurl')
- there's a default
options_siteurl
filter called_config_wp_siteurl
that overrides the value fetched from the database with WP_SITEURL if set.
So assuming you don't have WP_PLUGIN_URL defined and that this isn't a multisite, there's nothing else you need to configure, no. I'd start by checking the value of WP_PLUGIN_URL that's being generated by default-constants.php, or if you have any plugins_url
filters defined somewhere.
Please try going to Settings > Permalinks and clicking the "Save Changes" button. This will flush the rewrite rules. You don't need to make any changes and it will still work.
You can also do it with the flush_rewrite_rules();
function. But, you wouldn't want to leave it in your code since you only need to flush the rewrite rules once.
If that doesn't work there are more things to try.
Edit
Take a backup of your site before continuing, and save it remotely (not on the same server as the site)!
The next thing I would do is search the database and see if I can find the old URL stored there. Then, you can find where it needs to be changed (and diagnose any issues thenceforth). Additionally, since the issue you posted above is related to Elementor, you may want to try running Elementor's Search and Replace tool as described here. If you prefer to use something other than Elementor's tool (I have never used it personally) you can try this, which I have found to make reliable work of the task.
If the old URL is not in your database, it must be hard-coded somewhere.
If that is the case, let me know and I can describe how to run grep
on your code base to find where the string is hiding.
I hope it helps!
Late answer here, but according to Elementor doc. it must have WP_HOME
and WP_SITEURL
set equal.
Sometimes, if your URL in the back-end is different than the one in the front-end it can also lead to this problem. Make sure that the Site Address (URL) is the same as the WordPress Address (URL) to avoid loading issues.
source: https://elementor/help/cant-edit-with-elementor/
with that in mind, some settings/text is stored in the database, including the previous domain name.
So also go through the data in the database and change the old domain name to the new one. (remember to backup first!)
本文标签: pluginsplugings request url is the old url
版权声明:本文标题:plugins - plugings request url is the old url 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742005125a2411799.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论