• Resolved dinhlinhit

    (@dinhlinhit)


    i use the plugin in two websites, but only one working. A website not working. I debugged and it show error
    ” Undefined variable: post_type in /home/kbegipmshosting/public_html/petto.vn/wp-content/plugins/upload-media-by-url/uploadmediabyurl.php on line 105″
    I hided this line, but it not working.
    I compared two website. the website not working don’t have hidden code “modalDialog”

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author notetoservices

    (@notetoservices)

    Sounds like your PHP version requires globals to be declared strictly.

    If you hadn’t commented out the code, you could add to the top of the function:

    global $pagenow;

    However, since you’ve commented it out. You’ve now provided an entirely new error.

    It sounds like modalDialog doesn’t exist, yet it does, so either you made some of your own changes or deleted code. Might be best to uninstall, delete, and reinstall the plugin.

    Thread Starter dinhlinhit

    (@dinhlinhit)

    Thank you for support
    My website have woocomerce plugin. I hidden from 105 to 109 in uploadmediabyurl.php

    105 //if ( $post_type == 'shop_order' ) return; // fix issue of plugin being loaded on WooCommerce pages
     106   //	make sure plugin is not conflicting with WooCommerce at all
    107//     if( function_exists("is_shop") ) {
    108// 	return;
    109//     }

    It working ok.

    Plugin Author notetoservices

    (@notetoservices)

    I am glad you found the issue. WooCommerce is listed as one of the plugins that does conflict with this plugin, unfortunately.

    There will be future plans to likely have a better popup modal or something that does not conflict so much other plugins, but it seems there are a few plugins that touch that media screen, which does provide some challenges to the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘pop up not show’ is closed to new replies.