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

Timeout on OptionValidator.class.php


  • Please log in to reply
2 replies to this topic

#1 Edan Dover

Edan Dover

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 November 2011 - 11:59 AM

TubePress was running fine until one day it would get stuck trying to load. My server is returning the following:

Fatal error: Maximum execution time of 300 seconds exceeded in E:\CustomerData\webspaces\webspace_00100705\wwwroot\tubepress\sys\classes\org\tubepress\api\options\OptionValidator.class.php on line 25


Any idea what's up?

The page is here: http://www.sweatshop...re...ne_php.php

The code is as following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php 
/**
 * This file demonstrates how to use TubePress Pro in standalone PHP. There are
 * 4 steps. Please see the documentation for full details.
 */

/*
 * STEP 1/4
 * 
 * Set $tubepress_base_url to the web-accessible URL of your TubePress installation. Make sure this
 *  variable is in global scope (i.e. not inside any code block)
 */
$tubepress_base_url = 'http://www.sweatshopstudios.com/tubepress/';

/*
 * STEP 2/4
 * 
 * Include TubePressPro.class.php. An absolute path on your filesystem is the least error prone.
 */
include '../sys/classes/TubePressPro.class.php';
?>

<html>
	<head>
		<title>TubePress Pro in standalone PHP</title>

		<!-- STEP 3/4
		    
		     Include this statement inside the HEAD of your HTML document. getHtmlForHead() takes a single boolean
		      argument indicating whether or not to automatically include jQuery. If you are including jQuery elsewhere
		      in your project, use false.
		-->
		<?php print TubePressPro::getHtmlForHead(true); ?>
		<link rel="stylesheet" type="text/css" href="/style.css" />
        <style>a, a:visited, a:active { color:#FFF; }</style>
    </head>
    <body style="background-color:transparent; color:#CCC">
		<div>

			<!-- STEP 4/4
			
			     Invoke TubePress! See the documentation for all the different HTML that TubePress can generate for you.
			-->
            <?php print TubePressPro::getHtmlForShortcode("resultsPerPage='20' mode='user' thumbWidth='120' thumbHeight='90' embeddedHeight='340' embeddedWidth='550' playerColor='666666' userValue='sweatshopstudiosA' playerLocation='fancybox' ajaxPagination='true'"); ?>

		</div>
	</body>
</html>


#2 Edan Dover

Edan Dover

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 November 2011 - 12:47 PM

Nevermind, it seems like it's fixed itself! You can delete/close this topic.
Thanks.

#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 12 November 2011 - 06:37 PM

Sounds like maybe your server was under heavy load. Let us know if it comes back and we'll investigate. Thanks!