Hi Jeff – after re-installing the USP plugin the error persisted. I did a little research on the error – wp_generate_attachment_metadata() – found this:
Hi Jeff – after re-installing the USP plugin the error persisted. I did a little research on the error – wp_generate_attachment_metadata() – found this: “If this function is undefined in the environment where it is to be used, such as within a Shortcode, use the include function:
if ( ! function_exists( ‘wp_crop_image’ ) ) {
include( ABSPATH . ‘wp-admin/includes/image.php’ );
}
Since I call USP with a shortcode on a “submit form” page , I added that code to the USP file shortcode-misc.php and it solved the problem. I’m not sure how generalizable this problem and fix is – but it’s now working for me.