Home › Forums › Backend Issues (wp-admin) › AJAX Issue due to WP_HOME differ from WP_SITEURL
Hi,
an ajax issue appears when my wordpress files are in a subfolder.
All Tabs are not hidden as usual due to this change. In my wp-config.php i have the following
define('WP_HOME','http://domain.com');
define('WP_SITEURL','http://domain.com/wordpress');
as explained here… http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Thanks for fixing
Hi @davids
Looks like the CSS is not being included correctly.
Do you have any CSS issues with other plugins?
Can you look in the source code for stylesheet that loads in ‘field-group.css’? What is the url for this file. Is it wrong? If so, what is wrong about it?
Thanks
E
You are right!
<link rel='stylesheet' id='acf-global-css' href='http://domain.com/wordpress/www/htdocs/w010bdef/domain.com/wp-content/plugins/advanced-custom-fields/css/global.css?ver=4.3.2' type='text/css' media='all' />
<link rel='stylesheet' id='acf-css' href='http://domain.com/wordpress/www/htdocs/w010bdef/domain.com/wp-content/plugins/advanced-custom-fields/css/acf.css?ver=4.3.2' type='text/css' media='all' />
This part is to much:
wordpress/www/htdocs/w010bdef/domain.com/
Just to know, my Domain is linkt to the following Rootpath directory:
/www/htdocs/w010bdef/domain.com/
i have no only two other plugins… so there are no issues
Hi @davids
Can you please also make sure that you have modified the constants for:
WP_PLUGIN_DIR
WP_CONTENT_DIR
ABSPATH
All these paths / urls must be correct for ACF to run correctly.
Thanks
E
Thank you for your hint!
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . 'content' );
had a /
before the content
I am having some issues here can you please give an example of how I should set each:
WP_PLUGIN_DIR
WP_CONTENT_DIR
ABSPATH
As I thought I had set them in wp-config correctly, but the URL is still incorrect in the source for the ACF stylesheet. It seems to give me the correct url at the end of the site url.
This is the URL:
http://site.com/folder/wordpress/nfs/c05/h01/mnt/78155/domains/site.com/html/folder/wp-content/plugins/advanced-custom-fields/css/acf.css?ver=4.3.8‘
I have wordpress in a folder and my wp-content folder in the root as per http://davidwinter.me/articles/2012/04/09/install-and-manage-wordpress-with-git/
Thanks.
The topic ‘AJAX Issue due to WP_HOME differ from WP_SITEURL’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.