• It returns “Call to undefined function wp_generate_attachment_metadata() …” when I try to upload an image from the frontend. When I change the line #101 of the main plugin file to “include_once( ABSPATH . ‘wp-admin/includes/image.php’ );” instead of “require_once( admin_url() . ‘includes/image.php’ );”, it starts working.

Viewing 1 replies (of 1 total)
  • gmasterpos

    (@gmasterpos)

    hello

    please can you help me regarding this plugin when i upload in my account page in the front end i get the following error below
    Warning: require_once(): https:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/gmasterp/public_html/wp-content/plugins/woo-custom-profile-picture/woocommerce-custom-profile-picture.php on line 101

    Warning: require_once(https://gmasterpos.com/wp-admin/includes/image.php): failed to open stream: no suitable wrapper could be found in /home/gmasterp/public_html/wp-content/plugins/woo-custom-profile-picture/woocommerce-custom-profile-picture.php on line 101

    Fatal error: require_once(): Failed opening required ‘https://gmasterpos.com/wp-admin/includes/image.php’ (include_path=’.:/usr/local/php70/pear’) in /home/gmasterp/public_html/wp-content/plugins/woo-custom-profile-picture/woocommerce-custom-profile-picture.php on line 101

    PLEASE WHAT DO I DO TO MAKE IT WORK
    THANKS

Viewing 1 replies (of 1 total)
  • The topic ‘Returns Call to undefined function wp_generate_attachment_metadata()’ is closed to new replies.