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

Call to undefined tubegallery()


  • Please log in to reply
5 replies to this topic

#1 jon kopp

jon kopp

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 21 September 2010 - 08:22 PM

I'm getting a Fatal error: Call to undefined function tubepressgallery() on
http://beta.4thegosp...eo...ideos-test

here is the top of my template before any html...
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
require( YOURBASEPATH.DS."styles.php");
require( YOURBASEPATH.DS."rt_styleswitcher.php");
JHTML::_( 'behavior.mootools' );
global $template_real_width, $leftcolumn_width, $rightcolumn_width, $tstyle;
global $js_compatibility, $menu_rows_per_column, $menu_columns, $menu_multicollevel;
global $header_style, $body_style, $menu_name;
global $f_enablejs, $f_enable_current, $f_subsoffset_top, $f_subsoffset_left, $f_vertical_animation;
global $f_vertical_duration, $f_horizontal_animation, $f_horizontal_duration, $sm_enable_current;

$live_site        		= $mainframe->getCfg('live_site');
$template_path 			= $this->baseurl . '/templates/' .  $this->template;

$preset_style 			= $this->params->get("presetStyle", "style1");
$header_style 			= $this->params->get("headerStyle", "style1");
$body_style 			= $this->params->get("bodyStyle", "light");

$frontpage_component    = $this->params->get("enableFrontpage", "show");
$enable_ie6warn         = ($this->params->get("enableIe6warn", 0)  == 0)?"false":"true";
$font_family            = $this->params->get("fontFamily", "optima");
$enable_fontspans       = ($this->params->get("enableFontspans", 1)  == 0)?"false":"true";
$enable_inputstyle		= ($this->params->get("enableInputstyle", 1) == 0)?"false":"true";
$inputs_exclusion		= $this->params->get("inputsExclusion", "'.content_vote'");

$template_width 		= $this->params->get("templateWidth", "982");
$leftcolumn_width		= $this->params->get("leftcolumnWidth", "260");
$rightcolumn_width		= $this->params->get("rightcolumnWidth", "260");
$leftinset_width		= $this->params->get("leftinsetWidth", "180");
$rightinset_width		= $this->params->get("rightinsetWidth", "180");
$splitmenu_col			= $this->params->get("splitmenuCol", "rightcol");
$menu_name 				= $this->params->get("menuName", "mainmenu");
$menu_type 				= $this->params->get("menuType", "fusion");
$default_font 			= $this->params->get("defaultFont", "default");
$show_logo		 		= ($this->params->get("showLogo", 1)  == 0)?"false":"true";
$show_textsizer			= ($this->params->get("showTextsizer", 1)  == 0)?"false":"true";
$show_date		 		= ($this->params->get("showDate", 0)  == 0)?"false":"true";
$clientside_date		= ($this->params->get("clientSideDate", 0) == 0)?"false":"true";
$show_topbutton 		= ($this->params->get("showTopbutton", 1)  == 0)?"false":"true";
$show_copyright 		= ($this->params->get("showCopyright", 1)  == 0)?"false":"true";
$copyright_text			= $this->params->get("copyrightText", "Copyright 2009, All Rights Reserved");
$js_compatibility	 	= ($this->params->get("jsCompatibility", 0)  == 0)?"false":"true";

// fusion menu
$f_enablejs             = ($this->params->get('roknavmenu_fusion_enable_js', 1) == 0)?"false":"true";
$f_opacity				= $this->params->get('roknavmenu_fusion_opacity', 1);
$f_effect				= $this->params->get('roknavmenu_fusion_effect', 'slidefade');
$f_hidedelay			= $this->params->get('roknavmenu_fusion_hidedelay', 500);
$f_menu_animation 		= $this->params->get('roknavmenu_fusion_menu_animation', 'Quad.easeOut');
$f_menu_duration	    = $this->params->get('roknavmenu_fusion_menu_duration', 400);
$f_pill		            = $this->params->get('roknavmenu_fusion_pill', 0);
$f_pill_animation 		= $this->params->get('roknavmenu_fusion_pill_animation', 'Back.easeOut');
$f_pill_duration 		= $this->params->get('roknavmenu_fusion_pill_duration', 400 );
$f_tweakInitial_x 		= $this->params->get('roknavmenu_fusion_tweakInitial_x', '0');
$f_tweakInitial_y 		= $this->params->get('roknavmenu_fusion_tweakInitial_y', '0');
$f_tweakSubsequent_x 	= $this->params->get('roknavmenu_fusion_tweakSubsequent_x', '0');
$f_tweakSubsequent_y 	= $this->params->get('roknavmenu_fusion_tweakSubsequent_y', '0');
$f_enable_current       = ($this->params->get('roknavmenu_fusion_enable_current_id', 0) == 0)?"false":"true";

// splitmenu
$sm_enable_current       = ($this->params->get('roknavmenu_splitmenu_enable_current_id', 0) == 0)?"false":"true";								
require(YOURBASEPATH . "/rt_styleloader.php");

$TubePress_Base_Url = "http://beta.4thegospel.org/tubepress";
include "/home/[i]username[/i]/beta/tubepress/env/pro/tubepress-pro.php";

?>

In the header of my pages...

    <script type="text/javascript">function getTubePressBaseUrl(){return "http://beta.4thegospel.org/tubepress/";}</script> 

    <script type="text/javascript" src="http://beta.4thegospel.org/tubepress/ui/lib/tubepress.js"></script> 
    <link rel="stylesheet" href="http://beta.4thegospel.org/tubepress/ui/gallery/css/tubepress.css" type="text/css" />        

You can check that everything is being loaded in the header
http://beta.4thegospel.org

it looks like the tubepress-pro.php isn't loading... But I can't figure out why...

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 22 September 2010 - 06:16 PM

Two things I would check:

  • At the top of your template, make sure the "tubepress_base_url" variable is all lowercase. e.g.
    $tubepress_base_url = "http://beta.4thegospel.org/tubepress";
    instead of
    $TubePress_Base_Url = "http://beta.4thegospel.org/tubepress";
  • Make sure that you're calling 'tubepressGallery(...)" instead of "tubepressgallery(...)" (again just the letter case)

Let's verify both of those items before we troubleshoot further. Thanks.

#3 jon kopp

jon kopp

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 23 September 2010 - 01:43 PM

fixed the all lowercase in the tubepress_base_url on the top of my template.

I was calling the proper case for in my php.

<?php 
tubepressGallery('mode="tag" tagValue="barack obama" resultsPerPage="3"'); ?>

any other ideas?

#4 jon kopp

jon kopp

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 23 September 2010 - 01:45 PM

i Private msged you the absolute path... don't know if thats something I want to post straight up.

#5 jon kopp

jon kopp

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 23 September 2010 - 01:45 PM

by the way...

this isn't a wordpress issue. this site is a joomla install. I'm using the standalone php loader. don't know if that helps.

#6 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 28 September 2010 - 12:02 AM

OK, next I'd like to verify that your header is actually including tubepress-pro.php. Where you have

include "/home/[i]username[/i]/beta/tubepress/env/pro/tubepress-pro.php";

please double check the absolute file path to make sure it's correct. You've probably already done this ten times, but I want to make sure we cover every possible typo.

If you're still getting the same error, let's add a debugging statement above the include directive:

if (!is_readable("/home/[i]username[/i]/beta/tubepress/env/pro/tubepress-pro.php")) { print "DIE"; exit; }include "/home/[i]username[/i]/beta/tubepress/env/pro/tubepress-pro.php";

Sorry for the hassle. We'll figure this out. Thanks.