There has been a critical error on your website

Look at your site (apache2) error.log. If you see access errors (can’t mkdir, can’t rmdir, permission denied), you may be dealing with a permissions problem. the wp-content folder and it’s children/subfolder need to be writable by the web server. Usually (on an ubuntu-apache combination), this requires that you change ownership (via chown) for the whole … Read more

URL path image error in ACF (Advanced Custom Field) [closed]

There are a couple of different ways to work with the ACF image object, depending on the return type: https://www.advancedcustomfields.com/resources/image/. It looks like you’re working with an array, but you’ve got some extra image attribute markup. Try something like this: <img src=”https://wordpress.stackexchange.com/questions/354614/<?php echo esc_url($im[“url’]); ?>” alt=”<?php echo esc_attr($im[‘alt’]); ?>” class=”top-ten”>

Why does plugin_url append absolute file path?

Firstly. it doesn’t look like you’re using the $src for your wp_enqueue_script Then from the Codex I found the following similar code: wp_enqueue_script(‘my-script’, get_stylesheet_directory_uri() . ‘/js/my-script.js’); wp_localize_script(‘my-script’, ‘myScript’, array( ‘pluginsUrl’ => plugins_url(), )); Perhaps try the following: wp_enqueue_script(‘nova-payflow-plugin’, get_stylesheet_directory_uri() . ‘/js/my-script.js’); wp_localize_script(‘nova-payflow-plugin’, ‘pluginValues’, array( ‘pluginUrl’ => plugins_url(), )); But change the $src value above which … Read more

User updating their profile wipes my custom fields

I see two problems in your code. The first one is the user capability level and the second one is how you’re saving the data. You can fix the first one by setting the capability requirement in your saving function higher, some capability that only administrators have. Regarding edit_usercapability, WordPress Capabilities: edit_user vs edit_users The … Read more