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

Help appreciated for TP Pro installation bug [SOLVED]


  • Please log in to reply
8 replies to this topic

#1 Chris Guillou

Chris Guillou

    Member

  • Members
  • PipPip
  • 10 posts

Posted 20 July 2012 - 12:13 PM

Hi everyone,

I've followed the basic invocation instructions but something's not working out right, it would seem it could be the server root path but I don't see what I'm missing.

My test page is here
http://www.ville-sev.../test/tp/tp.php

A PHP Info indicates /home/www/www.ville-sevres.fr/test/tp as root ( http://www.ville-sev...r/test/info.php )

Here's my php code :

<?php 
  
    $tubepress_base_url = "http://www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2";
  
    include "/home/www/www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/classes/TubePressPro.class.php";
?>
  
<html>
    <head>
        <title>TubePress Pro</title>
  
        <?php print TubePressPro::getHtmlForHead(true); ?>
         
    </head>
    <body>
          
        <?php print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="pittsburgh steelers" resultsPerPage="3"'); ?>
 
    </body>
</html>

But here's the HTML :


  
<html>
    <head>
        <title>TubePress Pro</title>
  
        <script type="text/javascript" src="http://www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/ui/static/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">function getTubePressBaseUrl(){return "http://www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2";}</script>
<script type="text/javascript" src="http://www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/ui/static/js/tubepress.js"></script>
<link rel="stylesheet" href="http://www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/ui/themes/default/style.css" type="text/css" />
         
    </head>
    <body>

it just stop s there :-(


Any help greatly appreciated :-)

Cheers,
chris

#2 Anonymous

Anonymous

    Advanced Member

  • Members
  • PipPipPip
  • 81 posts

Posted 22 July 2012 - 06:53 AM

(Original poster, can't seem to login correctly to forum ....)

Ok, I remembered debug mode but still don't see what's going on : http://www.ville-sev....p...debug=true

Apparently it has something to do with the Gallery Shortcode ...

Anyone ? :-)

#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 22 July 2012 - 10:23 PM

Hi,

I'm very sorry in the delay in response! And for the trouble logging in to the forum. You may have noticed that I just performed a major upgrade to my membership software over the weekend. I'm finally getting caught up on forum posts.

Based on the debug output, I would say that all the paths in your PHP page are correct. It looks like TubePress gets to the point where it tries to contact YouTube and then bails out. We'll just need to find out what the exact error message is. Your PHP error log will almost certainly have the message, but an easier way would be to just add

<?php ini_set('display_errors', 1); ?>
to the top of tp.php, then reload the page. In 90% of hosting environments, that will display the error message to the screen for us. If that doesn't work, then we'll need to find your PHP error log. Your hosting provider will be able to help you locate that easily.

can't seem to login correctly to forum ....


Are you able to login as your original account again? You should be able to. If there's a problem there, I'm definitely interested in fixing it!

Thanks.

#4 Chris Guillou

Chris Guillou

    Member

  • Members
  • PipPip
  • 10 posts

Posted 23 July 2012 - 02:43 AM

Hi Eric, thanks a lot for your answer, no worries on delay (it was the w-e after all....)

First.
Login works fine now, must have had something to do with your update.

Second.
Added Display Errors and here's what I get :

Fatal error: Class 'org_tubepress_api_cache_Cache' not found in /home/www/www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/classes/org/tubepress/impl/feed/CacheAwareFeedFetcher.class.php on line 53


--> http://www.ville-sev.../test/tp/tp.php

What do you think ?

Thanks again for your help and an awesome library !

Chris

#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 23 July 2012 - 12:46 PM

Hi Chris,

Login works fine now


Whew! Glad to hear that.

Added Display Errors and here's what I get :
Fatal error: Class 'org_tubepress_api_cache_Cache' not found in /home/www/www.ville-sevres.fr/test/tp/tubepress_pro_2_4_2/sys/classes/org/tubepress/impl/feed/CacheAwareFeedFetcher.class.php on line 53

--> http://www.ville-sev.../test/tp/tp.php

What do you think ?


I've seen this error I believe twice before, and in each case the cause was a corrupt TubePress Pro installation. What happens if you erase the entire test/tp/tubepress_pro_2_4_2 directory and unzip a fresh copy in its place? Let's start there, anyway, just to rule out the possibility. My hunch is that will fix it.

Let us know. Thanks!

#6 Chris Guillou

Chris Guillou

    Member

  • Members
  • PipPip
  • 10 posts

Posted 23 July 2012 - 02:41 PM

Thanks Eric,

Can't believe I didn't think of that before, unfortunately I got the same results in a "fresh" installation folder with a freshly downloaded TP Zip file : http://www.ville-sev...test/tp2/tp.php
However, after having installed the exact same files on a different server : http://ccgphoto.fr/tp/tp.php I'm thinking it might be linked to the server configuration, i'll see if I can get anyone to look into it.

Edit : I have some weird different FTP rights across different folders, could that be a reason ?

In the meantime if you get any sudden inspiration be my guest ;-)

Chris

#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 23 July 2012 - 06:18 PM

If you're sure that the installation is intact, then it's almost certainly a permissions problem. To investigate, you could start at tubepress_pro_2_4_2/sys/classes/org/tubepress/impl/feed/CacheAwareFeedFetcher.class.php and work your way up the directory tree. Make sure that each file and directory has "read" permissions by which process runs PHP on your server. Your server admin should be able to do this very easily.

Let us know what you find..

#8 Chris Guillou

Chris Guillou

    Member

  • Members
  • PipPip
  • 10 posts

Posted 24 July 2012 - 09:47 AM

Eric just wanted to let you know that I've solved the problem which seemed to be due to 2 things : Corrupt script files when uploaded by FTP and apparently something to do with the library not being at www root.

So I bascially don't know exactly what happened but things work fine now.

Once again thank you for your help and great Script !

From France,

Chris

#9 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 25 July 2012 - 09:41 AM

Thank you for getting back to us! Good luck and please let me know if there's anything else we can do for you.