Ok.
I worked this one out.
The problem is caused by a conflict in priorities of the do_action.
Both ACF and WPSC have a ‘save_post’ with a priority of 10.
This is the referring article
http://support.advancedcustomfields.com/forums/topic/text-area-fields-are-not-saving-on-update/
To fix this without hacking the WPSC file (Which gets overwritten on an update) then add this to your functions.php file.
if( has_action( 'save_post', 'wpsc_admin_submit_product' ) )
{
remove_action( 'save_post', 'wpsc_admin_submit_product' );
add_action( 'save_post', 'wpsc_admin_submit_product', 1, 2 );
}
This will replace the ‘save_post’, ‘wpsc_admin_submit_product’ do_action with one that has a lower priority.
This works for me and hopefully you.
I’m running this
php_value max_input_nesting_level 128
php_value max_input_time 300
php_value max_input_vars 3000
php_value max_execution_time 300
php_value post_max_size 32M
php_value memory_limit 128M
In the htaccess file. i’ve also checked phpinfo and the settings are correct.
There is no errors in the logs regarding memory limits.
The standard fields of the page are saving changes e.g. Title/Content etc.
It is just the ACF fields that do not change.
Were do you want me to debug the issue?
_functions.php -> update_field or update_value ???
Hi Elliot,
Firstly thanks for replying.
Secondly… your plugin is great… Keep up the great work and I’ll keep paying for premium plugins.
I’ve changed the fields and we still have the same problem.
(8878, 454, 'alternative_images_2132155_0_alt_image_2135469456', '668'),
(8879, 454, '_alternative_images_2132155_0_alt_image_2135469456', 'field_5216e415fb920'),
(8880, 454, 'alternative_images_2132155', '1'),
(8881, 454, '_alternative_images_2132155', 'field_5216e3e8fb91f'),
(8882, 454, 'alternative_images_2132155_1_alt_image_2135469456', '667'),
(8883, 454, '_alternative_images_2132155_1_alt_image_2135469456', 'field_5216e415fb920');
OK.
I’m also running the latest version (nightly) of ACF via github and i’ve added the htaccess entries
php_value max_input_nesting_level 128
php_value max_input_time 300
php_value max_input_vars 3000
php_value max_execution_time 300
php_value post_max_size 32M
Give this a go as well
I’ve also tested the save_post function in the acf_input class.
Everything works if I end this function with the exit() command.
Then when saving/updating the page the page loads as a WSOD (of coarse) then if you us the back arrow on the browser to go back and refresh the page the changes have been made.
Why this happens I HAVE NO IDEA but this may help with the issue.
Hope it helps
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!
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.