Using add_meta_box on a page with file upload and importing fields

Just an idea: the priority of add_action might be the issue. Right now, no priority is used, so the action runs very early and may get overwritten by other actions. Try 999, so the saving of the data happens last.

add_action('save_post', 'acf_add_meta_data',999);
add_action('new_to_publish', 'acf_add_meta_data',999);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)