Forum Replies Created

Viewing 13 replies - 61 through 73 (of 73 total)
  • Forum: Plugins
    In reply to: [media helpers] How to?
    Plugin Author Fabien Quatravaux

    (@fab1en)

    I have updated the plugin to make the “URL media” feature compatible with WP 3.5 (and WP 3.6). As a bonus, you can now add a file pointing to an external URL directly from the Media Library > Add menu.

    Please let me know if this solves your issue.

    Forum: Plugins
    In reply to: [media helpers] How to?
    Plugin Author Fabien Quatravaux

    (@fab1en)

    All features provided by this plugin are optional. You have to enable it via the Settings > Media page. The features you are looking for are “URL media” and “Change media file”.
    To add a new media from an external URL, open the media editor and select the “URL media” tab (works only with the previous version of WP Media Manager).
    To change the file of a media, go to that media page from the library and scroll down the page. You will see a “Change media file” section with an upload button that lets you select a file from your hard drive.

    However, the version 1.0 of this plugin does not work with the new Media Manager that came with WordPress 3.5. Let me update the plugin version to make this work again.

    Thread Starter Fabien Quatravaux

    (@fab1en)

    What I need is not in Blog topics, the category I mentioned was just an example. I just need to add some custom fields in the Admin > Sites > Infos page.

    I finally found a (uggly) solution : checkout my answer on stackexchange.

    But I still don’t know how to submit a core change request. Is it Track the proper place ?

    Same issue here : og_frontpage_image and og_frontpage_desc options had no effect.
    I applied a patch similar to deas0815 one and it works now.
    You can see it online here.

    Thread Starter Fabien Quatravaux

    (@fab1en)

    The site is online here : https://cabouge.tv5monde.com/, but there is not direct link examples for the CPT fiche_pedagogique.

    Hello
    I have the same error here, with the javascript code “function blabla” displaying instead of the success message.

    It seams that this problem appears in conjunction with an ERROR 500 reply from the server. The javascript code that gets displayed is from the minified jquery source. In my opinion, you should seek for the bug in the followed bunch of code (l296 of the main file):

    if (success) {
    	rt_successes = rt_successes + 1;
    	$("#regenthumbs-debug-successcount").html(rt_successes);
    	$("#regenthumbs-debuglist").append("<li>" + response.success + "</li>");
    }
    else {
    	rt_errors = rt_errors + 1;
    	rt_failedlist = rt_failedlist + ',' + id;
    	$("#regenthumbs-debug-failurecount").html(rt_errors);
    	$("#regenthumbs-debuglist").append("<li>" + response.error + "</li>");
    }

    The success/failure test perhaps fails.

    Thread Starter Fabien Quatravaux

    (@fab1en)

    I Richard who wants to know.

    As the WordPress code and Yoast SEO plugin code are free software, you are free (and encouraged) to contribute. Feel free to complete the “Description” and “FAQ” sections of the official plugin page with adequate, well-written documentation in correct English. I’m sure that if you send you own modified readme.txt file to Yoast, he will be happy to include it in the next release.

    Be constructive.

    Thread Starter Fabien Quatravaux

    (@fab1en)

    OK, I reply again to myself to say that it was not the better approach to hack the plugin.
    In fact, what you need to change in the static front page to have the title you want is not the WordPresss page title. It’s the WP SEO page title that can be set in the WP SEO options panel that appears below the main page content editor.

    Thread Starter Fabien Quatravaux

    (@fab1en)

    I finally hacked the plugin so that it fits my needs.
    The modification patch against the 1.2.2 version is here

    I would be great if it could be included in the next plugin version.

    I removed it from the documentation.
    Please post here or send me a message if I made a mistake.

    Any update on this topic ?
    I think it’s a documentation bug : the ‘mediapage’ post type does not exist in the core (at least in version 3.3), and ‘attachment’ is already mentioned in the list of builtin post types.

    I forgot another issue that needs to be solved to remove the warnings. The $post variable is not an array but an object, so you have to use the -> operator to access its properties. Here is the right syntax :

    function url_attached_file($file, $attachment_id) {
      global $post;
      $external = get_post_meta($attachment_id, LONGTAIL_KEY . "external", true);
      if (substr($post->post_mime_type, 0, 5) == "video" || $external) {
         $upload_dir = wp_upload_dir();
         return str_replace($upload_dir["basedir"] . "/", "", $file);
       }
       return $file;
    }

    Hi
    I can confirm that a lot of notices are displaying when WP_DEBUG option is turned on. Those messages are not preventing the plugin to work, but they are very annoying and force to set WP_DEBUG option off to use the plugin correctly.

    The main source of the notice are undefined variable that are not checked.
    Example :
    Notice: Undefined index: html5_file in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWShortcode.php on line 235
    if the html5 file has not not been specified.
    The line 235 is the following :
    $html5 = $atts["html5_file"];
    You should not access “html5_file” index of $atts array without verifying its existence:
    $html5 = array_key_exists("html5_file", $atts) ? $atts["html5_file"] : 'default_value';

    In the above example with the $post variable, you should declare it before using it. $post is a global WP variable that holds the current post :

    function url_attached_file($file, $attachment_id) {
        global $post;
        $minetype = $post["post_mime_type"];
        [...]
    }

    Here is a list of notice I have :
    On the front end, when displaying a video :

    Notice: Undefined index: html5_file in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWShortcode.php on line 235
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWShortcode.php on line 243
    
    Notice: Undefined index: download_file in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWShortcode.php on line 246
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWShortcode.php on line 254

    On the backend, when displaying the option page or when showing the add video tab :

    Notice: Undefined index: jwplayermodule_state in wp-content/plugins/jw-player-plugin-for-wordpress/admin/AdminContext.php on line 27 
    
    Notice: Undefined index: jwplayermodule_config in wp-content/plugins/jw-player-plugin-for-wordpress/admin/AdminContext.php on line 45 
    
    Notice: Undefined index: jwplayermodule_config in wp-content/plugins/jw-player-plugin-for-wordpress/admin/AdminContext.php on line 111 
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/framework/LongTailFramework.php on line 39 
    
    Undefined variable: errors in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWMediaFunctions.php on line 371 
    
    Notice: Undefined variable: id in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWURLImportManager.php on line 99 
    
    Notice: Undefined index: paged in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 25 
    
    Notice: Undefined variable: new_playlist_id in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 80
    
    Notice: Undefined index: paged in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 227
    
    Notice: Undefined index: 196 in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 300 
    
    Notice: Undefined index: 193 in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 300 
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 305 
    
    Notice: get_attachment_icon_src est déprécié depuis la version 2.5! Utilisez wp_get_attachment_image_src() à la place. in wp-includes/functions.php on line 3303 
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/EmbedManager.php on line 305
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWMediaFunctions.php on line 441 
    
    Notice: Trying to get property of non-object in wp-content/plugins/jw-player-plugin-for-wordpress/media/JWMediaFunctions.php on line 260
Viewing 13 replies - 61 through 73 (of 73 total)