Jump to content


eric

Member Since 11 Jan 2013
Offline Last Active Oct 03 2017 12:42 PM
*****

#24463 Much Slower Since Upgrade, Plus Pagination Problem

Posted by eric on 22 June 2015 - 05:59 PM

I'm getting a lot of short server timeouts since installing the new version. Could the new cache be hogging resources enough to cause this?

 

Seems unlikely to me. If anything it should prevent any kind of server load as it's just fetching HTML from a file and spitting it back out. Were you able to definitely narrow this down to TubePress? I'll be glad to investigate as we certainly don't want to make things worse with the new cache!

 

Also, question: Do you know if loading playlists vs user from youtube takes more resources? Or does combining the two? Or is it just a matter of how many total we're fetching?

 

Playlists vs. user doesn't really make any difference in terms of performance. It's really a matter of the number of sources that TubePress has to fetch. For each one, it has to go out to YouTube, pull back the data, and process it. Network operations like that are inherently slow, which is why we had the API cache. But as we saw even with the API cache TubePress was doing too much processing.

 

Another thing: I notice that when you go back to page one after going to another page in a gallery, it takes just as long to load as the first time you go to other pages. Then, after that, you can go back and forth and page one will load fast. But shouldn't page one already be cached, since we went their first?

 

Nice catch! That's a bug and I can send you the file to update until the next release of TubePress. Would you mind opening a ticket so I can reply with the file there? Would do so here but it's a Pro feature so we can't share it with the world.

 

Lastly, I'd like to set up cron jobs. How do you call the pages in a gallery, like this?

http://www.humortime...ubepress_page=2

 

When I put that in the url bar, it brings the page up. However, I notice that after doing it that way (pasting the url in), it will go fast back & forth to other pages, but then when I go back to clicking on the page number, it loads very slowly again, as if it's not cached. So, not sure what's going on there.

 

First, add this to your shortcode: galleryId="12345". Otherwise TubePress assigns a random ID and your cron requests won't prime the cache. Then your cron HTTP requests will follow this pattern:

http://www.humortimes.com/wp-admin/admin-ajax.php?tubepress_action=shortcode&tubepress_options%5Bmode%5D=playlist+%2B+user&tubepress_options%5BresultsPerPage%5D=1&tubepress_options%5BresultCountCap%5D=25&tubepress_options%5BorderBy%5D=newest&tubepress_options%5BperPageSort%5D=newest&tubepress_options%5BuserValue%5D=BuzzFeedVideo+%2B+klaatu42+%2B+HigtonBros+%2B+MediocreFilms+%2B+avengersweb+%2B+ChessClubComedy+%2B+pleatedvideo+%2B+TheSecondCityNetwork+%2B+Cracked+%2B+ERB+%2B+RhettandLink+%2B+cultcomedypictures+%2B+collegehumor+%2B+broadcomedy+%2B+UCBComedy+%2B+ImprovEverywhere+%2B+HISHEdotcom+%2B+SilvermanVideos&tubepress_options%5BgalleryId%5D=12345&tubepress_options%5BadjustedResultsPerPage%5D=4&action=tubepress&tubepress_page=1

http://www.humortimes.com/wp-admin/admin-ajax.php?tubepress_action=shortcode&tubepress_options%5Bmode%5D=playlist+%2B+user&tubepress_options%5BresultsPerPage%5D=1&tubepress_options%5BresultCountCap%5D=25&tubepress_options%5BorderBy%5D=newest&tubepress_options%5BperPageSort%5D=newest&tubepress_options%5BuserValue%5D=BuzzFeedVideo+%2B+klaatu42+%2B+HigtonBros+%2B+MediocreFilms+%2B+avengersweb+%2B+ChessClubComedy+%2B+pleatedvideo+%2B+TheSecondCityNetwork+%2B+Cracked+%2B+ERB+%2B+RhettandLink+%2B+cultcomedypictures+%2B+collegehumor+%2B+broadcomedy+%2B+UCBComedy+%2B+ImprovEverywhere+%2B+HISHEdotcom+%2B+SilvermanVideos&tubepress_options%5BgalleryId%5D=12345&tubepress_options%5BadjustedResultsPerPage%5D=4&action=tubepress&tubepress_page=2

http://www.humortimes.com/wp-admin/admin-ajax.php?tubepress_action=shortcode&tubepress_options%5Bmode%5D=playlist+%2B+user&tubepress_options%5BresultsPerPage%5D=1&tubepress_options%5BresultCountCap%5D=25&tubepress_options%5BorderBy%5D=newest&tubepress_options%5BperPageSort%5D=newest&tubepress_options%5BuserValue%5D=BuzzFeedVideo+%2B+klaatu42+%2B+HigtonBros+%2B+MediocreFilms+%2B+avengersweb+%2B+ChessClubComedy+%2B+pleatedvideo+%2B+TheSecondCityNetwork+%2B+Cracked+%2B+ERB+%2B+RhettandLink+%2B+cultcomedypictures+%2B+collegehumor+%2B+broadcomedy+%2B+UCBComedy+%2B+ImprovEverywhere+%2B+HISHEdotcom+%2B+SilvermanVideos&tubepress_options%5BgalleryId%5D=12345&tubepress_options%5BadjustedResultsPerPage%5D=4&action=tubepress&tubepress_page=3

You'll just need to update the very last character, which is of course the page number. Again I'm really sorry that TubePress doesn't do this for you already!

 

I'm thinking of setting the tubepress html cache for 24 hours, and refreshing all the pages late at night every night. What do you think of that idea?

 

That sounds perfect - exactly what I would do.

 

Let me know how the cron stuff works. This is the first time I've done this so it might take an iteration or two until we get it right. Thank you




#24461 Not Work Full Screen

Posted by eric on 22 June 2015 - 03:09 AM

I believe this is a bug. Will be investigating and pushing out a fix ASAP. Thanks for bringing this to our attention and please stand by!




#24460 Responsive Player Getting Double Top Padding

Posted by eric on 22 June 2015 - 02:57 AM

Hello!

 

I noticed that FitVids was being loaded by the Divi theme. Is it duplicating the responsive functionality that TubePress is trying to implement? If I disable responsive embeds in the TP options, sadly, the video dimensions override what FitVids is trying to do :(  Any idea how to make these 2 play nice?

 

Your suspicion is correct; both Divi/Fitvids and TubePress are both trying to make videos on your website responsive. TubePress actually "keeps to its own" and only works with TubePress-generated videos, but Fitvids kinda goes nuclear and tries to update every video it sees.

 

So we have the following solutions:

  1. Disable TubePress's responsive embeds, which is disabling a very important feature.
     
  2. Disable the responsive video functionality entirely from Divi. This is only a viable solution if TubePress is the only thing that will ever embed a video on your website (probably unlikely).
     
  3. Tell Fitvids to ignore TubePress videos.

Option #3 is what I would strongly suggest. You'll just need to edit line 70 of wp-content/themes/Divi/js/jquery.fitvids.js and change it from:

var $allVideos = $(this).find(selectors.join(','));

to

var $allVideos = $(this).find(selectors.join(',')).not('.js-tubepress-embed');

That should be it. Give it a try and let us know how it works?




#24394 Trying To Sign Up

Posted by eric on 10 June 2015 - 06:20 PM

Thanks again for reporting. I believe I responded to you via email regarding this bug - could you confirm you received my message?

 

We should have this bug fixed later today.




#24393 Truth In Advertising

Posted by eric on 10 June 2015 - 06:19 PM

All of our downloadables (TubePress Pro and add-ons) are billed on an annual basis. TubePress Express is offered in monthly, annual, or tri-annual billing plans; you simply pick the plan you'd like.

 

http://tubepress.com/pricing/




#24381 Can Not Find Gallery Id Of My 1&1 Web Sight

Posted by eric on 10 June 2015 - 12:41 AM

Hello!

 

Thanks for contacting us and we apologize for the unclear instructions. We are working with 1&1 to get that updated.

 

To find your TubePress Express gallery ID, you can copy it from the end of the address bar in your browser when you are editing a gallery. For instance, in this screenshot the gallery ID (highlighted in pink) is wLeU44B76i0. You can paste that value into 1&1 and your gallery will show up.

 

Does that make sense?




#24365 After Update Only 3 Video's Are Shown In The Gallery

Posted by eric on 09 June 2015 - 07:55 PM

Hi Rik,

 

Please see this post for an explanation of the changes from 3.x.x to 4.x.x.

 

We were not thrilled to limit the free version of TubePress to 3 videos. But it came down to a decision: either we make a dramatic change to our business model or we shudder the doors and walk away. I hope you understand our position.

 

Please let me know what else we can do for you. Thanks!




#24363 Looking For Sample Code To Test

Posted by eric on 09 June 2015 - 07:48 PM

We unfortunately don't have a trial version of TubePress that works outside of WordPress. However if you find that TubePress Pro doesn't meet your needs, please simply contact us within 30 days of your purchase and we will provide a full refund.




#24362 Developers License Renewals

Posted by eric on 09 June 2015 - 07:47 PM

Hello,

 

Thanks for contacting us and thanks for your interest in TubePress. If you purchase any of our software, including the Developer's License, you may use the software forever; we don't have any time-based switches/bombs in the code or anything like that. However in order to continue to receive support and upgrades, you'll need to renew or maintain your paid subscription. You can also cancel recurring payments to us at anytime and continue to enjoy support and upgrades for the remainder of your billing term. For instance, you could purchase today, cancel recurring payments immediately, and still enjoy a year of paid service.

 

Does that answer your question?




#24360 Youtube Responded To Tubepress With An Http 410 - No Longer Available

Posted by eric on 09 June 2015 - 07:16 PM

As Brandon has suggested, the fix for this error is to simply upgrade to the latest version of TubePress (4.1.9 at the time of this writing).

 

Is there a way to upgrade if I am using an older vertion? I am having the same issue and dont want to have to reinstall the pluging everytime there is an update.

 

I'm not sure I understand your question entirely. Could you clarify or explain your concern in more detail? Thanks!




#24321 First Video Is Only One That Will Play. Pro 4.1.8.

Posted by eric on 04 June 2015 - 04:22 PM

I think I know what the issue is now and it's due to a gap in the documentation (i.e. our fault). Whenever you move the TubePress Content Directory (which we highly recommend), you also have to perform an additional one-time setup task:

  1. Create a new PHP file at C:\sites\video.humanesociety.org\www\tubepress\ajax.php with the following contents:
    <?php
    
        /** Tell TubePress where to find the content directory. */
        define('TUBEPRESS_CONTENT_DIRECTORY', __DIR__ . '/tubepress-content');
    
        /** 
          * Hand off control to TubePress. You can use a symlink if you don't want to
          * hardcode the path to a specific TubePress version, but this will get you started.
          */
        include __DIR__ . '/tubepress_pro_4_1_8/web/php/ajaxEndpoint.php';
    
    
  2. Edit settings.php to reflect the new Ajax URL:
    <?php
    
    return array(
    
        'user' => array(
    
            'urls' => array(
    
                'base' => 'http://video.humanesociety.org/tubepress/tubepress_pro_4_1_8/',
    
                'userContent' => 'http://video.humanesociety.org/tubepress/tubepress-content/',
    
                'ajax' => 'http://video.humanesociety.org/tubepress/ajax.php',
            ),
        ),
    
        'system' => array(
    
            'cache' => array(
    
                //'killerKey' => 'tubepress_clear_system_cache',
    
                //'directory' => '/some/directory',
    
                //'enabled' => true,
    
                //'serializationEncoding' => 'base64'
            ),
    
            'add-ons' => array(
    
                //'blacklist' => array(),
            ),
    
            'classloader' => array(
    
                //'enabled' => true,
            )
        )
    );

That should get things fixed once and for all. I apologize for the confusion caused by our docs!




#24257 Can't Activate Plugin

Posted by eric on 01 June 2015 - 04:15 PM

Excellent! I'll release TubePress 4.1.9 today.

 

Please let us know how else we may assist. Thanks again.




#24254 Widget Changes For 4.1.3?

Posted by eric on 01 June 2015 - 04:06 PM

Just checking in - were you able to get everything squared away? Please let us know if you need any further assistance - thanks!




#24253 Duration Of Video

Posted by eric on 01 June 2015 - 04:05 PM

Also, to get the video's ID you can use:

{{ mediaItem.id }}



#24252 Duration Of Video

Posted by eric on 01 June 2015 - 04:04 PM

Thanks. The following template should do the job. I simply formatted your HTML a little and added a space:

<div class="tubepress-normal-player js-tubepress-player-normal" style="width: {% if responsiveEmbeds %}100%{% else %}{{ embeddedWidthPx }}px{% endif %}">

    {% block normalPlayerTitle %}

        {#
         # <div class="tubepress-big-title">
         #
         # A <div> to hold the media items's title.
         #}
        <span class="tubepress-big-title">
            {{- mediaItem.title -}}
        </span>

    {% endblock %}

    {% block normalPlayerDuration %}

        <span class="tubepress_iconos">
            <span>
                <i class="icon-hd"></i>
            </span>
            <span>
                <i class="icon-duration"></i>
                {{- mediaItem.duration -}}
            </span>
        </span>

    {% endblock %}

    {% block normalPlayerEmbeddedSource %}
        {{ embeddedSource|raw }}
    {% endblock %}

</div>

You'll want to make sure that you're editing the template in your own, custom theme. Based on the path from your last post (/wp-content/tubepress-content/themes/starter/templates/gallery/players/normal/ajax.html.twig), I'm concerned that you're making changes to the "starter" theme. Please ensure that you have carefully followed the quick theme tutorial to make sure you're editing the right files.

 

Lastly, you'll need to clear your TubePress system cache anytime you make an edit to a template file.

 

Give that a try?