Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Tubepress Pro 3.0


Best Answer nabs90 , 18 February 2013 - 04:36 PM

perfect!
you're the best! Everything is ok, I do not regret having bought your plugin.
thank you Eric

Go to the full post


  • Please log in to reply
15 replies to this topic

#1 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 07 February 2013 - 04:36 AM

Hello

I do not speak English very well. I bought the latest version 3.0 but it does not work. I get this error:

 

"resultCountCap" must match the regular expression /0|[1-9][0-9]{0,6}/. You supplied "".

 

And when I click on the videos, a white pop up window opens. The web site is www.dynamique-islamique.fr

 

Can you help me please?

 



#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 08 February 2013 - 12:49 AM

Hi,

 

I'm sorry that you're having trouble getting TubePress Pro to work quite right. We should be able to get you squared away.

 

"resultCountCap" must match the regular expression /0|[1-9][0-9]{0,6}/. You supplied "".

 

Make sure that there is a number in the field at WP Admin > Settings > TubePress > Feed. You can just put "0" in the field if you'd like to disable the result count cap.

 

And when I click on the videos, a white pop up window opens. The web site is www.dynamique-islamique.fr

 

It looks like your TubePress installation is missing at least a few files (screenshot: http://i.imgur.com/uHSJPe0.png). I recommend deleting your existing copy at wp-content/plugins/tubepress_pro_3_0_0 and re-installing a fresh copy.

 

Give that a try and let us know? Thanks!



#3 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 08 February 2013 - 01:40 PM

Hello,

thank you for your answer.
It is ok for the error "resultCountCap"
I reinstalled the plugin but when i click on the videos, nothing happens.
Do you have any idea?

thank you



#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 08 February 2013 - 06:06 PM

Hi,
 
OK, things are looking better. Now the problem appears to be server-side only.

Normally when you click a thumbnail, TubePress fetches data for the new video by visiting this URL. Go ahead and click on that link and you'll see an empty white page. What you should see is some JSON. Example of what you should see: http://tubepress.org...deo=un7d50hGemw
 
Your hosting provider should be able to help us here. I would send them a link to this discussion thread, and simply ask them why the server is returning the empty white page instead of JSON. They should be able to identify if it's a file permissions problem, server configuration problem, or something else. They should also be able to help us check your PHP error logs for anything interesting.
 
What do you think?

#5 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 February 2013 - 04:51 AM

Hi,

Ok, I'll send a link to the discussion on my hosting site.
But before installing the pro vesion, it worked with the free version before ...

We'll see what the hoster will say ....

thank you



#6 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 February 2013 - 04:58 PM

My hosting provider just answer me


"Hello,

We adjusted the mod_sec your account is disabled rule 350000, try again.

Regards,

-
Sébastien VG
Systems Administrator
HostPapa Inc


Unfortunately it did not solve my problem.
I find it strange that I can play the video that appears on the first page but not others.

thank you



#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 09 February 2013 - 06:15 PM

Something still isn't working quite right. This link is still just returning an empty page. Once we get it to return content, TubePress will work perfectly.

 

Would you mind following up with them letting them know that there is still a problem? In addition to the server configuration, I would check filesystem permissions and the PHP or webserver error logs. There must be a log entry somewhere explaining why this isn't working.

 

To rule out any interference of TubePress, you could also add an echo statement to the top of tubepress_pro_3_0_0/src/main/php/scripts/ajaxEndpoint.php. Something like this would be useful:

 

<?php

echo 'test';

 

What do you think?



#8 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 February 2013 - 07:32 PM

OK ..
I add the line "echo 'test';"

This log can it serve us?

 

 

Attached Files



#9 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 10 February 2013 - 03:28 PM

OK, I think we may have discovered a bug! The fact that we can see "test" in the output now means that it's probably not a server configuration issue, but instead a bug within TubePress itself.

 

Would you please replace your copy of tubepress_pro_3_0_0/src/main/php/scripts/ajaxEndpoint.php with the following:

 

echo 'Starting...';

if (strpos(realpath(__FILE__), 'wp-content' . DIRECTORY_SEPARATOR . 'plugins') !== false) {
    echo 'Now trying to include wp-blog-header.php';    

    include dirname(__FILE__) . '/../../../../../../../wp-blog-header.php';

    echo 'Done trying to include wp-blog-header.php';
}

echo 'Now booting TubePress';

require 'boot.php';

echo 'Done booting TubePress';

tubepress_impl_patterns_sl_ServiceLocator::getAjaxHandler()->handle();

echo 'Done';

 

That will give us some insight into where the file is breaking. Thanks for your patience in solving this!



#10 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 10 February 2013 - 04:07 PM

This is a good news ...
ok, I added that you asked me.

Thank you for your serious



#11 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 13 February 2013 - 12:26 PM

hi,

You identify the problem? Do you know how long it will take?

Thanks



#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 16 February 2013 - 09:40 PM

Hi,

 

I haven't forgotten about this issue - in fact I've been trying to reproduce the problem locally. Please stand by for an update in the next day or so. Sorry for the inconvenience!



#13 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 February 2013 - 11:34 PM

I think we might have a fix. Once again please edit

wp-content/plugins/tubepress_pro_3_0_0/src/main/php/scripts/ajaxEndpoint.php

and change the "include" line from

include dirname(__FILE__) . '/../../../../../../../wp-blog-header.php';

to

include substr(__FILE__, 0, strpos(__FILE__, 'wp-content/plugins/')) . 'wp-blog-header.php';

I'm hoping this will fix it once and for all. You'll also want to start with a fresh copy of ajaxEndpoint.php to get rid of the debugging statements from my previous post.

 

Let me know? Thanks!



#14 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 18 February 2013 - 05:07 AM

Hi,

 

I made ​​the change.

Ok I wait for your update

 

Thanks



#15 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 18 February 2013 - 12:21 PM

Great! This fix actually worked, but your gallery is still broken because the debugging statements are still in place and they're confusing the rest of TubePress.

 

So the solution, and this should be the final fix, is to simply replace your entire copy of 

wp-content/plugins/tubepress_pro_3_0_0/src/main/php/scripts/ajaxEndpoint.php

with the one found here. Here are the contents of the file, for your convenience:

<?php
/**
 * Copyright 2006 - 2013 TubePress LLC (http://tubepress.org)
 *
 * This file is part of TubePress (http://tubepress.org)
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * WordPress stubbornly will not load except from the global scope.
 */
if (strpos(realpath(__FILE__), 'wp-content' . DIRECTORY_SEPARATOR . 'plugins') !== false) {

    include substr(__FILE__, 0, strpos(__FILE__, 'wp-content/plugins/')) . 'wp-blog-header.php';
}

/**
 * Boot tubepress.
 */
require 'boot.php';

/**
 * Hand off the request to the Ajax handler.
 */
tubepress_impl_patterns_sl_ServiceLocator::getAjaxHandler()->handle();

Looking forward to hearing how this works for you. Thanks again for your patience and assistance!



#16 nabs90

nabs90

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 18 February 2013 - 04:36 PM   Best Answer

perfect!
you're the best! Everything is ok, I do not regret having bought your plugin.
thank you Eric